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 \ FieldOptionsMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
RETENTION_UNKNOWN
Value: 0Generated from protobuf enum RETENTION_UNKNOWN = 0;
RETENTION_RUNTIME
Value: 1Generated from protobuf enum RETENTION_RUNTIME = 1;
RETENTION_SOURCE
Value: 2Generated from protobuf enum RETENTION_SOURCE = 2;