public static final class InstancePropertiesPatch.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder> implements InstancePropertiesPatchOrBuilder
Represents the change that you want to make to the instance properties.Protobuf type
google.cloud.compute.v1.InstancePropertiesPatch| Modifier and Type | Method and Description |
|---|---|
InstancePropertiesPatch.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstancePropertiesPatch |
build() |
InstancePropertiesPatch |
buildPartial() |
InstancePropertiesPatch.Builder |
clear() |
InstancePropertiesPatch.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
InstancePropertiesPatch.Builder |
clearLabels() |
InstancePropertiesPatch.Builder |
clearMetadata() |
InstancePropertiesPatch.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
InstancePropertiesPatch.Builder |
clone() |
boolean |
containsLabels(String key)
The label key-value pairs that you want to patch onto the instance.
|
boolean |
containsMetadata(String key)
The metadata key-value pairs that you want to patch onto the instance.
|
InstancePropertiesPatch |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The label key-value pairs that you want to patch onto the instance.
|
Map<String,String> |
getLabelsMap()
The label key-value pairs that you want to patch onto the instance.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
The label key-value pairs that you want to patch onto the instance.
|
String |
getLabelsOrThrow(String key)
The label key-value pairs that you want to patch onto the instance.
|
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
The metadata key-value pairs that you want to patch onto the instance.
|
Map<String,String> |
getMetadataMap()
The metadata key-value pairs that you want to patch onto the instance.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
The metadata key-value pairs that you want to patch onto the instance.
|
String |
getMetadataOrThrow(String key)
The metadata key-value pairs that you want to patch onto the instance.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
Map<String,String> |
getMutableMetadata()
Deprecated.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
InstancePropertiesPatch.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
InstancePropertiesPatch.Builder |
mergeFrom(InstancePropertiesPatch other) |
InstancePropertiesPatch.Builder |
mergeFrom(com.google.protobuf.Message other) |
InstancePropertiesPatch.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InstancePropertiesPatch.Builder |
putAllLabels(Map<String,String> values)
The label key-value pairs that you want to patch onto the instance.
|
InstancePropertiesPatch.Builder |
putAllMetadata(Map<String,String> values)
The metadata key-value pairs that you want to patch onto the instance.
|
InstancePropertiesPatch.Builder |
putLabels(String key,
String value)
The label key-value pairs that you want to patch onto the instance.
|
InstancePropertiesPatch.Builder |
putMetadata(String key,
String value)
The metadata key-value pairs that you want to patch onto the instance.
|
InstancePropertiesPatch.Builder |
removeLabels(String key)
The label key-value pairs that you want to patch onto the instance.
|
InstancePropertiesPatch.Builder |
removeMetadata(String key)
The metadata key-value pairs that you want to patch onto the instance.
|
InstancePropertiesPatch.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstancePropertiesPatch.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
InstancePropertiesPatch.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public InstancePropertiesPatch.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public InstancePropertiesPatch getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic InstancePropertiesPatch build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic InstancePropertiesPatch buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic InstancePropertiesPatch.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public InstancePropertiesPatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public InstancePropertiesPatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public InstancePropertiesPatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public InstancePropertiesPatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public InstancePropertiesPatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public InstancePropertiesPatch.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstancePropertiesPatch.Builder>public InstancePropertiesPatch.Builder mergeFrom(InstancePropertiesPatch other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public InstancePropertiesPatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstancePropertiesPatch.Builder>IOExceptionpublic int getLabelsCount()
InstancePropertiesPatchOrBuilderThe label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;getLabelsCount in interface InstancePropertiesPatchOrBuilderpublic boolean containsLabels(String key)
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;containsLabels in interface InstancePropertiesPatchOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface InstancePropertiesPatchOrBuilderpublic Map<String,String> getLabelsMap()
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;getLabelsMap in interface InstancePropertiesPatchOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;getLabelsOrDefault in interface InstancePropertiesPatchOrBuilderpublic String getLabelsOrThrow(String key)
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;getLabelsOrThrow in interface InstancePropertiesPatchOrBuilderpublic InstancePropertiesPatch.Builder clearLabels()
public InstancePropertiesPatch.Builder removeLabels(String key)
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;@Deprecated public Map<String,String> getMutableLabels()
public InstancePropertiesPatch.Builder putLabels(String key, String value)
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;public InstancePropertiesPatch.Builder putAllLabels(Map<String,String> values)
The label key-value pairs that you want to patch onto the instance.
map<string, string> labels = 500195327;public int getMetadataCount()
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;getMetadataCount in interface InstancePropertiesPatchOrBuilderpublic boolean containsMetadata(String key)
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;containsMetadata in interface InstancePropertiesPatchOrBuilder@Deprecated public Map<String,String> getMetadata()
getMetadataMap() instead.getMetadata in interface InstancePropertiesPatchOrBuilderpublic Map<String,String> 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;getMetadataMap in interface InstancePropertiesPatchOrBuilderpublic String getMetadataOrDefault(String key, String defaultValue)
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;getMetadataOrDefault in interface InstancePropertiesPatchOrBuilderpublic String getMetadataOrThrow(String key)
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;getMetadataOrThrow in interface InstancePropertiesPatchOrBuilderpublic InstancePropertiesPatch.Builder clearMetadata()
public InstancePropertiesPatch.Builder removeMetadata(String key)
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;@Deprecated public Map<String,String> getMutableMetadata()
public InstancePropertiesPatch.Builder putMetadata(String key, String value)
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;public InstancePropertiesPatch.Builder putAllMetadata(Map<String,String> values)
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;public final InstancePropertiesPatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>public final InstancePropertiesPatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstancePropertiesPatch.Builder>Copyright © 2025 Google LLC. All rights reserved.