1ffe3c632Sopenharmony_ci<?php 2ffe3c632Sopenharmony_ci# Generated by the protocol buffer compiler. DO NOT EDIT! 3ffe3c632Sopenharmony_ci# source: google/protobuf/type.proto 4ffe3c632Sopenharmony_ci 5ffe3c632Sopenharmony_cinamespace Google\Protobuf; 6ffe3c632Sopenharmony_ci 7ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBType; 8ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\RepeatedField; 9ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBUtil; 10ffe3c632Sopenharmony_ci 11ffe3c632Sopenharmony_ci/** 12ffe3c632Sopenharmony_ci * A protocol buffer option, which can be attached to a message, field, 13ffe3c632Sopenharmony_ci * enumeration, etc. 14ffe3c632Sopenharmony_ci * 15ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.Option</code> 16ffe3c632Sopenharmony_ci */ 17ffe3c632Sopenharmony_ciclass Option extends \Google\Protobuf\Internal\Message 18ffe3c632Sopenharmony_ci{ 19ffe3c632Sopenharmony_ci /** 20ffe3c632Sopenharmony_ci * The option's name. For protobuf built-in options (options defined in 21ffe3c632Sopenharmony_ci * descriptor.proto), this is the short name. For example, `"map_entry"`. 22ffe3c632Sopenharmony_ci * For custom options, it should be the fully-qualified name. For example, 23ffe3c632Sopenharmony_ci * `"google.api.http"`. 24ffe3c632Sopenharmony_ci * 25ffe3c632Sopenharmony_ci * Generated from protobuf field <code>string name = 1;</code> 26ffe3c632Sopenharmony_ci */ 27ffe3c632Sopenharmony_ci private $name = ''; 28ffe3c632Sopenharmony_ci /** 29ffe3c632Sopenharmony_ci * The option's value packed in an Any message. If the value is a primitive, 30ffe3c632Sopenharmony_ci * the corresponding wrapper type defined in google/protobuf/wrappers.proto 31ffe3c632Sopenharmony_ci * should be used. If the value is an enum, it should be stored as an int32 32ffe3c632Sopenharmony_ci * value using the google.protobuf.Int32Value type. 33ffe3c632Sopenharmony_ci * 34ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.Any value = 2;</code> 35ffe3c632Sopenharmony_ci */ 36ffe3c632Sopenharmony_ci private $value = null; 37ffe3c632Sopenharmony_ci 38ffe3c632Sopenharmony_ci /** 39ffe3c632Sopenharmony_ci * Constructor. 40ffe3c632Sopenharmony_ci * 41ffe3c632Sopenharmony_ci * @param array $data { 42ffe3c632Sopenharmony_ci * Optional. Data for populating the Message object. 43ffe3c632Sopenharmony_ci * 44ffe3c632Sopenharmony_ci * @type string $name 45ffe3c632Sopenharmony_ci * The option's name. For protobuf built-in options (options defined in 46ffe3c632Sopenharmony_ci * descriptor.proto), this is the short name. For example, `"map_entry"`. 47ffe3c632Sopenharmony_ci * For custom options, it should be the fully-qualified name. For example, 48ffe3c632Sopenharmony_ci * `"google.api.http"`. 49ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Any $value 50ffe3c632Sopenharmony_ci * The option's value packed in an Any message. If the value is a primitive, 51ffe3c632Sopenharmony_ci * the corresponding wrapper type defined in google/protobuf/wrappers.proto 52ffe3c632Sopenharmony_ci * should be used. If the value is an enum, it should be stored as an int32 53ffe3c632Sopenharmony_ci * value using the google.protobuf.Int32Value type. 54ffe3c632Sopenharmony_ci * } 55ffe3c632Sopenharmony_ci */ 56ffe3c632Sopenharmony_ci public function __construct($data = NULL) { 57ffe3c632Sopenharmony_ci \GPBMetadata\Google\Protobuf\Type::initOnce(); 58ffe3c632Sopenharmony_ci parent::__construct($data); 59ffe3c632Sopenharmony_ci } 60ffe3c632Sopenharmony_ci 61ffe3c632Sopenharmony_ci /** 62ffe3c632Sopenharmony_ci * The option's name. For protobuf built-in options (options defined in 63ffe3c632Sopenharmony_ci * descriptor.proto), this is the short name. For example, `"map_entry"`. 64ffe3c632Sopenharmony_ci * For custom options, it should be the fully-qualified name. For example, 65ffe3c632Sopenharmony_ci * `"google.api.http"`. 66ffe3c632Sopenharmony_ci * 67ffe3c632Sopenharmony_ci * Generated from protobuf field <code>string name = 1;</code> 68ffe3c632Sopenharmony_ci * @return string 69ffe3c632Sopenharmony_ci */ 70ffe3c632Sopenharmony_ci public function getName() 71ffe3c632Sopenharmony_ci { 72ffe3c632Sopenharmony_ci return $this->name; 73ffe3c632Sopenharmony_ci } 74ffe3c632Sopenharmony_ci 75ffe3c632Sopenharmony_ci /** 76ffe3c632Sopenharmony_ci * The option's name. For protobuf built-in options (options defined in 77ffe3c632Sopenharmony_ci * descriptor.proto), this is the short name. For example, `"map_entry"`. 78ffe3c632Sopenharmony_ci * For custom options, it should be the fully-qualified name. For example, 79ffe3c632Sopenharmony_ci * `"google.api.http"`. 80ffe3c632Sopenharmony_ci * 81ffe3c632Sopenharmony_ci * Generated from protobuf field <code>string name = 1;</code> 82ffe3c632Sopenharmony_ci * @param string $var 83ffe3c632Sopenharmony_ci * @return $this 84ffe3c632Sopenharmony_ci */ 85ffe3c632Sopenharmony_ci public function setName($var) 86ffe3c632Sopenharmony_ci { 87ffe3c632Sopenharmony_ci GPBUtil::checkString($var, True); 88ffe3c632Sopenharmony_ci $this->name = $var; 89ffe3c632Sopenharmony_ci 90ffe3c632Sopenharmony_ci return $this; 91ffe3c632Sopenharmony_ci } 92ffe3c632Sopenharmony_ci 93ffe3c632Sopenharmony_ci /** 94ffe3c632Sopenharmony_ci * The option's value packed in an Any message. If the value is a primitive, 95ffe3c632Sopenharmony_ci * the corresponding wrapper type defined in google/protobuf/wrappers.proto 96ffe3c632Sopenharmony_ci * should be used. If the value is an enum, it should be stored as an int32 97ffe3c632Sopenharmony_ci * value using the google.protobuf.Int32Value type. 98ffe3c632Sopenharmony_ci * 99ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.Any value = 2;</code> 100ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Any 101ffe3c632Sopenharmony_ci */ 102ffe3c632Sopenharmony_ci public function getValue() 103ffe3c632Sopenharmony_ci { 104ffe3c632Sopenharmony_ci return $this->value; 105ffe3c632Sopenharmony_ci } 106ffe3c632Sopenharmony_ci 107ffe3c632Sopenharmony_ci /** 108ffe3c632Sopenharmony_ci * The option's value packed in an Any message. If the value is a primitive, 109ffe3c632Sopenharmony_ci * the corresponding wrapper type defined in google/protobuf/wrappers.proto 110ffe3c632Sopenharmony_ci * should be used. If the value is an enum, it should be stored as an int32 111ffe3c632Sopenharmony_ci * value using the google.protobuf.Int32Value type. 112ffe3c632Sopenharmony_ci * 113ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.Any value = 2;</code> 114ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Any $var 115ffe3c632Sopenharmony_ci * @return $this 116ffe3c632Sopenharmony_ci */ 117ffe3c632Sopenharmony_ci public function setValue($var) 118ffe3c632Sopenharmony_ci { 119ffe3c632Sopenharmony_ci GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); 120ffe3c632Sopenharmony_ci $this->value = $var; 121ffe3c632Sopenharmony_ci 122ffe3c632Sopenharmony_ci return $this; 123ffe3c632Sopenharmony_ci } 124ffe3c632Sopenharmony_ci 125ffe3c632Sopenharmony_ci} 126ffe3c632Sopenharmony_ci 127