A protocol buffer option, which can be attached to a message, field, enumeration, etc.
New usages of this message as an alternative to FileOptions, MessageOptions, FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, or MethodOptions are strongly discouraged.
Generated from protobuf message google.protobuf.Option
| Methods |
| public __construct( $data = NULL) Constructor.
|
| public clearValue() |
| public getName() The option's name. For protobuf built-in options (options defined in
descriptor.proto), this is the short name. For example, For custom options, it should be the fully-qualified name. For example,
Generated from protobuf field string name = 1;
|
| public getValue() The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type. Generated from protobuf field .google.protobuf.Any value = 2;
|
| public hasValue() |
| public setName(string $var) The option's name. For protobuf built-in options (options defined in
descriptor.proto), this is the short name. For example, For custom options, it should be the fully-qualified name. For example,
Generated from protobuf field string name = 1;
|
| public setValue(?Google The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type. Generated from protobuf field .google.protobuf.Any value = 2;
|
| Properties |
| protected $name = '' The option's name. For protobuf built-in options (options defined in
descriptor.proto), this is the short name. For example, For custom options, it should be the fully-qualified name. For example,
Generated from protobuf field string name = 1; |
| protected $value = NULL The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type. Generated from protobuf field .google.protobuf.Any value = 2; |
| Methods |