Package com.google.cloud.compute.v1
Class InstancePropertiesPatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstancePropertiesPatch.Builder>
com.google.cloud.compute.v1.InstancePropertiesPatch.Builder
- All Implemented Interfaces:
InstancePropertiesPatchOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstancePropertiesPatch
public static final class InstancePropertiesPatch.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstancePropertiesPatch.Builder>
implements InstancePropertiesPatchOrBuilder
Represents the change that you want to make to the instance properties.Protobuf type
google.cloud.compute.v1.InstancePropertiesPatch-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()booleancontainsLabels(String key) The label key-value pairs that you want to patch onto the instance.booleancontainsMetadata(String key) The metadata key-value pairs that you want to patch onto the instance.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intThe label key-value pairs that you want to patch onto the instance.The label key-value pairs that you want to patch onto the instance.getLabelsOrDefault(String key, String defaultValue) The label key-value pairs that you want to patch onto the instance.getLabelsOrThrow(String key) The label key-value pairs that you want to patch onto the instance.Deprecated.intThe metadata key-value pairs that you want to patch onto the instance.The metadata key-value pairs that you want to patch onto the instance.getMetadataOrDefault(String key, String defaultValue) The metadata key-value pairs that you want to patch onto the instance.getMetadataOrThrow(String key) The metadata key-value pairs that you want to patch onto the instance.Deprecated.Deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(InstancePropertiesPatch other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllLabels(Map<String, String> values) The label key-value pairs that you want to patch onto the instance.putAllMetadata(Map<String, String> values) The metadata key-value pairs that you want to patch onto the instance.The label key-value pairs that you want to patch onto the instance.putMetadata(String key, String value) The metadata key-value pairs that you want to patch onto the instance.removeLabels(String key) The label key-value pairs that you want to patch onto the instance.removeMetadata(String key) The metadata key-value pairs that you want to patch onto the instance.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<InstancePropertiesPatch.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<InstancePropertiesPatch.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InstancePropertiesPatch.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<InstancePropertiesPatch.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<InstancePropertiesPatch.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<InstancePropertiesPatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstancePropertiesPatch.Builder>
-
mergeFrom
public InstancePropertiesPatch.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<InstancePropertiesPatch.Builder>- Throws:
IOException
-
getLabelsCount
public int getLabelsCount()Description copied from interface:InstancePropertiesPatchOrBuilderThe label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;- Specified by:
getLabelsCountin interfaceInstancePropertiesPatchOrBuilder
-
containsLabels
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;- Specified by:
containsLabelsin interfaceInstancePropertiesPatchOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceInstancePropertiesPatchOrBuilder
-
getLabelsMap
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;- Specified by:
getLabelsMapin interfaceInstancePropertiesPatchOrBuilder
-
getLabelsOrDefault
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrDefaultin interfaceInstancePropertiesPatchOrBuilder
-
getLabelsOrThrow
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrThrowin interfaceInstancePropertiesPatchOrBuilder
-
clearLabels
-
removeLabels
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327; -
putAllLabels
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327; -
getMetadataCount
public int getMetadataCount()Description copied from interface:InstancePropertiesPatchOrBuilderThe metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
map<string, string> metadata = 86866735;- Specified by:
getMetadataCountin interfaceInstancePropertiesPatchOrBuilder
-
containsMetadata
The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
map<string, string> metadata = 86866735;- Specified by:
containsMetadatain interfaceInstancePropertiesPatchOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceInstancePropertiesPatchOrBuilder
-
getMetadataMap
The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
map<string, string> metadata = 86866735;- Specified by:
getMetadataMapin interfaceInstancePropertiesPatchOrBuilder
-
getMetadataOrDefault
The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
map<string, string> metadata = 86866735;- Specified by:
getMetadataOrDefaultin interfaceInstancePropertiesPatchOrBuilder
-
getMetadataOrThrow
The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
map<string, string> metadata = 86866735;- Specified by:
getMetadataOrThrowin interfaceInstancePropertiesPatchOrBuilder
-
clearMetadata
-
removeMetadata
The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
map<string, string> metadata = 86866735; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
map<string, string> metadata = 86866735; -
putAllMetadata
The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
map<string, string> metadata = 86866735;
-