proto library Client - Class OptionRetention (v5.36.2)

Reference documentation and code samples for the proto library Client class OptionRetention.

If set to RETENTION_SOURCE, the option will be omitted from the binary.

Protobuf type google.protobuf.FieldOptions.OptionRetention

Namespace

Google \ Protobuf \ Internal \ FieldOptions

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

RETENTION_UNKNOWN

Value: 0

Generated from protobuf enum RETENTION_UNKNOWN = 0;

RETENTION_RUNTIME

Value: 1

Generated from protobuf enum RETENTION_RUNTIME = 1;

RETENTION_SOURCE

Value: 2

Generated from protobuf enum RETENTION_SOURCE = 2;