public static enum Messages.PayloadType extends Enum<Messages.PayloadType> implements com.google.protobuf.ProtocolMessageEnum
grpc.testing.PayloadType
The type of payload that should be returned.
| Enum Constant and Description |
|---|
COMPRESSABLE
COMPRESSABLE = 0; |
RANDOM
RANDOM = 2; |
UNCOMPRESSABLE
UNCOMPRESSABLE = 1; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPRESSABLE_VALUE
COMPRESSABLE = 0; |
static int |
RANDOM_VALUE
RANDOM = 2; |
static int |
UNCOMPRESSABLE_VALUE
UNCOMPRESSABLE = 1; |
| Modifier and Type | Method and Description |
|---|---|
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<Messages.PayloadType> |
internalGetValueMap() |
static Messages.PayloadType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Messages.PayloadType |
valueOf(int value) |
static Messages.PayloadType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Messages.PayloadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Messages.PayloadType COMPRESSABLE
COMPRESSABLE = 0;
Compressable text format.
public static final Messages.PayloadType UNCOMPRESSABLE
UNCOMPRESSABLE = 1;
Uncompressable binary format.
public static final Messages.PayloadType RANDOM
RANDOM = 2;
Randomly chosen from all other formats defined in this enum.
public static final Messages.PayloadType UNRECOGNIZED
public static final int COMPRESSABLE_VALUE
COMPRESSABLE = 0;
Compressable text format.
public static final int UNCOMPRESSABLE_VALUE
UNCOMPRESSABLE = 1;
Uncompressable binary format.
public static final int RANDOM_VALUE
RANDOM = 2;
Randomly chosen from all other formats defined in this enum.
public static Messages.PayloadType[] values()
for (Messages.PayloadType c : Messages.PayloadType.values()) System.out.println(c);
public static Messages.PayloadType 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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnumpublic static Messages.PayloadType valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Messages.PayloadType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Messages.PayloadType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)