Class CreateWorkloadOperationMetadata.Builder

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

public static final class CreateWorkloadOperationMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateWorkloadOperationMetadata.Builder> implements CreateWorkloadOperationMetadataOrBuilder
 Operation metadata to give request details of CreateWorkload.
 
Protobuf type google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata
  • 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<CreateWorkloadOperationMetadata.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<CreateWorkloadOperationMetadata.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<CreateWorkloadOperationMetadata.Builder>
    • getDefaultInstanceForType

      public CreateWorkloadOperationMetadata 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 CreateWorkloadOperationMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateWorkloadOperationMetadata.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<CreateWorkloadOperationMetadata.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<CreateWorkloadOperationMetadata.Builder>
    • mergeFrom

      public CreateWorkloadOperationMetadata.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<CreateWorkloadOperationMetadata.Builder>
      Throws:
      IOException
    • hasCreateTime

      public boolean hasCreateTime()
       Optional. Time when the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCreateTime in interface CreateWorkloadOperationMetadataOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Optional. Time when the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCreateTime in interface CreateWorkloadOperationMetadataOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public CreateWorkloadOperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Optional. Time when the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setCreateTime

      public CreateWorkloadOperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. Time when the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCreateTime

      public CreateWorkloadOperationMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Optional. Time when the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearCreateTime

      public CreateWorkloadOperationMetadata.Builder clearCreateTime()
       Optional. Time when the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Optional. Time when the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Optional. Time when the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCreateTimeOrBuilder in interface CreateWorkloadOperationMetadataOrBuilder
    • getDisplayName

      public String getDisplayName()
       Optional. The display name of the workload.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface CreateWorkloadOperationMetadataOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. The display name of the workload.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface CreateWorkloadOperationMetadataOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public CreateWorkloadOperationMetadata.Builder setDisplayName(String value)
       Optional. The display name of the workload.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public CreateWorkloadOperationMetadata.Builder clearDisplayName()
       Optional. The display name of the workload.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public CreateWorkloadOperationMetadata.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. The display name of the workload.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getParent

      public String getParent()
       Optional. The parent of the workload.
       
      string parent = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParent in interface CreateWorkloadOperationMetadataOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Optional. The parent of the workload.
       
      string parent = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParentBytes in interface CreateWorkloadOperationMetadataOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Optional. The parent of the workload.
       
      string parent = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Optional. The parent of the workload.
       
      string parent = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateWorkloadOperationMetadata.Builder setParentBytes(com.google.protobuf.ByteString value)
       Optional. The parent of the workload.
       
      string parent = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getComplianceRegimeValue

      public int getComplianceRegimeValue()
       Optional. Compliance controls that should be applied to the resources managed by
       the workload.
       
      .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getComplianceRegimeValue in interface CreateWorkloadOperationMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for complianceRegime.
    • setComplianceRegimeValue

      public CreateWorkloadOperationMetadata.Builder setComplianceRegimeValue(int value)
       Optional. Compliance controls that should be applied to the resources managed by
       the workload.
       
      .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for complianceRegime to set.
      Returns:
      This builder for chaining.
    • getComplianceRegime

      public Workload.ComplianceRegime getComplianceRegime()
       Optional. Compliance controls that should be applied to the resources managed by
       the workload.
       
      .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getComplianceRegime in interface CreateWorkloadOperationMetadataOrBuilder
      Returns:
      The complianceRegime.
    • setComplianceRegime

       Optional. Compliance controls that should be applied to the resources managed by
       the workload.
       
      .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The complianceRegime to set.
      Returns:
      This builder for chaining.
    • clearComplianceRegime

      public CreateWorkloadOperationMetadata.Builder clearComplianceRegime()
       Optional. Compliance controls that should be applied to the resources managed by
       the workload.
       
      .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.