Interface InstancePropertiesPatchOrBuilder (1.55.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
Name Description
key String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

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

getMetadata() (deprecated)

public abstract Map<String,String> getMetadata()

Use #getMetadataMap() instead.

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