The goog.proto2.ObjectSerializer.KeyOption Enum

goog.proto2.ObjectSerializer.KeyOption

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

@enum
{number}

.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)