Enum DescriptorProtos.FileOptions.OptimizeMode (3.19.4)

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

Name Description
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

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

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
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.