Class MonitoredResourceDescriptor.LabelDescriptor (2.35.0)

public static class MonitoredResourceDescriptor.LabelDescriptor 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.

Inheritance

Object > MonitoredResourceDescriptor.LabelDescriptor

Implements

Serializable

Methods

equals(Object obj)

public final boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDescription()

public String getDescription()

Returns the optional human-readable description for this label. If not set, this method returns null.

Returns
TypeDescription
String

getKey()

public String getKey()

Returns the key associated to this label.

Returns
TypeDescription
String

getValueType()

public MonitoredResourceDescriptor.LabelDescriptor.ValueType getValueType()

Returns the type of data that can be assigned to this label.

Returns
TypeDescription
MonitoredResourceDescriptor.LabelDescriptor.ValueType

hashCode()

public final int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides