Package com.google.cloud.compute.v1
Class GlobalSetLabelsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GlobalSetLabelsRequest.Builder>
com.google.cloud.compute.v1.GlobalSetLabelsRequest.Builder
- All Implemented Interfaces:
GlobalSetLabelsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GlobalSetLabelsRequest
public static final class GlobalSetLabelsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GlobalSetLabelsRequest.Builder>
implements GlobalSetLabelsRequestOrBuilder
Protobuf type
google.cloud.compute.v1.GlobalSetLabelsRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The fingerprint of the previous set of labels for this resource, used to detect conflicts.booleancontainsLabels(String key) A list of labels to apply for this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe fingerprint of the previous set of labels for this resource, used to detect conflicts.com.google.protobuf.ByteStringThe fingerprint of the previous set of labels for this resource, used to detect conflicts.Deprecated.intA list of labels to apply for this resource.A list of labels to apply for this resource.getLabelsOrDefault(String key, String defaultValue) A list of labels to apply for this resource.getLabelsOrThrow(String key) A list of labels to apply for this resource.Deprecated.booleanThe fingerprint of the previous set of labels for this resource, used to detect conflicts.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(GlobalSetLabelsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllLabels(Map<String, String> values) A list of labels to apply for this resource.A list of labels to apply for this resource.removeLabels(String key) A list of labels to apply for this resource.setLabelFingerprint(String value) The fingerprint of the previous set of labels for this resource, used to detect conflicts.setLabelFingerprintBytes(com.google.protobuf.ByteString value) The fingerprint of the previous set of labels for this resource, used to detect conflicts.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GlobalSetLabelsRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GlobalSetLabelsRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GlobalSetLabelsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GlobalSetLabelsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GlobalSetLabelsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GlobalSetLabelsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GlobalSetLabelsRequest.Builder>
-
mergeFrom
public GlobalSetLabelsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GlobalSetLabelsRequest.Builder>- Throws:
IOException
-
hasLabelFingerprint
public boolean hasLabelFingerprint()The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute 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, otherwise the request will fail with error412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint.
optional string label_fingerprint = 178124825;- Specified by:
hasLabelFingerprintin interfaceGlobalSetLabelsRequestOrBuilder- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute 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, otherwise the request will fail with error412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintin interfaceGlobalSetLabelsRequestOrBuilder- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
public com.google.protobuf.ByteString getLabelFingerprintBytes()The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute 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, otherwise the request will fail with error412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintBytesin interfaceGlobalSetLabelsRequestOrBuilder- Returns:
- The bytes for labelFingerprint.
-
setLabelFingerprint
The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute 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, otherwise the request will fail with error412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint.
optional string label_fingerprint = 178124825;- Parameters:
value- The labelFingerprint to set.- Returns:
- This builder for chaining.
-
clearLabelFingerprint
The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute 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, otherwise the request will fail with error412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint.
optional string label_fingerprint = 178124825;- Returns:
- This builder for chaining.
-
setLabelFingerprintBytes
public GlobalSetLabelsRequest.Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute 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, otherwise the request will fail with error412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint.
optional string label_fingerprint = 178124825;- Parameters:
value- The bytes for labelFingerprint to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:GlobalSetLabelsRequestOrBuilderA list of labels to apply for this resource. Each label must comply with the requirements for labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").
map<string, string> labels = 500195327;- Specified by:
getLabelsCountin interfaceGlobalSetLabelsRequestOrBuilder
-
containsLabels
A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").
map<string, string> labels = 500195327;- Specified by:
containsLabelsin interfaceGlobalSetLabelsRequestOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceGlobalSetLabelsRequestOrBuilder
-
getLabelsMap
A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").
map<string, string> labels = 500195327;- Specified by:
getLabelsMapin interfaceGlobalSetLabelsRequestOrBuilder
-
getLabelsOrDefault
A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").
map<string, string> labels = 500195327;- Specified by:
getLabelsOrDefaultin interfaceGlobalSetLabelsRequestOrBuilder
-
getLabelsOrThrow
A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").
map<string, string> labels = 500195327;- Specified by:
getLabelsOrThrowin interfaceGlobalSetLabelsRequestOrBuilder
-
clearLabels
-
removeLabels
A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").
map<string, string> labels = 500195327; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").
map<string, string> labels = 500195327; -
putAllLabels
A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").
map<string, string> labels = 500195327;
-