Interface Fleet.LabelSelectorOrBuilder (0.1.0)

public static interface Fleet.LabelSelectorOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsMatchLabels(String key)

public abstract boolean containsMatchLabels(String key)

Optional. match_labels is a map of {key,value} pairs. Each {key,value} pair must match an existing label key and value exactly in order to satisfy the match.

map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getMatchLabels() (deprecated)

public abstract Map<String,String> getMatchLabels()

Use #getMatchLabelsMap() instead.

Returns
Type Description
Map<String,String>

getMatchLabelsCount()

public abstract int getMatchLabelsCount()

Optional. match_labels is a map of {key,value} pairs. Each {key,value} pair must match an existing label key and value exactly in order to satisfy the match.

map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getMatchLabelsMap()

public abstract Map<String,String> getMatchLabelsMap()

Optional. match_labels is a map of {key,value} pairs. Each {key,value} pair must match an existing label key and value exactly in order to satisfy the match.

map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getMatchLabelsOrDefault(String key, String defaultValue)

public abstract String getMatchLabelsOrDefault(String key, String defaultValue)

Optional. match_labels is a map of {key,value} pairs. Each {key,value} pair must match an existing label key and value exactly in order to satisfy the match.

map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getMatchLabelsOrThrow(String key)

public abstract String getMatchLabelsOrThrow(String key)

Optional. match_labels is a map of {key,value} pairs. Each {key,value} pair must match an existing label key and value exactly in order to satisfy the match.

map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String