public interface MonitoredResourceOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsLabels(java.lang.String key)
Required.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Required.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
Required.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Required.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
Required.
|
java.lang.String |
getType()
Required.
|
ByteString |
getTypeBytes()
Required.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
java.lang.String 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;
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(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap()
instead.java.util.Map<java.lang.String,java.lang.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;
java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.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;
java.lang.String getLabelsOrThrow(java.lang.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;