Class InstancePropertiesPatch.Builder (1.53.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstancePropertiesPatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstancePropertiesPatch.Builder
Overrides

build()

public InstancePropertiesPatch build()
Returns
Type Description
InstancePropertiesPatch

buildPartial()

public InstancePropertiesPatch buildPartial()
Returns
Type Description
InstancePropertiesPatch

clear()

public InstancePropertiesPatch.Builder clear()
Returns
Type Description
InstancePropertiesPatch.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstancePropertiesPatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstancePropertiesPatch.Builder
Overrides

clearLabels()

public InstancePropertiesPatch.Builder clearLabels()
Returns
Type Description
InstancePropertiesPatch.Builder

clearMetadata()

public InstancePropertiesPatch.Builder clearMetadata()
Returns
Type Description
InstancePropertiesPatch.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InstancePropertiesPatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InstancePropertiesPatch.Builder
Overrides

clone()

public InstancePropertiesPatch.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public InstancePropertiesPatch getDefaultInstanceForType()
Returns
Type Description
InstancePropertiesPatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMetadata() (deprecated)

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableMetadata() (deprecated)

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstancePropertiesPatch other)

public InstancePropertiesPatch.Builder mergeFrom(InstancePropertiesPatch other)
Parameter
Name Description
other InstancePropertiesPatch
Returns
Type Description
InstancePropertiesPatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstancePropertiesPatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancePropertiesPatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstancePropertiesPatch.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstancePropertiesPatch.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstancePropertiesPatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
InstancePropertiesPatch.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstancePropertiesPatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstancePropertiesPatch.Builder
Overrides

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

public InstancePropertiesPatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstancePropertiesPatch.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstancePropertiesPatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstancePropertiesPatch.Builder
Overrides