<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/protobuf/type.proto namespace Google\Protobuf; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * A protocol buffer option, which can be attached to a message, field, * enumeration, etc. * * Generated from protobuf message <code>google.protobuf.Option</code> */ class Option extends \Google\Protobuf\Internal\Message { /** * The option's name. For protobuf built-in options (options defined in * descriptor.proto), this is the short name. For example, `"map_entry"`. * For custom options, it should be the fully-qualified name. For example, * `"google.api.http"`. * * Generated from protobuf field <code>string name = 1;</code> */ protected $name = ''; /** * 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 <code>.google.protobuf.Any value = 2;</code> */ protected $value = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The option's name. For protobuf built-in options (options defined in * descriptor.proto), this is the short name. For example, `"map_entry"`. * For custom options, it should be the fully-qualified name. For example, * `"google.api.http"`. * @type \Google\Protobuf\Any $value * 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. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Protobuf\Type::initOnce(); parent::__construct($data); } /** * The option's name. For protobuf built-in options (options defined in * descriptor.proto), this is the short name. For example, `"map_entry"`. * For custom options, it should be the fully-qualified name. For example, * `"google.api.http"`. * * Generated from protobuf field <code>string name = 1;</code> * @return string */ public function getName() { return $this->name; } /** * The option's name. For protobuf built-in options (options defined in * descriptor.proto), this is the short name. For example, `"map_entry"`. * For custom options, it should be the fully-qualified name. For example, * `"google.api.http"`. * * Generated from protobuf field <code>string name = 1;</code> * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * 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 <code>.google.protobuf.Any value = 2;</code> * @return \Google\Protobuf\Any|null */ public function getValue() { return $this->value; } public function hasValue() { return isset($this->value); } public function clearValue() { unset($this->value); } /** * 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 <code>.google.protobuf.Any value = 2;</code> * @param \Google\Protobuf\Any $var * @return $this */ public function setValue($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); $this->value = $var; return $this; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Field | Folder | 0755 |
|
|
Internal | Folder | 0755 |
|
|
Any.php | File | 10.46 KB | 0755 |
|
Api.php | File | 13.03 KB | 0755 |
|
BoolValue.php | File | 1.47 KB | 0755 |
|
BytesValue.php | File | 1.48 KB | 0755 |
|
Descriptor.php | File | 3.25 KB | 0755 |
|
DescriptorPool.php | File | 2.77 KB | 0755 |
|
DoubleValue.php | File | 1.48 KB | 0755 |
|
Duration.php | File | 6.54 KB | 0755 |
|
Enum.php | File | 5.46 KB | 0755 |
|
EnumDescriptor.php | File | 2.53 KB | 0755 |
|
EnumValue.php | File | 3.15 KB | 0755 |
|
EnumValueDescriptor.php | File | 2.09 KB | 0755 |
|
Field.php | File | 9.92 KB | 0755 |
|
FieldDescriptor.php | File | 3.72 KB | 0755 |
|
FieldMask.php | File | 7.41 KB | 0755 |
|
Field_Cardinality.php | File | 512 B | 0755 |
|
Field_Kind.php | File | 477 B | 0755 |
|
FloatValue.php | File | 1.47 KB | 0755 |
|
GPBEmpty.php | File | 1.05 KB | 0755 |
|
Int32Value.php | File | 1.46 KB | 0755 |
|
Int64Value.php | File | 1.48 KB | 0755 |
|
ListValue.php | File | 1.91 KB | 0755 |
|
Method.php | File | 6.88 KB | 0755 |
|
Mixin.php | File | 5.03 KB | 0755 |
|
NullValue.php | File | 1.22 KB | 0755 |
|
OneofDescriptor.php | File | 2.58 KB | 0755 |
|
Option.php | File | 4.48 KB | 0755 |
|
SourceContext.php | File | 2.11 KB | 0755 |
|
StringValue.php | File | 1.49 KB | 0755 |
|
Struct.php | File | 2.21 KB | 0755 |
|
Syntax.php | File | 1.32 KB | 0755 |
|
Timestamp.php | File | 7.32 KB | 0755 |
|
Type.php | File | 6.58 KB | 0755 |
|
UInt32Value.php | File | 1.47 KB | 0755 |
|
UInt64Value.php | File | 1.5 KB | 0755 |
|
Value.php | File | 5.73 KB | 0755 |
|