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 class
MonitoredResourceDescriptor.LabelDescriptor.ValueType
Value types that can be used as label values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDescription()
Returns the optional human-readable description for this label.String
getKey()
Returns the key associated to this label.MonitoredResourceDescriptor.LabelDescriptor.ValueType
getValueType()
Returns the type of data that can be assigned to this label.int
hashCode()
String
toString()
-
-
-
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
.
-
-