Skip to main content

Enumeration: OptionRetention

protobuf.FieldOptions.OptionRetention

If set to RETENTION_SOURCE, the option will be omitted from the binary. Note: as of January 2023, support for this is in progress and does not yet have an effect (b/264593489).

Enumeration Members​

RETENTION_RUNTIME​

• RETENTION_RUNTIME = 1

RETENTION_RUNTIME value


RETENTION_SOURCE​

• RETENTION_SOURCE = 2

RETENTION_SOURCE value


RETENTION_UNKNOWN​

• RETENTION_UNKNOWN = 0

RETENTION_UNKNOWN value