public static interface OSPolicyAssignment.LabelSetOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
containsLabels(String key)
public abstract boolean containsLabels(String key)Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
| Name | Description |
| key | String |
| Type | Description |
| boolean |
getLabels()
public abstract Map<String,String> getLabels()Use #getLabelsMap() instead.
| Type | Description |
| Map<String,String> |
getLabelsCount()
public abstract int getLabelsCount()Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
| Type | Description |
| int |
getLabelsMap()
public abstract Map<String,String> getLabelsMap()Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
| Type | Description |
| Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public abstract String getLabelsOrDefault(String key, String defaultValue)Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
| Name | Description |
| key | String |
| defaultValue | String |
| Type | Description |
| String |
getLabelsOrThrow(String key)
public abstract String getLabelsOrThrow(String key)Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
| Name | Description |
| key | String |
| Type | Description |
| String |