Stubs

Module

stubs/wellknowntypes

The Protobuf well-known types (google/protobuf/*.proto), from Google's protobuf releases.

OfficialPublic

Enum in pb.GoFeatures.OptimizeModeFeature

OptimizeMode

pb.GoFeatures.OptimizeModeFeature.OptimizeMode

The name of this enum matches OptimizeMode in descriptor.proto.

Values

NameNumberDescription
OPTIMIZE_MODE_UNSPECIFIED0

OPTIMIZE_MODE_UNSPECIFIED results in falling back to the default (optimize for code size), but needs to be a separate value to distinguish between an explicitly set optimize mode or a missing optimize mode.

SPEED1
CODE_SIZE2

There is no enum entry for LITE_RUNTIME (descriptor.proto), because Go Protobuf does not have the concept of a lite runtime.

Used by

Defined in google/protobuf/go_features.proto