Enum ComparisonType

java.lang.Object
java.lang.Enum<ComparisonType>
com.google.monitoring.v3.ComparisonType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ComparisonType>

@Generated public enum ComparisonType extends Enum<ComparisonType> implements com.google.protobuf.ProtocolMessageEnum
 Specifies an ordering relationship on two arguments, called `left` and
 `right`.
 
Protobuf enum google.monitoring.v3.ComparisonType
  • Enum Constant Details

    • COMPARISON_UNSPECIFIED

      public static final ComparisonType COMPARISON_UNSPECIFIED
       No ordering relationship is specified.
       
      COMPARISON_UNSPECIFIED = 0;
    • COMPARISON_GT

      public static final ComparisonType COMPARISON_GT
       True if the left argument is greater than the right argument.
       
      COMPARISON_GT = 1;
    • COMPARISON_GE

      public static final ComparisonType COMPARISON_GE
       True if the left argument is greater than or equal to the right argument.
       
      COMPARISON_GE = 2;
    • COMPARISON_LT

      public static final ComparisonType COMPARISON_LT
       True if the left argument is less than the right argument.
       
      COMPARISON_LT = 3;
    • COMPARISON_LE

      public static final ComparisonType COMPARISON_LE
       True if the left argument is less than or equal to the right argument.
       
      COMPARISON_LE = 4;
    • COMPARISON_EQ

      public static final ComparisonType COMPARISON_EQ
       True if the left argument is equal to the right argument.
       
      COMPARISON_EQ = 5;
    • COMPARISON_NE

      public static final ComparisonType COMPARISON_NE
       True if the left argument is not equal to the right argument.
       
      COMPARISON_NE = 6;
    • UNRECOGNIZED

      public static final ComparisonType UNRECOGNIZED
  • Field Details

    • COMPARISON_UNSPECIFIED_VALUE

      public static final int COMPARISON_UNSPECIFIED_VALUE
       No ordering relationship is specified.
       
      COMPARISON_UNSPECIFIED = 0;
      See Also:
    • COMPARISON_GT_VALUE

      public static final int COMPARISON_GT_VALUE
       True if the left argument is greater than the right argument.
       
      COMPARISON_GT = 1;
      See Also:
    • COMPARISON_GE_VALUE

      public static final int COMPARISON_GE_VALUE
       True if the left argument is greater than or equal to the right argument.
       
      COMPARISON_GE = 2;
      See Also:
    • COMPARISON_LT_VALUE

      public static final int COMPARISON_LT_VALUE
       True if the left argument is less than the right argument.
       
      COMPARISON_LT = 3;
      See Also:
    • COMPARISON_LE_VALUE

      public static final int COMPARISON_LE_VALUE
       True if the left argument is less than or equal to the right argument.
       
      COMPARISON_LE = 4;
      See Also:
    • COMPARISON_EQ_VALUE

      public static final int COMPARISON_EQ_VALUE
       True if the left argument is equal to the right argument.
       
      COMPARISON_EQ = 5;
      See Also:
    • COMPARISON_NE_VALUE

      public static final int COMPARISON_NE_VALUE
       True if the left argument is not equal to the right argument.
       
      COMPARISON_NE = 6;
      See Also:
  • Method Details

    • values

      public static ComparisonType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ComparisonType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static ComparisonType valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static ComparisonType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<ComparisonType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ComparisonType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null