← Back to packages

Package pb

Message GoFeatures

Enum APILevel

Enum StripEnumPrefix

Messages

message GoFeatures google/protobuf/go_features.proto

Field Type Description
1 legacy_unmarshal_json_enum bool

Whether or not to generate the deprecated UnmarshalJSON method for enums. Can only be true for proto using the Open Struct api.

2 api_level pb.GoFeatures.APILevel

One of OPEN, HYBRID or OPAQUE.

3 strip_enum_prefix pb.GoFeatures.StripEnumPrefix

Enums

enum APILevel google/protobuf/go_features.proto

Name Number Description
API_LEVEL_UNSPECIFIED 0

API_LEVEL_UNSPECIFIED results in selecting the OPEN API, but needs to be a separate value to distinguish between an explicitly set api level or a missing api level.

API_OPEN 1
API_HYBRID 2
API_OPAQUE 3

enum StripEnumPrefix google/protobuf/go_features.proto

Name Number Description
STRIP_ENUM_PREFIX_UNSPECIFIED 0
STRIP_ENUM_PREFIX_KEEP 1
STRIP_ENUM_PREFIX_GENERATE_BOTH 2
STRIP_ENUM_PREFIX_STRIP 3