public interface MonitoredResourceOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
containsLabels(String key)
public abstract 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;
Name | Description |
key | String |
Type | Description |
boolean |
getLabels()
public abstract Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public abstract 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;
Type | Description |
int |
getLabelsMap()
public abstract 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;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public abstract 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;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public abstract String getLabelsOrThrow(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;
Name | Description |
key | String |
Type | Description |
String |
getType()
public abstract String getType()
Required. The monitored resource type. This field must match
the type
field of a MonitoredResourceDescriptor object. For
example, the type of a Compute Engine VM instance is gce_instance
.
string type = 1;
Type | Description |
String | The type. |
getTypeBytes()
public abstract ByteString getTypeBytes()
Required. The monitored resource type. This field must match
the type
field of a MonitoredResourceDescriptor object. For
example, the type of a Compute Engine VM instance is gce_instance
.
string type = 1;
Type | Description |
ByteString | The bytes for type. |