public static final class SetLabelsRequest.Builder extends GeneratedMessageV3.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 clusterProtobuf type
google.container.v1.SetLabelsRequest
Modifier and Type | Method and Description |
---|---|
SetLabelsRequest.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
SetLabelsRequest |
build() |
SetLabelsRequest |
buildPartial() |
SetLabelsRequest.Builder |
clear() |
SetLabelsRequest.Builder |
clearClusterId()
The name of the cluster.
|
SetLabelsRequest.Builder |
clearField(Descriptors.FieldDescriptor field) |
SetLabelsRequest.Builder |
clearLabelFingerprint()
The fingerprint of the previous set of labels for this resource,
used to detect conflicts.
|
SetLabelsRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
SetLabelsRequest.Builder |
clearProjectId()
The Google Developers Console [project ID or project
number](https://developers.google.com/console/help/new/#projectnumber).
|
SetLabelsRequest.Builder |
clearResourceLabels() |
SetLabelsRequest.Builder |
clearZone()
The name of the Google Compute Engine
[zone](/compute/docs/zones#available) in which the cluster
resides.
|
SetLabelsRequest.Builder |
clone() |
boolean |
containsResourceLabels(java.lang.String key)
The labels to set for that cluster.
|
java.lang.String |
getClusterId()
The name of the cluster.
|
ByteString |
getClusterIdBytes()
The name of the cluster.
|
SetLabelsRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getLabelFingerprint()
The fingerprint of the previous set of labels for this resource,
used to detect conflicts.
|
ByteString |
getLabelFingerprintBytes()
The fingerprint of the previous set of labels for this resource,
used to detect conflicts.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableResourceLabels()
Deprecated.
|
java.lang.String |
getProjectId()
The Google Developers Console [project ID or project
number](https://developers.google.com/console/help/new/#projectnumber).
|
ByteString |
getProjectIdBytes()
The Google Developers Console [project ID or project
number](https://developers.google.com/console/help/new/#projectnumber).
|
java.util.Map<java.lang.String,java.lang.String> |
getResourceLabels()
Deprecated.
|
int |
getResourceLabelsCount()
The labels to set for that cluster.
|
java.util.Map<java.lang.String,java.lang.String> |
getResourceLabelsMap()
The labels to set for that cluster.
|
java.lang.String |
getResourceLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
The labels to set for that cluster.
|
java.lang.String |
getResourceLabelsOrThrow(java.lang.String key)
The labels to set for that cluster.
|
java.lang.String |
getZone()
The name of the Google Compute Engine
[zone](/compute/docs/zones#available) in which the cluster
resides.
|
ByteString |
getZoneBytes()
The name of the Google Compute Engine
[zone](/compute/docs/zones#available) in which the cluster
resides.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
SetLabelsRequest.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
SetLabelsRequest.Builder |
mergeFrom(Message other) |
SetLabelsRequest.Builder |
mergeFrom(SetLabelsRequest other) |
SetLabelsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
SetLabelsRequest.Builder |
putAllResourceLabels(java.util.Map<java.lang.String,java.lang.String> values)
The labels to set for that cluster.
|
SetLabelsRequest.Builder |
putResourceLabels(java.lang.String key,
java.lang.String value)
The labels to set for that cluster.
|
SetLabelsRequest.Builder |
removeResourceLabels(java.lang.String key)
The labels to set for that cluster.
|
SetLabelsRequest.Builder |
setClusterId(java.lang.String value)
The name of the cluster.
|
SetLabelsRequest.Builder |
setClusterIdBytes(ByteString value)
The name of the cluster.
|
SetLabelsRequest.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
SetLabelsRequest.Builder |
setLabelFingerprint(java.lang.String value)
The fingerprint of the previous set of labels for this resource,
used to detect conflicts.
|
SetLabelsRequest.Builder |
setLabelFingerprintBytes(ByteString value)
The fingerprint of the previous set of labels for this resource,
used to detect conflicts.
|
SetLabelsRequest.Builder |
setProjectId(java.lang.String value)
The Google Developers Console [project ID or project
number](https://developers.google.com/console/help/new/#projectnumber).
|
SetLabelsRequest.Builder |
setProjectIdBytes(ByteString value)
The Google Developers Console [project ID or project
number](https://developers.google.com/console/help/new/#projectnumber).
|
SetLabelsRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
SetLabelsRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
SetLabelsRequest.Builder |
setZone(java.lang.String value)
The name of the Google Compute Engine
[zone](/compute/docs/zones#available) in which the cluster
resides.
|
SetLabelsRequest.Builder |
setZoneBytes(ByteString value)
The name of the Google Compute Engine
[zone](/compute/docs/zones#available) in which the cluster
resides.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public SetLabelsRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public SetLabelsRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SetLabelsRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SetLabelsRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SetLabelsRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public SetLabelsRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public SetLabelsRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public SetLabelsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public SetLabelsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public SetLabelsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public SetLabelsRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SetLabelsRequest.Builder>
public SetLabelsRequest.Builder mergeFrom(SetLabelsRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public SetLabelsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SetLabelsRequest.Builder>
java.io.IOException
public java.lang.String getProjectId()
The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).
string project_id = 1;
getProjectId
in interface SetLabelsRequestOrBuilder
public ByteString getProjectIdBytes()
The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).
string project_id = 1;
getProjectIdBytes
in interface SetLabelsRequestOrBuilder
public SetLabelsRequest.Builder setProjectId(java.lang.String value)
The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).
string project_id = 1;
public SetLabelsRequest.Builder clearProjectId()
The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).
string project_id = 1;
public SetLabelsRequest.Builder setProjectIdBytes(ByteString value)
The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).
string project_id = 1;
public java.lang.String getZone()
The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.
string zone = 2;
getZone
in interface SetLabelsRequestOrBuilder
public ByteString getZoneBytes()
The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.
string zone = 2;
getZoneBytes
in interface SetLabelsRequestOrBuilder
public SetLabelsRequest.Builder setZone(java.lang.String value)
The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.
string zone = 2;
public SetLabelsRequest.Builder clearZone()
The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.
string zone = 2;
public SetLabelsRequest.Builder setZoneBytes(ByteString value)
The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.
string zone = 2;
public java.lang.String getClusterId()
The name of the cluster.
string cluster_id = 3;
getClusterId
in interface SetLabelsRequestOrBuilder
public ByteString getClusterIdBytes()
The name of the cluster.
string cluster_id = 3;
getClusterIdBytes
in interface SetLabelsRequestOrBuilder
public SetLabelsRequest.Builder setClusterId(java.lang.String value)
The name of the cluster.
string cluster_id = 3;
public SetLabelsRequest.Builder clearClusterId()
The name of the cluster.
string cluster_id = 3;
public SetLabelsRequest.Builder setClusterIdBytes(ByteString value)
The name of the cluster.
string cluster_id = 3;
public int getResourceLabelsCount()
SetLabelsRequestOrBuilder
The labels to set for that cluster.
map<string, string> resource_labels = 4;
getResourceLabelsCount
in interface SetLabelsRequestOrBuilder
public boolean containsResourceLabels(java.lang.String key)
The labels to set for that cluster.
map<string, string> resource_labels = 4;
containsResourceLabels
in interface SetLabelsRequestOrBuilder
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getResourceLabels()
getResourceLabelsMap()
instead.getResourceLabels
in interface SetLabelsRequestOrBuilder
public java.util.Map<java.lang.String,java.lang.String> getResourceLabelsMap()
The labels to set for that cluster.
map<string, string> resource_labels = 4;
getResourceLabelsMap
in interface SetLabelsRequestOrBuilder
public java.lang.String getResourceLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)
The labels to set for that cluster.
map<string, string> resource_labels = 4;
getResourceLabelsOrDefault
in interface SetLabelsRequestOrBuilder
public java.lang.String getResourceLabelsOrThrow(java.lang.String key)
The labels to set for that cluster.
map<string, string> resource_labels = 4;
getResourceLabelsOrThrow
in interface SetLabelsRequestOrBuilder
public SetLabelsRequest.Builder clearResourceLabels()
public SetLabelsRequest.Builder removeResourceLabels(java.lang.String key)
The labels to set for that cluster.
map<string, string> resource_labels = 4;
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableResourceLabels()
public SetLabelsRequest.Builder putResourceLabels(java.lang.String key, java.lang.String value)
The labels to set for that cluster.
map<string, string> resource_labels = 4;
public SetLabelsRequest.Builder putAllResourceLabels(java.util.Map<java.lang.String,java.lang.String> values)
The labels to set for that cluster.
map<string, string> resource_labels = 4;
public java.lang.String getLabelFingerprint()
The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Container 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 <code>get()</code> request to the resource to get the latest fingerprint.
string label_fingerprint = 5;
getLabelFingerprint
in interface SetLabelsRequestOrBuilder
public ByteString getLabelFingerprintBytes()
The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Container 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 <code>get()</code> request to the resource to get the latest fingerprint.
string label_fingerprint = 5;
getLabelFingerprintBytes
in interface SetLabelsRequestOrBuilder
public SetLabelsRequest.Builder setLabelFingerprint(java.lang.String value)
The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Container 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 <code>get()</code> request to the resource to get the latest fingerprint.
string label_fingerprint = 5;
public SetLabelsRequest.Builder clearLabelFingerprint()
The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Container 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 <code>get()</code> request to the resource to get the latest fingerprint.
string label_fingerprint = 5;
public SetLabelsRequest.Builder setLabelFingerprintBytes(ByteString value)
The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Container 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 <code>get()</code> request to the resource to get the latest fingerprint.
string label_fingerprint = 5;
public final SetLabelsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>
public final SetLabelsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SetLabelsRequest.Builder>