Interface GuestPolicies.Assignment.GroupLabelOrBuilder (2.5.1)

public static interface GuestPolicies.Assignment.GroupLabelOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.

map<string, string> labels = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.

map<string, string> labels = 1;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.

map<string, string> labels = 1;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.

map<string, string> labels = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.

map<string, string> labels = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String