public interface MonitoredResourceOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Required.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Required.
|
Map<String,String> |
getLabelsMap()
Required.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Required.
|
String |
getLabelsOrThrow(String key)
Required.
|
String |
getType()
Required.
|
com.google.protobuf.ByteString |
getTypeBytes()
Required.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getType()
Required. The monitored resource type. This field must match the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For example, the type of a Compute Engine VM instance is `gce_instance`.
string type = 1;com.google.protobuf.ByteString getTypeBytes()
Required. The monitored resource type. This field must match the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For example, the type of a Compute Engine VM instance is `gce_instance`.
string type = 1;int getLabelsCount()
Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels `"project_id"`, `"instance_id"`, and `"zone"`.
map<string, string> labels = 2;boolean containsLabels(String key)
Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels `"project_id"`, `"instance_id"`, and `"zone"`.
map<string, string> labels = 2;@Deprecated Map<String,String> getLabels()
getLabelsMap() instead.Map<String,String> getLabelsMap()
Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels `"project_id"`, `"instance_id"`, and `"zone"`.
map<string, string> labels = 2;String getLabelsOrDefault(String key, String defaultValue)
Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels `"project_id"`, `"instance_id"`, and `"zone"`.
map<string, string> labels = 2;Copyright © 2022 Google LLC. All rights reserved.