|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||
java.lang.Objectjava.lang.Enum<DescriptorProtos.FieldOptions.CType>
com.google.protobuf.DescriptorProtos.FieldOptions.CType
public static enum DescriptorProtos.FieldOptions.CType
Protobuf enum google.protobuf.FieldOptions.CType
| Enum Constant Summary | |
|---|---|
CORD
CORD = 1; |
|
STRING
STRING = 0; |
|
STRING_PIECE
STRING_PIECE = 2; |
|
| Field Summary | |
|---|---|
static int |
CORD_VALUE
CORD = 1; |
static int |
STRING_PIECE_VALUE
STRING_PIECE = 2; |
static int |
STRING_VALUE
STRING = 0; |
| Method Summary | |
|---|---|
static Descriptors.EnumDescriptor |
getDescriptor()
|
Descriptors.EnumDescriptor |
getDescriptorForType()
Return the enum type's descriptor, which contains information about each defined value, etc. |
int |
getNumber()
Return the value's numeric value as defined in the .proto file. |
Descriptors.EnumValueDescriptor |
getValueDescriptor()
Return the value's descriptor, which contains information such as value name, number, and type. |
static Internal.EnumLiteMap<DescriptorProtos.FieldOptions.CType> |
internalGetValueMap()
|
static DescriptorProtos.FieldOptions.CType |
valueOf(Descriptors.EnumValueDescriptor desc)
|
static DescriptorProtos.FieldOptions.CType |
valueOf(int value)
|
static DescriptorProtos.FieldOptions.CType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DescriptorProtos.FieldOptions.CType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DescriptorProtos.FieldOptions.CType STRING
STRING = 0;
Default mode.
public static final DescriptorProtos.FieldOptions.CType CORD
CORD = 1;
public static final DescriptorProtos.FieldOptions.CType STRING_PIECE
STRING_PIECE = 2;
| Field Detail |
|---|
public static final int STRING_VALUE
STRING = 0;
Default mode.
public static final int CORD_VALUE
CORD = 1;
public static final int STRING_PIECE_VALUE
STRING_PIECE = 2;
| Method Detail |
|---|
public static DescriptorProtos.FieldOptions.CType[] values()
for (DescriptorProtos.FieldOptions.CType c : DescriptorProtos.FieldOptions.CType.values()) System.out.println(c);
public static DescriptorProtos.FieldOptions.CType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic final int getNumber()
ProtocolMessageEnum
getNumber in interface Internal.EnumLitegetNumber in interface ProtocolMessageEnumpublic static DescriptorProtos.FieldOptions.CType valueOf(int value)
public static Internal.EnumLiteMap<DescriptorProtos.FieldOptions.CType> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
ProtocolMessageEnum
getValueDescriptor in interface ProtocolMessageEnumpublic final Descriptors.EnumDescriptor getDescriptorForType()
ProtocolMessageEnum
getDescriptorForType in interface ProtocolMessageEnumpublic static final Descriptors.EnumDescriptor getDescriptor()
public static DescriptorProtos.FieldOptions.CType valueOf(Descriptors.EnumValueDescriptor desc)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||