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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static SetLabelsRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SetLabelsRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SetLabelsRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SetLabelsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SetLabelsRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SetLabelsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SetLabelsRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static SetLabelsRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static SetLabelsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static SetLabelsRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static SetLabelsRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static SetLabelsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public SetLabelsRequest.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static SetLabelsRequest.Builder newBuilder()
public static SetLabelsRequest.Builder newBuilder(SetLabelsRequest prototype)
public SetLabelsRequest.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected SetLabelsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static SetLabelsRequest getDefaultInstance()
public static Parser<SetLabelsRequest> parser()
public Parser<SetLabelsRequest> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public SetLabelsRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder