Class InstancePropertiesPatch.Builder (1.46.0)

public static final class InstancePropertiesPatch.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstancePropertiesPatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides

build()

public InstancePropertiesPatch build()
Returns
TypeDescription
InstancePropertiesPatch

buildPartial()

public InstancePropertiesPatch buildPartial()
Returns
TypeDescription
InstancePropertiesPatch

clear()

public InstancePropertiesPatch.Builder clear()
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstancePropertiesPatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides

clearLabels()

public InstancePropertiesPatch.Builder clearLabels()
Returns
TypeDescription
InstancePropertiesPatch.Builder

clearMetadata()

public InstancePropertiesPatch.Builder clearMetadata()
Returns
TypeDescription
InstancePropertiesPatch.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InstancePropertiesPatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides

clone()

public InstancePropertiesPatch.Builder clone()
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

The label key-value pairs that you want to patch onto the instance.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsMetadata(String key)

public 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;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public InstancePropertiesPatch getDefaultInstanceForType()
Returns
TypeDescription
InstancePropertiesPatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The label key-value pairs that you want to patch onto the instance.

map<string, string> labels = 500195327;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The label key-value pairs that you want to patch onto the instance.

map<string, string> labels = 500195327;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

The label key-value pairs that you want to patch onto the instance.

map<string, string> labels = 500195327;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The label key-value pairs that you want to patch onto the instance.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMetadata() (deprecated)

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
Map<String,String>

getMetadataCount()

public int getMetadataCount()

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;

Returns
TypeDescription
int

getMetadataMap()

public 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;

Returns
TypeDescription
Map<String,String>

getMetadataOrDefault(String key, String defaultValue)

public 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;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getMetadataOrThrow(String key)

public 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;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableMetadata() (deprecated)

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstancePropertiesPatch other)

public InstancePropertiesPatch.Builder mergeFrom(InstancePropertiesPatch other)
Parameter
NameDescription
otherInstancePropertiesPatch
Returns
TypeDescription
InstancePropertiesPatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstancePropertiesPatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InstancePropertiesPatch.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstancePropertiesPatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides

putAllLabels(Map<String,String> values)

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;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
InstancePropertiesPatch.Builder

putAllMetadata(Map<String,String> values)

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;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
InstancePropertiesPatch.Builder

putLabels(String key, String value)

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;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
InstancePropertiesPatch.Builder

putMetadata(String key, String value)

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;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
InstancePropertiesPatch.Builder

removeLabels(String key)

public InstancePropertiesPatch.Builder removeLabels(String key)

The label key-value pairs that you want to patch onto the instance.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
InstancePropertiesPatch.Builder

removeMetadata(String key)

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;

Parameter
NameDescription
keyString
Returns
TypeDescription
InstancePropertiesPatch.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstancePropertiesPatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstancePropertiesPatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstancePropertiesPatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstancePropertiesPatch.Builder
Overrides