Enum DescriptorProtos.FileOptions.OptimizeMode

Stay organized with collections Save and categorize content based on your preferences.
public enum DescriptorProtos.FileOptions.OptimizeMode extends Enum<DescriptorProtos.FileOptions.OptimizeMode> implements ProtocolMessageEnum

Generated classes can be optimized for speed or code size.

Protobuf enum google.protobuf.FileOptions.OptimizeMode

Implements

ProtocolMessageEnum

Static Fields

NameDescription
CODE_SIZE

etc.

CODE_SIZE = 2;

CODE_SIZE_VALUE

etc.

CODE_SIZE = 2;

LITE_RUNTIME

Generate code using MessageLite and the lite runtime.

LITE_RUNTIME = 3;

LITE_RUNTIME_VALUE

Generate code using MessageLite and the lite runtime.

LITE_RUNTIME = 3;

SPEED

Generate complete code for parsing, serialization,

SPEED = 1;

SPEED_VALUE

Generate complete code for parsing, serialization,

SPEED = 1;

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.