Package com.google.api
Interface MonitoredResourceMetadataOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MonitoredResourceMetadata,MonitoredResourceMetadata.Builder
public interface MonitoredResourceMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsUserLabels(String key)Output only.com.google.protobuf.StructgetSystemLabels()Output only.com.google.protobuf.StructOrBuildergetSystemLabelsOrBuilder()Output only.Map<String,String>getUserLabels()Deprecated.intgetUserLabelsCount()Output only.Map<String,String>getUserLabelsMap()Output only.StringgetUserLabelsOrDefault(String key, String defaultValue)Output only.StringgetUserLabelsOrThrow(String key)Output only.booleanhasSystemLabels()Output only.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasSystemLabels
boolean hasSystemLabels()
Output only. Values for predefined system metadata labels. System labels are a kind of metadata extracted by Google, including "machine_image", "vpc", "subnet_id", "security_group", "name", etc. System label values can be only strings, Boolean values, or a list of strings. For example: { "name": "my-test-instance", "security_group": ["a", "b", "c"], "spot_instance": false }.google.protobuf.Struct system_labels = 1;- Returns:
- Whether the systemLabels field is set.
-
getSystemLabels
com.google.protobuf.Struct getSystemLabels()
Output only. Values for predefined system metadata labels. System labels are a kind of metadata extracted by Google, including "machine_image", "vpc", "subnet_id", "security_group", "name", etc. System label values can be only strings, Boolean values, or a list of strings. For example: { "name": "my-test-instance", "security_group": ["a", "b", "c"], "spot_instance": false }.google.protobuf.Struct system_labels = 1;- Returns:
- The systemLabels.
-
getSystemLabelsOrBuilder
com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder()
Output only. Values for predefined system metadata labels. System labels are a kind of metadata extracted by Google, including "machine_image", "vpc", "subnet_id", "security_group", "name", etc. System label values can be only strings, Boolean values, or a list of strings. For example: { "name": "my-test-instance", "security_group": ["a", "b", "c"], "spot_instance": false }.google.protobuf.Struct system_labels = 1;
-
getUserLabelsCount
int getUserLabelsCount()
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
containsUserLabels
boolean containsUserLabels(String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
getUserLabels
@Deprecated Map<String,String> getUserLabels()
Deprecated.UsegetUserLabelsMap()instead.
-
getUserLabelsMap
Map<String,String> getUserLabelsMap()
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
getUserLabelsOrDefault
String getUserLabelsOrDefault(String key, String defaultValue)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
-