Interface ResourceLabelsOrBuilder (2.56.0)

public interface ResourceLabelsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Map of node label keys and node label values.

map<string, string> labels = 1;

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()

Map of node label keys and node label values.

map<string, string> labels = 1;

Returns
Type Description
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Map of node label keys and node label values.

map<string, string> labels = 1;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Map of node label keys and node label values.

map<string, string> labels = 1;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Map of node label keys and node label values.

map<string, string> labels = 1;

Parameter
Name Description
key String
Returns
Type Description
String