Class Fleet.Builder

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

public static final class Fleet.Builder extends com.google.protobuf.GeneratedMessage.Builder<Fleet.Builder> implements FleetOrBuilder
 Fleet contains the Fleet-wide metadata and configuration.
 
Protobuf type google.cloud.gkehub.v1.Fleet
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Fleet.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Fleet.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public Fleet.Builder mergeFrom(Fleet other)
    • isInitialized

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

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

      public String getName()
       Output only. The full, unique resource name of this fleet in the format of
       `projects/{project}/locations/{location}/fleets/{fleet}`.
      
       Each Google Cloud project can have at most one fleet resource, named
       "default".
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface FleetOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The full, unique resource name of this fleet in the format of
       `projects/{project}/locations/{location}/fleets/{fleet}`.
      
       Each Google Cloud project can have at most one fleet resource, named
       "default".
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface FleetOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Fleet.Builder setName(String value)
       Output only. The full, unique resource name of this fleet in the format of
       `projects/{project}/locations/{location}/fleets/{fleet}`.
      
       Each Google Cloud project can have at most one fleet resource, named
       "default".
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Fleet.Builder clearName()
       Output only. The full, unique resource name of this fleet in the format of
       `projects/{project}/locations/{location}/fleets/{fleet}`.
      
       Each Google Cloud project can have at most one fleet resource, named
       "default".
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Fleet.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The full, unique resource name of this fleet in the format of
       `projects/{project}/locations/{location}/fleets/{fleet}`.
      
       Each Google Cloud project can have at most one fleet resource, named
       "default".
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Optional. A user-assigned display name of the Fleet.
       When present, it must be between 4 to 30 characters.
       Allowed characters are: lowercase and uppercase letters, numbers,
       hyphen, single-quote, double-quote, space, and exclamation point.
      
       Example: `Production Fleet`
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface FleetOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. A user-assigned display name of the Fleet.
       When present, it must be between 4 to 30 characters.
       Allowed characters are: lowercase and uppercase letters, numbers,
       hyphen, single-quote, double-quote, space, and exclamation point.
      
       Example: `Production Fleet`
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface FleetOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Fleet.Builder setDisplayName(String value)
       Optional. A user-assigned display name of the Fleet.
       When present, it must be between 4 to 30 characters.
       Allowed characters are: lowercase and uppercase letters, numbers,
       hyphen, single-quote, double-quote, space, and exclamation point.
      
       Example: `Production Fleet`
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Fleet.Builder clearDisplayName()
       Optional. A user-assigned display name of the Fleet.
       When present, it must be between 4 to 30 characters.
       Allowed characters are: lowercase and uppercase letters, numbers,
       hyphen, single-quote, double-quote, space, and exclamation point.
      
       Example: `Production Fleet`
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Fleet.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. A user-assigned display name of the Fleet.
       When present, it must be between 4 to 30 characters.
       Allowed characters are: lowercase and uppercase letters, numbers,
       hyphen, single-quote, double-quote, space, and exclamation point.
      
       Example: `Production Fleet`
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. When the Fleet was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface FleetOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. When the Fleet was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface FleetOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Fleet.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. When the Fleet was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Fleet.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the Fleet was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Fleet.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. When the Fleet was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Fleet.Builder clearCreateTime()
       Output only. When the Fleet was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. When the Fleet was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. When the Fleet was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface FleetOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. When the Fleet was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface FleetOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. When the Fleet was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface FleetOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Fleet.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. When the Fleet was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Fleet.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the Fleet was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Fleet.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. When the Fleet was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Fleet.Builder clearUpdateTime()
       Output only. When the Fleet was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. When the Fleet was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. When the Fleet was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface FleetOrBuilder
    • hasDeleteTime

      public boolean hasDeleteTime()
       Output only. When the Fleet was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDeleteTime in interface FleetOrBuilder
      Returns:
      Whether the deleteTime field is set.
    • getDeleteTime

      public com.google.protobuf.Timestamp getDeleteTime()
       Output only. When the Fleet was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTime in interface FleetOrBuilder
      Returns:
      The deleteTime.
    • setDeleteTime

      public Fleet.Builder setDeleteTime(com.google.protobuf.Timestamp value)
       Output only. When the Fleet was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDeleteTime

      public Fleet.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the Fleet was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDeleteTime

      public Fleet.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
       Output only. When the Fleet was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDeleteTime

      public Fleet.Builder clearDeleteTime()
       Output only. When the Fleet was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
       Output only. When the Fleet was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
       Output only. When the Fleet was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTimeOrBuilder in interface FleetOrBuilder
    • getUid

      public String getUid()
       Output only. Google-generated UUID for this resource. This is unique across
       all Fleet resources. If a Fleet resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface FleetOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Google-generated UUID for this resource. This is unique across
       all Fleet resources. If a Fleet resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface FleetOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Fleet.Builder setUid(String value)
       Output only. Google-generated UUID for this resource. This is unique across
       all Fleet resources. If a Fleet resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Fleet.Builder clearUid()
       Output only. Google-generated UUID for this resource. This is unique across
       all Fleet resources. If a Fleet resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUidBytes

      public Fleet.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Google-generated UUID for this resource. This is unique across
       all Fleet resources. If a Fleet resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • hasState

      public boolean hasState()
       Output only. State of the namespace resource.
       
      .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasState in interface FleetOrBuilder
      Returns:
      Whether the state field is set.
    • getState

      public FleetLifecycleState getState()
       Output only. State of the namespace resource.
       
      .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface FleetOrBuilder
      Returns:
      The state.
    • setState

      public Fleet.Builder setState(FleetLifecycleState value)
       Output only. State of the namespace resource.
       
      .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setState

      public Fleet.Builder setState(FleetLifecycleState.Builder builderForValue)
       Output only. State of the namespace resource.
       
      .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeState

      public Fleet.Builder mergeState(FleetLifecycleState value)
       Output only. State of the namespace resource.
       
      .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearState

      public Fleet.Builder clearState()
       Output only. State of the namespace resource.
       
      .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStateBuilder

      public FleetLifecycleState.Builder getStateBuilder()
       Output only. State of the namespace resource.
       
      .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStateOrBuilder

      public FleetLifecycleStateOrBuilder getStateOrBuilder()
       Output only. State of the namespace resource.
       
      .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateOrBuilder in interface FleetOrBuilder
    • hasDefaultClusterConfig

      public boolean hasDefaultClusterConfig()
       Optional. The default cluster configurations to apply across the fleet.
       
      .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDefaultClusterConfig in interface FleetOrBuilder
      Returns:
      Whether the defaultClusterConfig field is set.
    • getDefaultClusterConfig

      public DefaultClusterConfig getDefaultClusterConfig()
       Optional. The default cluster configurations to apply across the fleet.
       
      .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultClusterConfig in interface FleetOrBuilder
      Returns:
      The defaultClusterConfig.
    • setDefaultClusterConfig

      public Fleet.Builder setDefaultClusterConfig(DefaultClusterConfig value)
       Optional. The default cluster configurations to apply across the fleet.
       
      .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
    • setDefaultClusterConfig

      public Fleet.Builder setDefaultClusterConfig(DefaultClusterConfig.Builder builderForValue)
       Optional. The default cluster configurations to apply across the fleet.
       
      .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDefaultClusterConfig

      public Fleet.Builder mergeDefaultClusterConfig(DefaultClusterConfig value)
       Optional. The default cluster configurations to apply across the fleet.
       
      .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
    • clearDefaultClusterConfig

      public Fleet.Builder clearDefaultClusterConfig()
       Optional. The default cluster configurations to apply across the fleet.
       
      .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getDefaultClusterConfigBuilder

      public DefaultClusterConfig.Builder getDefaultClusterConfigBuilder()
       Optional. The default cluster configurations to apply across the fleet.
       
      .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getDefaultClusterConfigOrBuilder

      public DefaultClusterConfigOrBuilder getDefaultClusterConfigOrBuilder()
       Optional. The default cluster configurations to apply across the fleet.
       
      .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultClusterConfigOrBuilder in interface FleetOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: FleetOrBuilder
       Optional. Labels for this Fleet.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface FleetOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels for this Fleet.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface FleetOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface FleetOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels for this Fleet.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface FleetOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels for this Fleet.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface FleetOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels for this Fleet.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface FleetOrBuilder
    • clearLabels

      public Fleet.Builder clearLabels()
    • removeLabels

      public Fleet.Builder removeLabels(String key)
       Optional. Labels for this Fleet.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Fleet.Builder putLabels(String key, String value)
       Optional. Labels for this Fleet.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Fleet.Builder putAllLabels(Map<String,String> values)
       Optional. Labels for this Fleet.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];