Class SetLabelsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SetLabelsRequest.Builder>
com.google.container.v1.SetLabelsRequest.Builder
All Implemented Interfaces:
SetLabelsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SetLabelsRequest

public static final class SetLabelsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SetLabelsRequest.Builder> implements SetLabelsRequestOrBuilder
 SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
 Engine cluster, which will in turn set them for Google Compute Engine
 resources used by that cluster
 
Protobuf type google.container.v1.SetLabelsRequest
  • 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<SetLabelsRequest.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public SetLabelsRequest.Builder mergeFrom(SetLabelsRequest other)
    • isInitialized

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

      public SetLabelsRequest.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<SetLabelsRequest.Builder>
      Throws:
      IOException
    • getProjectId

      @Deprecated public String getProjectId()
      Deprecated.
      google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=5960
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the name field.
       
      string project_id = 1 [deprecated = true];
      Specified by:
      getProjectId in interface SetLabelsRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      @Deprecated public com.google.protobuf.ByteString getProjectIdBytes()
      Deprecated.
      google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=5960
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the name field.
       
      string project_id = 1 [deprecated = true];
      Specified by:
      getProjectIdBytes in interface SetLabelsRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      @Deprecated public SetLabelsRequest.Builder setProjectId(String value)
      Deprecated.
      google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=5960
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the name field.
       
      string project_id = 1 [deprecated = true];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      @Deprecated public SetLabelsRequest.Builder clearProjectId()
      Deprecated.
      google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=5960
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the name field.
       
      string project_id = 1 [deprecated = true];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      @Deprecated public SetLabelsRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=5960
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the name field.
       
      string project_id = 1 [deprecated = true];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getZone

      @Deprecated public String getZone()
      Deprecated.
      google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=5966
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the name field.
       
      string zone = 2 [deprecated = true];
      Specified by:
      getZone in interface SetLabelsRequestOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      @Deprecated public com.google.protobuf.ByteString getZoneBytes()
      Deprecated.
      google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=5966
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the name field.
       
      string zone = 2 [deprecated = true];
      Specified by:
      getZoneBytes in interface SetLabelsRequestOrBuilder
      Returns:
      The bytes for zone.
    • setZone

      Deprecated.
      google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=5966
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the name field.
       
      string zone = 2 [deprecated = true];
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

      Deprecated.
      google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=5966
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the name field.
       
      string zone = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • setZoneBytes

      @Deprecated public SetLabelsRequest.Builder setZoneBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=5966
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the name field.
       
      string zone = 2 [deprecated = true];
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.
    • getClusterId

      @Deprecated public String getClusterId()
      Deprecated.
      google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=5970
       Deprecated. The name of the cluster.
       This field has been deprecated and replaced by the name field.
       
      string cluster_id = 3 [deprecated = true];
      Specified by:
      getClusterId in interface SetLabelsRequestOrBuilder
      Returns:
      The clusterId.
    • getClusterIdBytes

      @Deprecated public com.google.protobuf.ByteString getClusterIdBytes()
      Deprecated.
      google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=5970
       Deprecated. The name of the cluster.
       This field has been deprecated and replaced by the name field.
       
      string cluster_id = 3 [deprecated = true];
      Specified by:
      getClusterIdBytes in interface SetLabelsRequestOrBuilder
      Returns:
      The bytes for clusterId.
    • setClusterId

      @Deprecated public SetLabelsRequest.Builder setClusterId(String value)
      Deprecated.
      google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=5970
       Deprecated. The name of the cluster.
       This field has been deprecated and replaced by the name field.
       
      string cluster_id = 3 [deprecated = true];
      Parameters:
      value - The clusterId to set.
      Returns:
      This builder for chaining.
    • clearClusterId

      @Deprecated public SetLabelsRequest.Builder clearClusterId()
      Deprecated.
      google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=5970
       Deprecated. The name of the cluster.
       This field has been deprecated and replaced by the name field.
       
      string cluster_id = 3 [deprecated = true];
      Returns:
      This builder for chaining.
    • setClusterIdBytes

      @Deprecated public SetLabelsRequest.Builder setClusterIdBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=5970
       Deprecated. The name of the cluster.
       This field has been deprecated and replaced by the name field.
       
      string cluster_id = 3 [deprecated = true];
      Parameters:
      value - The bytes for clusterId to set.
      Returns:
      This builder for chaining.
    • getResourceLabelsCount

      public int getResourceLabelsCount()
      Description copied from interface: SetLabelsRequestOrBuilder
       Required. The labels to set for that cluster.
       
      map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceLabelsCount in interface SetLabelsRequestOrBuilder
    • containsResourceLabels

      public boolean containsResourceLabels(String key)
       Required. The labels to set for that cluster.
       
      map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      containsResourceLabels in interface SetLabelsRequestOrBuilder
    • getResourceLabels

      @Deprecated public Map<String,String> getResourceLabels()
      Deprecated.
      Specified by:
      getResourceLabels in interface SetLabelsRequestOrBuilder
    • getResourceLabelsMap

      public Map<String,String> getResourceLabelsMap()
       Required. The labels to set for that cluster.
       
      map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceLabelsMap in interface SetLabelsRequestOrBuilder
    • getResourceLabelsOrDefault

      public String getResourceLabelsOrDefault(String key, String defaultValue)
       Required. The labels to set for that cluster.
       
      map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceLabelsOrDefault in interface SetLabelsRequestOrBuilder
    • getResourceLabelsOrThrow

      public String getResourceLabelsOrThrow(String key)
       Required. The labels to set for that cluster.
       
      map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceLabelsOrThrow in interface SetLabelsRequestOrBuilder
    • clearResourceLabels

      public SetLabelsRequest.Builder clearResourceLabels()
    • removeResourceLabels

      public SetLabelsRequest.Builder removeResourceLabels(String key)
       Required. The labels to set for that cluster.
       
      map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
    • getMutableResourceLabels

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

      public SetLabelsRequest.Builder putResourceLabels(String key, String value)
       Required. The labels to set for that cluster.
       
      map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
    • putAllResourceLabels

      public SetLabelsRequest.Builder putAllResourceLabels(Map<String,String> values)
       Required. The labels to set for that cluster.
       
      map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
    • getLabelFingerprint

      public String getLabelFingerprint()
       Required. The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by
       Kubernetes Engine and changes after every request to modify or update
       labels. You must always provide an up-to-date fingerprint hash when
       updating or changing labels. Make a `get()` request to the
       resource to get the latest fingerprint.
       
      string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLabelFingerprint in interface SetLabelsRequestOrBuilder
      Returns:
      The labelFingerprint.
    • getLabelFingerprintBytes

      public com.google.protobuf.ByteString getLabelFingerprintBytes()
       Required. The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by
       Kubernetes Engine and changes after every request to modify or update
       labels. You must always provide an up-to-date fingerprint hash when
       updating or changing labels. Make a `get()` request to the
       resource to get the latest fingerprint.
       
      string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLabelFingerprintBytes in interface SetLabelsRequestOrBuilder
      Returns:
      The bytes for labelFingerprint.
    • setLabelFingerprint

      public SetLabelsRequest.Builder setLabelFingerprint(String value)
       Required. The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by
       Kubernetes Engine and changes after every request to modify or update
       labels. You must always provide an up-to-date fingerprint hash when
       updating or changing labels. Make a `get()` request to the
       resource to get the latest fingerprint.
       
      string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The labelFingerprint to set.
      Returns:
      This builder for chaining.
    • clearLabelFingerprint

      public SetLabelsRequest.Builder clearLabelFingerprint()
       Required. The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by
       Kubernetes Engine and changes after every request to modify or update
       labels. You must always provide an up-to-date fingerprint hash when
       updating or changing labels. Make a `get()` request to the
       resource to get the latest fingerprint.
       
      string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setLabelFingerprintBytes

      public SetLabelsRequest.Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value)
       Required. The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by
       Kubernetes Engine and changes after every request to modify or update
       labels. You must always provide an up-to-date fingerprint hash when
       updating or changing labels. Make a `get()` request to the
       resource to get the latest fingerprint.
       
      string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for labelFingerprint to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       The name (project, location, cluster name) of the cluster to set labels.
       Specified in the format `projects/*/locations/*/clusters/*`.
       
      string name = 7;
      Specified by:
      getName in interface SetLabelsRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name (project, location, cluster name) of the cluster to set labels.
       Specified in the format `projects/*/locations/*/clusters/*`.
       
      string name = 7;
      Specified by:
      getNameBytes in interface SetLabelsRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SetLabelsRequest.Builder setName(String value)
       The name (project, location, cluster name) of the cluster to set labels.
       Specified in the format `projects/*/locations/*/clusters/*`.
       
      string name = 7;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SetLabelsRequest.Builder clearName()
       The name (project, location, cluster name) of the cluster to set labels.
       Specified in the format `projects/*/locations/*/clusters/*`.
       
      string name = 7;
      Returns:
      This builder for chaining.
    • setNameBytes

      public SetLabelsRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name (project, location, cluster name) of the cluster to set labels.
       Specified in the format `projects/*/locations/*/clusters/*`.
       
      string name = 7;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.