Copied!

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

Protobuf type google.protobuf.FieldOptions.OptionRetention

CloneableInstantiable
Constants
public Google\Protobuf\Internal\FieldOptions\OptionRetention::RETENTION_RUNTIME = 1
 

Generated from protobuf enum RETENTION_RUNTIME = 1;

public Google\Protobuf\Internal\FieldOptions\OptionRetention::RETENTION_SOURCE = 2
 

Generated from protobuf enum RETENTION_SOURCE = 2;

public Google\Protobuf\Internal\FieldOptions\OptionRetention::RETENTION_UNKNOWN = 0
 

Generated from protobuf enum RETENTION_UNKNOWN = 0;

Methods
public static name( $value)
public static value( $name)
Properties
private static $valueToName = ['RETENTION_UNKNOWN', 'RETENTION_RUNTIME', 'RETENTION_SOURCE']
Properties
private static $valueToName = ['RETENTION_UNKNOWN', 'RETENTION_RUNTIME', 'RETENTION_SOURCE']
Methods
public static name( $value)
public static value( $name)
© 2026 Bruce Wells
Search Namespaces \ Classes
Configuration