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 boolean
containsUserLabels(java.lang.String key)
Output only.com.google.protobuf.Struct
getSystemLabels()
Output only.com.google.protobuf.StructOrBuilder
getSystemLabelsOrBuilder()
Output only.java.util.Map<java.lang.String,java.lang.String>
getUserLabels()
Deprecated.int
getUserLabelsCount()
Output only.java.util.Map<java.lang.String,java.lang.String>
getUserLabelsMap()
Output only.java.lang.String
getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)
Output only.java.lang.String
getUserLabelsOrThrow(java.lang.String key)
Output only.boolean
hasSystemLabels()
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(java.lang.String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
getUserLabels
@Deprecated java.util.Map<java.lang.String,java.lang.String> getUserLabels()
Deprecated.UsegetUserLabelsMap()
instead.
-
getUserLabelsMap
java.util.Map<java.lang.String,java.lang.String> getUserLabelsMap()
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
getUserLabelsOrDefault
java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
getUserLabelsOrThrow
java.lang.String getUserLabelsOrThrow(java.lang.String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
-