public static enum Rpc.Type extends Enum<Rpc.Type> implements com.google.protobuf.ProtocolMessageEnum
ola.rpc.Type
Enum Constant and Description |
---|
DESCRIPTOR_REQUEST
DESCRIPTOR_REQUEST = 7; |
DESCRIPTOR_RESPONSE
DESCRIPTOR_RESPONSE = 8; |
DISCONNECT
DISCONNECT = 6; |
REQUEST
REQUEST = 1; |
REQUEST_CANCEL
REQUEST_CANCEL = 9; |
RESPONSE
RESPONSE = 2; |
RESPONSE_CANCEL
RESPONSE_CANCEL = 3; |
RESPONSE_FAILED
RESPONSE_FAILED = 4; |
RESPONSE_NOT_IMPLEMENTED
RESPONSE_NOT_IMPLEMENTED = 5; |
STREAM_REQUEST
STREAM_REQUEST = 10; |
Modifier and Type | Field and Description |
---|---|
static int |
DESCRIPTOR_REQUEST_VALUE
DESCRIPTOR_REQUEST = 7; |
static int |
DESCRIPTOR_RESPONSE_VALUE
DESCRIPTOR_RESPONSE = 8; |
static int |
DISCONNECT_VALUE
DISCONNECT = 6; |
static int |
REQUEST_CANCEL_VALUE
REQUEST_CANCEL = 9; |
static int |
REQUEST_VALUE
REQUEST = 1; |
static int |
RESPONSE_CANCEL_VALUE
RESPONSE_CANCEL = 3; |
static int |
RESPONSE_FAILED_VALUE
RESPONSE_FAILED = 4; |
static int |
RESPONSE_NOT_IMPLEMENTED_VALUE
RESPONSE_NOT_IMPLEMENTED = 5; |
static int |
RESPONSE_VALUE
RESPONSE = 2; |
static int |
STREAM_REQUEST_VALUE
STREAM_REQUEST = 10; |
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<Rpc.Type> |
internalGetValueMap() |
static Rpc.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Rpc.Type |
valueOf(int value) |
static Rpc.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Rpc.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rpc.Type REQUEST
REQUEST = 1;
public static final Rpc.Type RESPONSE
RESPONSE = 2;
public static final Rpc.Type RESPONSE_CANCEL
RESPONSE_CANCEL = 3;
public static final Rpc.Type RESPONSE_FAILED
RESPONSE_FAILED = 4;
public static final Rpc.Type RESPONSE_NOT_IMPLEMENTED
RESPONSE_NOT_IMPLEMENTED = 5;
public static final Rpc.Type DISCONNECT
DISCONNECT = 6;
public static final Rpc.Type DESCRIPTOR_REQUEST
DESCRIPTOR_REQUEST = 7;
not implemented
public static final Rpc.Type DESCRIPTOR_RESPONSE
DESCRIPTOR_RESPONSE = 8;
not implemented
public static final Rpc.Type REQUEST_CANCEL
REQUEST_CANCEL = 9;
public static final Rpc.Type STREAM_REQUEST
STREAM_REQUEST = 10;
a request that we don't expect a response for
public static final int REQUEST_VALUE
REQUEST = 1;
public static final int RESPONSE_VALUE
RESPONSE = 2;
public static final int RESPONSE_CANCEL_VALUE
RESPONSE_CANCEL = 3;
public static final int RESPONSE_FAILED_VALUE
RESPONSE_FAILED = 4;
public static final int RESPONSE_NOT_IMPLEMENTED_VALUE
RESPONSE_NOT_IMPLEMENTED = 5;
public static final int DISCONNECT_VALUE
DISCONNECT = 6;
public static final int DESCRIPTOR_REQUEST_VALUE
DESCRIPTOR_REQUEST = 7;
not implemented
public static final int DESCRIPTOR_RESPONSE_VALUE
DESCRIPTOR_RESPONSE = 8;
not implemented
public static final int REQUEST_CANCEL_VALUE
REQUEST_CANCEL = 9;
public static final int STREAM_REQUEST_VALUE
STREAM_REQUEST = 10;
a request that we don't expect a response for
public static Rpc.Type[] values()
for (Rpc.Type c : Rpc.Type.values()) System.out.println(c);
public static Rpc.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
public static Rpc.Type valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Rpc.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 Rpc.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2017. All rights reserved.