Package pragma
Enum PragmaOptions.PragmaSessionType
- java.lang.Object
-
- java.lang.Enum<PragmaOptions.PragmaSessionType>
-
- pragma.PragmaOptions.PragmaSessionType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PragmaOptions.PragmaSessionType>
- Enclosing class:
- PragmaOptions
public static enum PragmaOptions.PragmaSessionType extends Enum<PragmaOptions.PragmaSessionType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumpragma.PragmaSessionType
-
-
Field Summary
Fields Modifier and Type Field Description static intNONE_VALUENONE = 0;static intOPERATOR_VALUEOPERATOR = 3;static intPARTNER_VALUEPARTNER = 2;static intPLAYER_VALUEPLAYER = 1;static intSERVICE_VALUESERVICE = 4;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static PragmaOptions.PragmaSessionTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<PragmaOptions.PragmaSessionType>internalGetValueMap()static PragmaOptions.PragmaSessionTypevalueOf(int value)Deprecated.static PragmaOptions.PragmaSessionTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static PragmaOptions.PragmaSessionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PragmaOptions.PragmaSessionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final PragmaOptions.PragmaSessionType NONE
NONE = 0;
-
PLAYER
public static final PragmaOptions.PragmaSessionType PLAYER
PLAYER = 1;
-
PARTNER
public static final PragmaOptions.PragmaSessionType PARTNER
PARTNER = 2;
-
OPERATOR
public static final PragmaOptions.PragmaSessionType OPERATOR
OPERATOR = 3;
-
SERVICE
public static final PragmaOptions.PragmaSessionType SERVICE
SERVICE = 4;
-
UNRECOGNIZED
public static final PragmaOptions.PragmaSessionType UNRECOGNIZED
-
-
Field Detail
-
NONE_VALUE
public static final int NONE_VALUE
NONE = 0;- See Also:
- Constant Field Values
-
PLAYER_VALUE
public static final int PLAYER_VALUE
PLAYER = 1;- See Also:
- Constant Field Values
-
PARTNER_VALUE
public static final int PARTNER_VALUE
PARTNER = 2;- See Also:
- Constant Field Values
-
OPERATOR_VALUE
public static final int OPERATOR_VALUE
OPERATOR = 3;- See Also:
- Constant Field Values
-
SERVICE_VALUE
public static final int SERVICE_VALUE
SERVICE = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static PragmaOptions.PragmaSessionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PragmaOptions.PragmaSessionType c : PragmaOptions.PragmaSessionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PragmaOptions.PragmaSessionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static PragmaOptions.PragmaSessionType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static PragmaOptions.PragmaSessionType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<PragmaOptions.PragmaSessionType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static PragmaOptions.PragmaSessionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-