public static enum PubSubProtocol.StatusCode extends Enum<PubSubProtocol.StatusCode> implements com.google.protobuf.ProtocolMessageEnum
Enum Constant and Description |
---|
CLIENT_ALREADY_SUBSCRIBED |
CLIENT_NOT_SUBSCRIBED |
COMPOSITE |
COULD_NOT_CONNECT |
MALFORMED_REQUEST |
NO_SUCH_TOPIC |
NOT_RESPONSIBLE_FOR_TOPIC |
SERVICE_DOWN |
SUCCESS |
TOPIC_BUSY |
UNCERTAIN_STATE |
UNEXPECTED_CONDITION |
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<PubSubProtocol.StatusCode> |
internalGetValueMap() |
static PubSubProtocol.StatusCode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static PubSubProtocol.StatusCode |
valueOf(int value) |
static PubSubProtocol.StatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PubSubProtocol.StatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PubSubProtocol.StatusCode SUCCESS
public static final PubSubProtocol.StatusCode MALFORMED_REQUEST
public static final PubSubProtocol.StatusCode NO_SUCH_TOPIC
public static final PubSubProtocol.StatusCode CLIENT_ALREADY_SUBSCRIBED
public static final PubSubProtocol.StatusCode CLIENT_NOT_SUBSCRIBED
public static final PubSubProtocol.StatusCode COULD_NOT_CONNECT
public static final PubSubProtocol.StatusCode TOPIC_BUSY
public static final PubSubProtocol.StatusCode NOT_RESPONSIBLE_FOR_TOPIC
public static final PubSubProtocol.StatusCode SERVICE_DOWN
public static final PubSubProtocol.StatusCode UNCERTAIN_STATE
public static final PubSubProtocol.StatusCode UNEXPECTED_CONDITION
public static final PubSubProtocol.StatusCode COMPOSITE
public static PubSubProtocol.StatusCode[] values()
for (PubSubProtocol.StatusCode c : PubSubProtocol.StatusCode.values()) System.out.println(c);
public static PubSubProtocol.StatusCode 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 PubSubProtocol.StatusCode valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<PubSubProtocol.StatusCode> 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 PubSubProtocol.StatusCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.