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
Modifier and TypeMethodDescriptionboolean
containsUserLabels
(String key) Output only.Output only.Output only.Deprecated.int
Output only.Output only.getUserLabelsOrDefault
(String key, String defaultValue) Output only.Output only.boolean
Output only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
getUserLabels
Deprecated.UsegetUserLabelsMap()
instead. -
getUserLabelsMap
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
getUserLabelsOrDefault
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-
getUserLabelsOrThrow
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
-