public static enum Protocol.BlockInventory.Type extends Enum<Protocol.BlockInventory.Type> implements com.google.protobuf.ProtocolMessageEnum
protocol.BlockInventory.Type
Enum Constant and Description |
---|
ADVTISE
ADVTISE = 1; |
FETCH
FETCH = 2; |
SYNC
SYNC = 0; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ADVTISE_VALUE
ADVTISE = 1; |
static int |
FETCH_VALUE
FETCH = 2; |
static int |
SYNC_VALUE
SYNC = 0; |
Modifier and Type | Method and Description |
---|---|
static Protocol.BlockInventory.Type |
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<Protocol.BlockInventory.Type> |
internalGetValueMap() |
static Protocol.BlockInventory.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protocol.BlockInventory.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Protocol.BlockInventory.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol.BlockInventory.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol.BlockInventory.Type SYNC
SYNC = 0;
public static final Protocol.BlockInventory.Type ADVTISE
ADVTISE = 1;
public static final Protocol.BlockInventory.Type FETCH
FETCH = 2;
public static final Protocol.BlockInventory.Type UNRECOGNIZED
public static final int SYNC_VALUE
SYNC = 0;
public static final int ADVTISE_VALUE
ADVTISE = 1;
public static final int FETCH_VALUE
FETCH = 2;
public static Protocol.BlockInventory.Type[] values()
for (Protocol.BlockInventory.Type c : Protocol.BlockInventory.Type.values()) System.out.println(c);
public static Protocol.BlockInventory.Type 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 Protocol.BlockInventory.Type valueOf(int value)
forNumber(int)
instead.public static Protocol.BlockInventory.Type forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Protocol.BlockInventory.Type> 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 Protocol.BlockInventory.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020. All rights reserved.