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:
  • Method Details

    • getKey

      public String getKey()
      Returns the key associated to this label.
    • 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 returns null.
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object