Class AcknowledgeViolationRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AcknowledgeViolationRequest.Builder>
com.google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.Builder
All Implemented Interfaces:
AcknowledgeViolationRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AcknowledgeViolationRequest

public static final class AcknowledgeViolationRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AcknowledgeViolationRequest.Builder> implements AcknowledgeViolationRequestOrBuilder
 Request for acknowledging the violation
 Next Id: 4
 
Protobuf type google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AcknowledgeViolationRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AcknowledgeViolationRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AcknowledgeViolationRequest.Builder>
    • getDefaultInstanceForType

      public AcknowledgeViolationRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AcknowledgeViolationRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AcknowledgeViolationRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AcknowledgeViolationRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AcknowledgeViolationRequest.Builder>
    • mergeFrom

      public AcknowledgeViolationRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AcknowledgeViolationRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The resource name of the Violation to acknowledge.
       Format:
       organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface AcknowledgeViolationRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of the Violation to acknowledge.
       Format:
       organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface AcknowledgeViolationRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. The resource name of the Violation to acknowledge.
       Format:
       organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The resource name of the Violation to acknowledge.
       Format:
       organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AcknowledgeViolationRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the Violation to acknowledge.
       Format:
       organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getComment

      public String getComment()
       Required. Business justification explaining the need for violation acknowledgement
       
      string comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getComment in interface AcknowledgeViolationRequestOrBuilder
      Returns:
      The comment.
    • getCommentBytes

      public com.google.protobuf.ByteString getCommentBytes()
       Required. Business justification explaining the need for violation acknowledgement
       
      string comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCommentBytes in interface AcknowledgeViolationRequestOrBuilder
      Returns:
      The bytes for comment.
    • setComment

      public AcknowledgeViolationRequest.Builder setComment(String value)
       Required. Business justification explaining the need for violation acknowledgement
       
      string comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The comment to set.
      Returns:
      This builder for chaining.
    • clearComment

      public AcknowledgeViolationRequest.Builder clearComment()
       Required. Business justification explaining the need for violation acknowledgement
       
      string comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCommentBytes

      public AcknowledgeViolationRequest.Builder setCommentBytes(com.google.protobuf.ByteString value)
       Required. Business justification explaining the need for violation acknowledgement
       
      string comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for comment to set.
      Returns:
      This builder for chaining.
    • getNonCompliantOrgPolicy

      @Deprecated public String getNonCompliantOrgPolicy()
      Deprecated.
      google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.non_compliant_org_policy is deprecated. See google/cloud/assuredworkloads/v1/assuredworkloads.proto;l=584
       Optional. This field is deprecated and will be removed in future version of the API.
       Name of the OrgPolicy which was modified with non-compliant change and
       resulted in this violation.
       Format:
       projects/{project_number}/policies/{constraint_name}
       folders/{folder_id}/policies/{constraint_name}
       organizations/{organization_id}/policies/{constraint_name}
       
      string non_compliant_org_policy = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonCompliantOrgPolicy in interface AcknowledgeViolationRequestOrBuilder
      Returns:
      The nonCompliantOrgPolicy.
    • getNonCompliantOrgPolicyBytes

      @Deprecated public com.google.protobuf.ByteString getNonCompliantOrgPolicyBytes()
      Deprecated.
      google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.non_compliant_org_policy is deprecated. See google/cloud/assuredworkloads/v1/assuredworkloads.proto;l=584
       Optional. This field is deprecated and will be removed in future version of the API.
       Name of the OrgPolicy which was modified with non-compliant change and
       resulted in this violation.
       Format:
       projects/{project_number}/policies/{constraint_name}
       folders/{folder_id}/policies/{constraint_name}
       organizations/{organization_id}/policies/{constraint_name}
       
      string non_compliant_org_policy = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonCompliantOrgPolicyBytes in interface AcknowledgeViolationRequestOrBuilder
      Returns:
      The bytes for nonCompliantOrgPolicy.
    • setNonCompliantOrgPolicy

      @Deprecated public AcknowledgeViolationRequest.Builder setNonCompliantOrgPolicy(String value)
      Deprecated.
      google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.non_compliant_org_policy is deprecated. See google/cloud/assuredworkloads/v1/assuredworkloads.proto;l=584
       Optional. This field is deprecated and will be removed in future version of the API.
       Name of the OrgPolicy which was modified with non-compliant change and
       resulted in this violation.
       Format:
       projects/{project_number}/policies/{constraint_name}
       folders/{folder_id}/policies/{constraint_name}
       organizations/{organization_id}/policies/{constraint_name}
       
      string non_compliant_org_policy = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nonCompliantOrgPolicy to set.
      Returns:
      This builder for chaining.
    • clearNonCompliantOrgPolicy

      @Deprecated public AcknowledgeViolationRequest.Builder clearNonCompliantOrgPolicy()
      Deprecated.
      google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.non_compliant_org_policy is deprecated. See google/cloud/assuredworkloads/v1/assuredworkloads.proto;l=584
       Optional. This field is deprecated and will be removed in future version of the API.
       Name of the OrgPolicy which was modified with non-compliant change and
       resulted in this violation.
       Format:
       projects/{project_number}/policies/{constraint_name}
       folders/{folder_id}/policies/{constraint_name}
       organizations/{organization_id}/policies/{constraint_name}
       
      string non_compliant_org_policy = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNonCompliantOrgPolicyBytes

      @Deprecated public AcknowledgeViolationRequest.Builder setNonCompliantOrgPolicyBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.non_compliant_org_policy is deprecated. See google/cloud/assuredworkloads/v1/assuredworkloads.proto;l=584
       Optional. This field is deprecated and will be removed in future version of the API.
       Name of the OrgPolicy which was modified with non-compliant change and
       resulted in this violation.
       Format:
       projects/{project_number}/policies/{constraint_name}
       folders/{folder_id}/policies/{constraint_name}
       organizations/{organization_id}/policies/{constraint_name}
       
      string non_compliant_org_policy = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for nonCompliantOrgPolicy to set.
      Returns:
      This builder for chaining.