public static enum Transport.Heartbeat.Mode extends Enum<Transport.Heartbeat.Mode> implements com.google.protobuf.ProtocolMessageEnum
Heartbeat.Mode
Enum Constant and Description |
---|
CHANGE
CHANGE = 1; |
PERIODIC
PERIODIC = 2; |
STARTED
STARTED = 0; |
STOPPED
STOPPED = 3; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CHANGE_VALUE
CHANGE = 1; |
static int |
PERIODIC_VALUE
PERIODIC = 2; |
static int |
STARTED_VALUE
STARTED = 0; |
static int |
STOPPED_VALUE
STOPPED = 3; |
Modifier and Type | Method and Description |
---|---|
static Transport.Heartbeat.Mode |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Transport.Heartbeat.Mode> |
internalGetValueMap() |
static Transport.Heartbeat.Mode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Transport.Heartbeat.Mode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Transport.Heartbeat.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transport.Heartbeat.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transport.Heartbeat.Mode STARTED
STARTED = 0;
public static final Transport.Heartbeat.Mode CHANGE
CHANGE = 1;
public static final Transport.Heartbeat.Mode PERIODIC
PERIODIC = 2;
public static final Transport.Heartbeat.Mode STOPPED
STOPPED = 3;
public static final Transport.Heartbeat.Mode UNRECOGNIZED
public static final int STARTED_VALUE
STARTED = 0;
public static final int CHANGE_VALUE
CHANGE = 1;
public static final int PERIODIC_VALUE
PERIODIC = 2;
public static final int STOPPED_VALUE
STOPPED = 3;
public static Transport.Heartbeat.Mode[] values()
for (Transport.Heartbeat.Mode c : Transport.Heartbeat.Mode.values()) System.out.println(c);
public static Transport.Heartbeat.Mode 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 com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Transport.Heartbeat.Mode valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Transport.Heartbeat.Mode forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Transport.Heartbeat.Mode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Transport.Heartbeat.Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020. All rights reserved.