public static enum Signal.State extends Enum<Signal.State> implements ProtocolMessageEnum
Describes whether the alerting condition is still firing.Protobuf enum
google.cloud.irm.v1alpha2.Signal.State| Enum Constant and Description |
|---|
STATE_CLOSED
Non-firing
|
STATE_OPEN
Firing
|
STATE_UNSPECIFIED
Unspecified
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
STATE_CLOSED_VALUE
Non-firing
|
static int |
STATE_OPEN_VALUE
Firing
|
static int |
STATE_UNSPECIFIED_VALUE
Unspecified
|
| Modifier and Type | Method and Description |
|---|---|
static Signal.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Signal.State> |
internalGetValueMap() |
static Signal.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Signal.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Signal.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Signal.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Signal.State STATE_UNSPECIFIED
Unspecified
STATE_UNSPECIFIED = 0;public static final Signal.State STATE_OPEN
Firing
STATE_OPEN = 1;public static final Signal.State STATE_CLOSED
Non-firing
STATE_CLOSED = 2;public static final Signal.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Unspecified
STATE_UNSPECIFIED = 0;public static final int STATE_OPEN_VALUE
Firing
STATE_OPEN = 1;public static final int STATE_CLOSED_VALUE
Non-firing
STATE_CLOSED = 2;public static Signal.State[] values()
for (Signal.State c : Signal.State.values()) System.out.println(c);
public static Signal.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface Internal.EnumLitegetNumber in interface ProtocolMessageEnum@Deprecated public static Signal.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Signal.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Signal.State> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface ProtocolMessageEnumpublic final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface ProtocolMessageEnumpublic static final Descriptors.EnumDescriptor getDescriptor()
public static Signal.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2020 Google LLC. All rights reserved.