Class Service.Builder

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

public static final class Service.Builder extends com.google.protobuf.GeneratedMessage.Builder<Service.Builder> implements ServiceOrBuilder
 Service is an App Hub data model that contains a discovered service, which
 represents a network or API interface that exposes some functionality to
 clients for consumption over the network.
 
Protobuf type google.cloud.apphub.v1.Service
  • 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<Service.Builder>
    • clear

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

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

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

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

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

      public Service.Builder mergeFrom(Service other)
    • isInitialized

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

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

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

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

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

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

      public Service.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of a Service. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-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 Service.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface ServiceOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

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

      public Service.Builder setDisplayName(String value)
       Optional. User-defined name for the Service.
       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 Service.Builder clearDisplayName()
       Optional. User-defined name for the Service.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Service.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. User-defined name for the Service.
       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 Service.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface ServiceOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

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

      public Service.Builder setDescription(String value)
       Optional. User-defined description of a Service.
       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 Service.Builder clearDescription()
       Optional. User-defined description of a Service.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Service.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. User-defined description of a Service.
       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.
    • hasServiceReference

      public boolean hasServiceReference()
       Output only. Reference to an underlying networking resource that can
       comprise a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasServiceReference in interface ServiceOrBuilder
      Returns:
      Whether the serviceReference field is set.
    • getServiceReference

      public ServiceReference getServiceReference()
       Output only. Reference to an underlying networking resource that can
       comprise a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceReference in interface ServiceOrBuilder
      Returns:
      The serviceReference.
    • setServiceReference

      public Service.Builder setServiceReference(ServiceReference value)
       Output only. Reference to an underlying networking resource that can
       comprise a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setServiceReference

      public Service.Builder setServiceReference(ServiceReference.Builder builderForValue)
       Output only. Reference to an underlying networking resource that can
       comprise a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeServiceReference

      public Service.Builder mergeServiceReference(ServiceReference value)
       Output only. Reference to an underlying networking resource that can
       comprise a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearServiceReference

      public Service.Builder clearServiceReference()
       Output only. Reference to an underlying networking resource that can
       comprise a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getServiceReferenceBuilder

      public ServiceReference.Builder getServiceReferenceBuilder()
       Output only. Reference to an underlying networking resource that can
       comprise a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getServiceReferenceOrBuilder

      public ServiceReferenceOrBuilder getServiceReferenceOrBuilder()
       Output only. Reference to an underlying networking resource that can
       comprise a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceReferenceOrBuilder in interface ServiceOrBuilder
    • hasServiceProperties

      public boolean hasServiceProperties()
       Output only. Properties of an underlying compute resource that can comprise
       a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasServiceProperties in interface ServiceOrBuilder
      Returns:
      Whether the serviceProperties field is set.
    • getServiceProperties

      public ServiceProperties getServiceProperties()
       Output only. Properties of an underlying compute resource that can comprise
       a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceProperties in interface ServiceOrBuilder
      Returns:
      The serviceProperties.
    • setServiceProperties

      public Service.Builder setServiceProperties(ServiceProperties value)
       Output only. Properties of an underlying compute resource that can comprise
       a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setServiceProperties

      public Service.Builder setServiceProperties(ServiceProperties.Builder builderForValue)
       Output only. Properties of an underlying compute resource that can comprise
       a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeServiceProperties

      public Service.Builder mergeServiceProperties(ServiceProperties value)
       Output only. Properties of an underlying compute resource that can comprise
       a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearServiceProperties

      public Service.Builder clearServiceProperties()
       Output only. Properties of an underlying compute resource that can comprise
       a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getServicePropertiesBuilder

      public ServiceProperties.Builder getServicePropertiesBuilder()
       Output only. Properties of an underlying compute resource that can comprise
       a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getServicePropertiesOrBuilder

      public ServicePropertiesOrBuilder getServicePropertiesOrBuilder()
       Output only. Properties of an underlying compute resource that can comprise
       a Service. These are immutable.
       
      .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServicePropertiesOrBuilder in interface ServiceOrBuilder
    • hasAttributes

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

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

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

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

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

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

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

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

      public String getDiscoveredService()
       Required. Immutable. The resource name of the original discovered service.
       
      string discovered_service = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getDiscoveredService in interface ServiceOrBuilder
      Returns:
      The discoveredService.
    • getDiscoveredServiceBytes

      public com.google.protobuf.ByteString getDiscoveredServiceBytes()
       Required. Immutable. The resource name of the original discovered service.
       
      string discovered_service = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getDiscoveredServiceBytes in interface ServiceOrBuilder
      Returns:
      The bytes for discoveredService.
    • setDiscoveredService

      public Service.Builder setDiscoveredService(String value)
       Required. Immutable. The resource name of the original discovered service.
       
      string discovered_service = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The discoveredService to set.
      Returns:
      This builder for chaining.
    • clearDiscoveredService

      public Service.Builder clearDiscoveredService()
       Required. Immutable. The resource name of the original discovered service.
       
      string discovered_service = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDiscoveredServiceBytes

      public Service.Builder setDiscoveredServiceBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The resource name of the original discovered service.
       
      string discovered_service = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for discoveredService to set.
      Returns:
      This builder for chaining.
    • 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 ServiceOrBuilder
      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 ServiceOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Service.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 Service.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 Service.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 Service.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 ServiceOrBuilder
    • 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 ServiceOrBuilder
      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 ServiceOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Service.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 Service.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 Service.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 Service.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 ServiceOrBuilder
    • getUid

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

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

      public Service.Builder setUid(String value)
       Output only. A universally unique identifier (UUID) for the `Service` 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 Service.Builder clearUid()
       Output only. A universally unique identifier (UUID) for the `Service` in
       the UUID4 format.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public Service.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. A universally unique identifier (UUID) for the `Service` 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. Service state.
       
      .google.cloud.apphub.v1.Service.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ServiceOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Service.Builder setStateValue(int value)
       Output only. Service state.
       
      .google.cloud.apphub.v1.Service.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 Service.State getState()
       Output only. Service state.
       
      .google.cloud.apphub.v1.Service.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ServiceOrBuilder
      Returns:
      The state.
    • setState

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

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