Class Workload.Builder

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

public static final class Workload.Builder extends com.google.protobuf.GeneratedMessage.Builder<Workload.Builder> implements WorkloadOrBuilder
 Workload is an App Hub data model that contains a discovered workload, which
 represents a binary deployment (such as managed instance groups (MIGs) and
 GKE deployments) that performs the smallest logical subset of business
 functionality.
 
Protobuf type google.cloud.apphub.v1.Workload
  • 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<Workload.Builder>
    • clear

      public Workload.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<Workload.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<Workload.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Workload.Builder mergeFrom(Workload other)
    • isInitialized

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

      public Workload.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<Workload.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The resource name of the Workload. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface WorkloadOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the Workload. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface WorkloadOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Workload.Builder setName(String value)
       Identifier. The resource name of the Workload. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Workload.Builder clearName()
       Identifier. The resource name of the Workload. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Workload.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the Workload. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Optional. User-defined name for the Workload.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface WorkloadOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. User-defined name for the Workload.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface WorkloadOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Workload.Builder setDisplayName(String value)
       Optional. User-defined name for the Workload.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Workload.Builder clearDisplayName()
       Optional. User-defined name for the Workload.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Workload.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. User-defined name for the Workload.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. User-defined description of a Workload.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface WorkloadOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. User-defined description of a Workload.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface WorkloadOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Workload.Builder setDescription(String value)
       Optional. User-defined description of a Workload.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Workload.Builder clearDescription()
       Optional. User-defined description of a Workload.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Workload.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. User-defined description of a Workload.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasWorkloadReference

      public boolean hasWorkloadReference()
       Output only. Reference of an underlying compute resource represented by the
       Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasWorkloadReference in interface WorkloadOrBuilder
      Returns:
      Whether the workloadReference field is set.
    • getWorkloadReference

      public WorkloadReference getWorkloadReference()
       Output only. Reference of an underlying compute resource represented by the
       Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWorkloadReference in interface WorkloadOrBuilder
      Returns:
      The workloadReference.
    • setWorkloadReference

      public Workload.Builder setWorkloadReference(WorkloadReference value)
       Output only. Reference of an underlying compute resource represented by the
       Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setWorkloadReference

      public Workload.Builder setWorkloadReference(WorkloadReference.Builder builderForValue)
       Output only. Reference of an underlying compute resource represented by the
       Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeWorkloadReference

      public Workload.Builder mergeWorkloadReference(WorkloadReference value)
       Output only. Reference of an underlying compute resource represented by the
       Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearWorkloadReference

      public Workload.Builder clearWorkloadReference()
       Output only. Reference of an underlying compute resource represented by the
       Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getWorkloadReferenceBuilder

      public WorkloadReference.Builder getWorkloadReferenceBuilder()
       Output only. Reference of an underlying compute resource represented by the
       Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getWorkloadReferenceOrBuilder

      public WorkloadReferenceOrBuilder getWorkloadReferenceOrBuilder()
       Output only. Reference of an underlying compute resource represented by the
       Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWorkloadReferenceOrBuilder in interface WorkloadOrBuilder
    • hasWorkloadProperties

      public boolean hasWorkloadProperties()
       Output only. Properties of an underlying compute resource represented by
       the Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasWorkloadProperties in interface WorkloadOrBuilder
      Returns:
      Whether the workloadProperties field is set.
    • getWorkloadProperties

      public WorkloadProperties getWorkloadProperties()
       Output only. Properties of an underlying compute resource represented by
       the Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWorkloadProperties in interface WorkloadOrBuilder
      Returns:
      The workloadProperties.
    • setWorkloadProperties

      public Workload.Builder setWorkloadProperties(WorkloadProperties value)
       Output only. Properties of an underlying compute resource represented by
       the Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setWorkloadProperties

      public Workload.Builder setWorkloadProperties(WorkloadProperties.Builder builderForValue)
       Output only. Properties of an underlying compute resource represented by
       the Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeWorkloadProperties

      public Workload.Builder mergeWorkloadProperties(WorkloadProperties value)
       Output only. Properties of an underlying compute resource represented by
       the Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearWorkloadProperties

      public Workload.Builder clearWorkloadProperties()
       Output only. Properties of an underlying compute resource represented by
       the Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getWorkloadPropertiesBuilder

      public WorkloadProperties.Builder getWorkloadPropertiesBuilder()
       Output only. Properties of an underlying compute resource represented by
       the Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getWorkloadPropertiesOrBuilder

      public WorkloadPropertiesOrBuilder getWorkloadPropertiesOrBuilder()
       Output only. Properties of an underlying compute resource represented by
       the Workload. These are immutable.
       
      .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWorkloadPropertiesOrBuilder in interface WorkloadOrBuilder
    • getDiscoveredWorkload

      public String getDiscoveredWorkload()
       Required. Immutable. The resource name of the original discovered workload.
       
      string discovered_workload = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getDiscoveredWorkload in interface WorkloadOrBuilder
      Returns:
      The discoveredWorkload.
    • getDiscoveredWorkloadBytes

      public com.google.protobuf.ByteString getDiscoveredWorkloadBytes()
       Required. Immutable. The resource name of the original discovered workload.
       
      string discovered_workload = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getDiscoveredWorkloadBytes in interface WorkloadOrBuilder
      Returns:
      The bytes for discoveredWorkload.
    • setDiscoveredWorkload

      public Workload.Builder setDiscoveredWorkload(String value)
       Required. Immutable. The resource name of the original discovered workload.
       
      string discovered_workload = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The discoveredWorkload to set.
      Returns:
      This builder for chaining.
    • clearDiscoveredWorkload

      public Workload.Builder clearDiscoveredWorkload()
       Required. Immutable. The resource name of the original discovered workload.
       
      string discovered_workload = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDiscoveredWorkloadBytes

      public Workload.Builder setDiscoveredWorkloadBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The resource name of the original discovered workload.
       
      string discovered_workload = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for discoveredWorkload to set.
      Returns:
      This builder for chaining.
    • hasAttributes

      public boolean hasAttributes()
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAttributes in interface WorkloadOrBuilder
      Returns:
      Whether the attributes field is set.
    • getAttributes

      public Attributes getAttributes()
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributes in interface WorkloadOrBuilder
      Returns:
      The attributes.
    • setAttributes

      public Workload.Builder setAttributes(Attributes value)
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setAttributes

      public Workload.Builder setAttributes(Attributes.Builder builderForValue)
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAttributes

      public Workload.Builder mergeAttributes(Attributes value)
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearAttributes

      public Workload.Builder clearAttributes()
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getAttributesBuilder

      public Attributes.Builder getAttributesBuilder()
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getAttributesOrBuilder

      public AttributesOrBuilder getAttributesOrBuilder()
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesOrBuilder in interface WorkloadOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface WorkloadOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface WorkloadOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Workload.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Workload.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Workload.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Workload.Builder clearCreateTime()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface WorkloadOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface WorkloadOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface WorkloadOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Workload.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Workload.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Workload.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Workload.Builder clearUpdateTime()
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface WorkloadOrBuilder
    • getUid

      public String getUid()
       Output only. A universally unique identifier (UUID) for the `Workload` in
       the UUID4 format.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface WorkloadOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. A universally unique identifier (UUID) for the `Workload` in
       the UUID4 format.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface WorkloadOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Workload.Builder setUid(String value)
       Output only. A universally unique identifier (UUID) for the `Workload` in
       the UUID4 format.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Workload.Builder clearUid()
       Output only. A universally unique identifier (UUID) for the `Workload` in
       the UUID4 format.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public Workload.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. A universally unique identifier (UUID) for the `Workload` in
       the UUID4 format.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. Workload state.
       
      .google.cloud.apphub.v1.Workload.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface WorkloadOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Workload.Builder setStateValue(int value)
       Output only. Workload state.
       
      .google.cloud.apphub.v1.Workload.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Workload.State getState()
       Output only. Workload state.
       
      .google.cloud.apphub.v1.Workload.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface WorkloadOrBuilder
      Returns:
      The state.
    • setState

      public Workload.Builder setState(Workload.State value)
       Output only. Workload state.
       
      .google.cloud.apphub.v1.Workload.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Workload.Builder clearState()
       Output only. Workload state.
       
      .google.cloud.apphub.v1.Workload.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.