Class MonitoredResourceDescriptor.LabelDescriptor (2.39.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
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDescription()

public String getDescription()

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

Returns
Type Description
String

getKey()

public String getKey()

Returns the key associated to this label.

Returns
Type Description
String

getValueType()

public MonitoredResourceDescriptor.LabelDescriptor.ValueType getValueType()

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

Returns
Type Description
MonitoredResourceDescriptor.LabelDescriptor.ValueType

hashCode()

public final int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides