public final class SetLabelsRequest extends GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
SetLabelsRequest.Builder
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
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CLUSTER_ID_FIELD_NUMBER |
static int |
LABEL_FINGERPRINT_FIELD_NUMBER |
static int |
PROJECT_ID_FIELD_NUMBER |
static int |
RESOURCE_LABELS_FIELD_NUMBER |
static int |
ZONE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
containsResourceLabels(java.lang.String key)
The labels to set for that cluster.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClusterId()
The name of the cluster.
|
ByteString |
getClusterIdBytes()
The name of the cluster.
|
static SetLabelsRequest |
getDefaultInstance() |
SetLabelsRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
Parser<SetLabelsRequest> |
getParserForType() |
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.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
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.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static SetLabelsRequest.Builder |
newBuilder() |
static SetLabelsRequest.Builder |
newBuilder(SetLabelsRequest prototype) |
SetLabelsRequest.Builder |
newBuilderForType() |
protected SetLabelsRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static SetLabelsRequest |
parseDelimitedFrom(java.io.InputStream input) |
static SetLabelsRequest |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static SetLabelsRequest |
parseFrom(byte[] data) |
static SetLabelsRequest |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static SetLabelsRequest |
parseFrom(java.nio.ByteBuffer data) |
static SetLabelsRequest |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static SetLabelsRequest |
parseFrom(ByteString data) |
static SetLabelsRequest |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static SetLabelsRequest |
parseFrom(CodedInputStream input) |
static SetLabelsRequest |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static SetLabelsRequest |
parseFrom(java.io.InputStream input) |
static SetLabelsRequest |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<SetLabelsRequest> |
parser() |
SetLabelsRequest.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int PROJECT_ID_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
public static final int CLUSTER_ID_FIELD_NUMBER
public static final int RESOURCE_LABELS_FIELD_NUMBER
public static final int LABEL_FINGERPRINT_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 SetLabelsRequestOrBuilderpublic 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 SetLabelsRequestOrBuilderpublic 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 SetLabelsRequestOrBuilderpublic 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 SetLabelsRequestOrBuilderpublic java.lang.String getClusterId()
The name of the cluster.
string cluster_id = 3;getClusterId in interface SetLabelsRequestOrBuilderpublic ByteString getClusterIdBytes()
The name of the cluster.
string cluster_id = 3;getClusterIdBytes in interface SetLabelsRequestOrBuilderpublic int getResourceLabelsCount()
SetLabelsRequestOrBuilderThe labels to set for that cluster.
map<string, string> resource_labels = 4;getResourceLabelsCount in interface SetLabelsRequestOrBuilderpublic 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 SetLabelsRequestOrBuilderpublic 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 SetLabelsRequestOrBuilderpublic 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 SetLabelsRequestOrBuilderpublic java.lang.String getResourceLabelsOrThrow(java.lang.String key)
The labels to set for that cluster.
map<string, string> resource_labels = 4;getResourceLabelsOrThrow in interface SetLabelsRequestOrBuilderpublic 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 SetLabelsRequestOrBuilderpublic 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 SetLabelsRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static SetLabelsRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SetLabelsRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SetLabelsRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SetLabelsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SetLabelsRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SetLabelsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SetLabelsRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SetLabelsRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SetLabelsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SetLabelsRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SetLabelsRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SetLabelsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic SetLabelsRequest.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static SetLabelsRequest.Builder newBuilder()
public static SetLabelsRequest.Builder newBuilder(SetLabelsRequest prototype)
public SetLabelsRequest.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected SetLabelsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static SetLabelsRequest getDefaultInstance()
public static Parser<SetLabelsRequest> parser()
public Parser<SetLabelsRequest> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public SetLabelsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder