Package com.google.cloud
Class MonitoredResourceDescriptor.LabelDescriptor
- java.lang.Object
-
- com.google.cloud.MonitoredResourceDescriptor.LabelDescriptor
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- MonitoredResourceDescriptor
public static class MonitoredResourceDescriptor.LabelDescriptor extends Object implements Serializable
This class describes a label for a monitored resource. Label descriptors contain the key for the label, the type of data that the label can hold and an optional description.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMonitoredResourceDescriptor.LabelDescriptor.ValueTypeValue types that can be used as label values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDescription()Returns the optional human-readable description for this label.StringgetKey()Returns the key associated to this label.MonitoredResourceDescriptor.LabelDescriptor.ValueTypegetValueType()Returns the type of data that can be assigned to this label.inthashCode()StringtoString()
-
-
-
Method Detail
-
getKey
public String getKey()
Returns the key associated to this label.
-
getValueType
public MonitoredResourceDescriptor.LabelDescriptor.ValueType getValueType()
Returns the type of data that can be assigned to this label.
-
getDescription
public String getDescription()
Returns the optional human-readable description for this label. If not set, this method returnsnull.
-
-