Interface InstancePropertiesPatchOrBuilder (1.51.0)

public interface InstancePropertiesPatchOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

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

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
Map<String,String>

getMetadataCount()

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