search

goog.proto2.ObjectSerializer.KeyOption

Provided By
Typenumber

An enumeration of the options for how to emit the keys in the generated simplified object.

For serialization, the option specifies the keys to use in the serialized object.

For deserialization, the option specifies which keys are allowed; an object serialized by TAG may be deserialized by TAG or by NAME or by CAMEL_CASE_NAME, but an object serialized by NAME cannot be deserialized by TAG. An object serialized with any option can be deserialized by CAMEL_CASE_NAME.

Values

CAMEL_CASE_NAME

Use the camel cased name of the field as the key. Unknown fields will still use their tags as keys.

NAME

Use the name of the field as the key. Unknown fields will still use their tags as keys.

TAG

Use the tag of the field as the key (default)