Class SetLabelsRequest.Builder (2.63.0)

publicstaticfinalclassSetLabelsRequest.BuilderextendsGeneratedMessageV3.Builder<SetLabelsRequest.Builder>implementsSetLabelsRequestOrBuilder

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

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicSetLabelsRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides

build()

publicSetLabelsRequestbuild()
Returns
TypeDescription
SetLabelsRequest

buildPartial()

publicSetLabelsRequestbuildPartial()
Returns
TypeDescription
SetLabelsRequest

clear()

publicSetLabelsRequest.Builderclear()
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides

clearClusterId() (deprecated)

publicSetLabelsRequest.BuilderclearClusterId()

Deprecated.google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=4494

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicSetLabelsRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides

clearLabelFingerprint()

publicSetLabelsRequest.BuilderclearLabelFingerprint()

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
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

clearName()

publicSetLabelsRequest.BuilderclearName()

The name (project, location, cluster name) of the cluster to set labels. Specified in the format projects/*/locations/*/clusters/*.

string name = 7;

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicSetLabelsRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides

clearProjectId() (deprecated)

publicSetLabelsRequest.BuilderclearProjectId()

Deprecated.google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4484

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

clearResourceLabels()

publicSetLabelsRequest.BuilderclearResourceLabels()
Returns
TypeDescription
SetLabelsRequest.Builder

clearZone() (deprecated)

publicSetLabelsRequest.BuilderclearZone()

Deprecated.google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4490

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

clone()

publicSetLabelsRequest.Builderclone()
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides

containsResourceLabels(String key)

publicbooleancontainsResourceLabels(Stringkey)

Required. The labels to set for that cluster.

map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getClusterId() (deprecated)

publicStringgetClusterId()

Deprecated.google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=4494

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes() (deprecated)

publicByteStringgetClusterIdBytes()

Deprecated.google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=4494

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

publicSetLabelsRequestgetDefaultInstanceForType()
Returns
TypeDescription
SetLabelsRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabelFingerprint()

publicStringgetLabelFingerprint()

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
TypeDescription
String

The labelFingerprint.

getLabelFingerprintBytes()

publicByteStringgetLabelFingerprintBytes()

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
TypeDescription
ByteString

The bytes for labelFingerprint.

getMutableResourceLabels() (deprecated)

publicMap<String,String>getMutableResourceLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

publicStringgetName()

The name (project, location, cluster name) of the cluster to set labels. Specified in the format projects/*/locations/*/clusters/*.

string name = 7;

Returns
TypeDescription
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

The name (project, location, cluster name) of the cluster to set labels. Specified in the format projects/*/locations/*/clusters/*.

string name = 7;

Returns
TypeDescription
ByteString

The bytes for name.

getProjectId() (deprecated)

publicStringgetProjectId()

Deprecated.google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4484

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
String

The projectId.

getProjectIdBytes() (deprecated)

publicByteStringgetProjectIdBytes()

Deprecated.google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4484

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for projectId.

getResourceLabels() (deprecated)

publicMap<String,String>getResourceLabels()
Returns
TypeDescription
Map<String,String>

getResourceLabelsCount()

publicintgetResourceLabelsCount()

Required. The labels to set for that cluster.

map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getResourceLabelsMap()

publicMap<String,String>getResourceLabelsMap()

Required. The labels to set for that cluster.

map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Map<String,String>

getResourceLabelsOrDefault(String key, String defaultValue)

publicStringgetResourceLabelsOrDefault(Stringkey,StringdefaultValue)

Required. The labels to set for that cluster.

map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getResourceLabelsOrThrow(String key)

publicStringgetResourceLabelsOrThrow(Stringkey)

Required. The labels to set for that cluster.

map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getZone() (deprecated)

publicStringgetZone()

Deprecated.google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4490

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
TypeDescription
String

The zone.

getZoneBytes() (deprecated)

publicByteStringgetZoneBytes()

Deprecated.google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4490

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMutableMapFieldReflection(intnumber)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SetLabelsRequest other)

publicSetLabelsRequest.BuildermergeFrom(SetLabelsRequestother)
Parameter
NameDescription
otherSetLabelsRequest
Returns
TypeDescription
SetLabelsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicSetLabelsRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

publicSetLabelsRequest.BuildermergeFrom(Messageother)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSetLabelsRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides

putAllResourceLabels(Map<String,String> values)

publicSetLabelsRequest.BuilderputAllResourceLabels(Map<String,String>values)

Required. The labels to set for that cluster.

map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
SetLabelsRequest.Builder

putResourceLabels(String key, String value)

publicSetLabelsRequest.BuilderputResourceLabels(Stringkey,Stringvalue)

Required. The labels to set for that cluster.

map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
SetLabelsRequest.Builder

removeResourceLabels(String key)

publicSetLabelsRequest.BuilderremoveResourceLabels(Stringkey)

Required. The labels to set for that cluster.

map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
SetLabelsRequest.Builder

setClusterId(String value) (deprecated)

publicSetLabelsRequest.BuildersetClusterId(Stringvalue)

Deprecated.google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=4494

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Parameter
NameDescription
valueString

The clusterId to set.

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

setClusterIdBytes(ByteString value) (deprecated)

publicSetLabelsRequest.BuildersetClusterIdBytes(ByteStringvalue)

Deprecated.google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=4494

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for clusterId to set.

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicSetLabelsRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides

setLabelFingerprint(String value)

publicSetLabelsRequest.BuildersetLabelFingerprint(Stringvalue)

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];

Parameter
NameDescription
valueString

The labelFingerprint to set.

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

setLabelFingerprintBytes(ByteString value)

publicSetLabelsRequest.BuildersetLabelFingerprintBytes(ByteStringvalue)

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];

Parameter
NameDescription
valueByteString

The bytes for labelFingerprint to set.

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

setName(String value)

publicSetLabelsRequest.BuildersetName(Stringvalue)

The name (project, location, cluster name) of the cluster to set labels. Specified in the format projects/*/locations/*/clusters/*.

string name = 7;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicSetLabelsRequest.BuildersetNameBytes(ByteStringvalue)

The name (project, location, cluster name) of the cluster to set labels. Specified in the format projects/*/locations/*/clusters/*.

string name = 7;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

setProjectId(String value) (deprecated)

publicSetLabelsRequest.BuildersetProjectId(Stringvalue)

Deprecated.google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4484

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value) (deprecated)

publicSetLabelsRequest.BuildersetProjectIdBytes(ByteStringvalue)

Deprecated.google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4484

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicSetLabelsRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSetLabelsRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SetLabelsRequest.Builder
Overrides

setZone(String value) (deprecated)

publicSetLabelsRequest.BuildersetZone(Stringvalue)

Deprecated.google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4490

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value) (deprecated)

publicSetLabelsRequest.BuildersetZoneBytes(ByteStringvalue)

Deprecated.google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4490

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
SetLabelsRequest.Builder

This builder for chaining.