Enum DescriptorProtos.FieldOptions.CType

public enum DescriptorProtos.FieldOptions.CType extends Enum<DescriptorProtos.FieldOptions.CType> implements ProtocolMessageEnum

Protobuf enum google.protobuf.FieldOptions.CType

Implements

ProtocolMessageEnum

Static Fields

NameDescription
CORD

CORD = 1;

CORD_VALUE

CORD = 1;

STRING

Default mode.

STRING = 0;

STRING_PIECE

STRING_PIECE = 2;

STRING_PIECE_VALUE

STRING_PIECE = 2;

STRING_VALUE

Default mode.

STRING = 0;

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()

Return the enum type's descriptor, which contains information about each defined value, etc.

getNumber()

Return the value's numeric value as defined in the .proto file.

getValueDescriptor()

Return the value's descriptor, which contains information such as value name, number, and type.