1ffe3c632Sopenharmony_ci<?php 2ffe3c632Sopenharmony_ci# Generated by the protocol buffer compiler. DO NOT EDIT! 3ffe3c632Sopenharmony_ci# source: google/protobuf/descriptor.proto 4ffe3c632Sopenharmony_ci 5ffe3c632Sopenharmony_cinamespace Google\Protobuf\Internal; 6ffe3c632Sopenharmony_ci 7ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBType; 8ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBWire; 9ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\RepeatedField; 10ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\InputStream; 11ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBUtil; 12ffe3c632Sopenharmony_ci 13ffe3c632Sopenharmony_ci/** 14ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.MessageOptions</code> 15ffe3c632Sopenharmony_ci */ 16ffe3c632Sopenharmony_ciclass MessageOptions extends \Google\Protobuf\Internal\Message 17ffe3c632Sopenharmony_ci{ 18ffe3c632Sopenharmony_ci /** 19ffe3c632Sopenharmony_ci * Set true to use the old proto1 MessageSet wire format for extensions. 20ffe3c632Sopenharmony_ci * This is provided for backwards-compatibility with the MessageSet wire 21ffe3c632Sopenharmony_ci * format. You should not use this for any other reason: It's less 22ffe3c632Sopenharmony_ci * efficient, has fewer features, and is more complicated. 23ffe3c632Sopenharmony_ci * The message must be defined exactly as follows: 24ffe3c632Sopenharmony_ci * message Foo { 25ffe3c632Sopenharmony_ci * option message_set_wire_format = true; 26ffe3c632Sopenharmony_ci * extensions 4 to max; 27ffe3c632Sopenharmony_ci * } 28ffe3c632Sopenharmony_ci * Note that the message cannot have any defined fields; MessageSets only 29ffe3c632Sopenharmony_ci * have extensions. 30ffe3c632Sopenharmony_ci * All extensions of your type must be singular messages; e.g. they cannot 31ffe3c632Sopenharmony_ci * be int32s, enums, or repeated messages. 32ffe3c632Sopenharmony_ci * Because this is an option, the above two restrictions are not enforced by 33ffe3c632Sopenharmony_ci * the protocol compiler. 34ffe3c632Sopenharmony_ci * 35ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool message_set_wire_format = 1 [default = false];</code> 36ffe3c632Sopenharmony_ci */ 37ffe3c632Sopenharmony_ci protected $message_set_wire_format = null; 38ffe3c632Sopenharmony_ci /** 39ffe3c632Sopenharmony_ci * Disables the generation of the standard "descriptor()" accessor, which can 40ffe3c632Sopenharmony_ci * conflict with a field of the same name. This is meant to make migration 41ffe3c632Sopenharmony_ci * from proto1 easier; new code should avoid fields named "descriptor". 42ffe3c632Sopenharmony_ci * 43ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 44ffe3c632Sopenharmony_ci */ 45ffe3c632Sopenharmony_ci protected $no_standard_descriptor_accessor = null; 46ffe3c632Sopenharmony_ci /** 47ffe3c632Sopenharmony_ci * Is this message deprecated? 48ffe3c632Sopenharmony_ci * Depending on the target platform, this can emit Deprecated annotations 49ffe3c632Sopenharmony_ci * for the message, or it will be completely ignored; in the very least, 50ffe3c632Sopenharmony_ci * this is a formalization for deprecating messages. 51ffe3c632Sopenharmony_ci * 52ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool deprecated = 3 [default = false];</code> 53ffe3c632Sopenharmony_ci */ 54ffe3c632Sopenharmony_ci protected $deprecated = null; 55ffe3c632Sopenharmony_ci /** 56ffe3c632Sopenharmony_ci * Whether the message is an automatically generated map entry type for the 57ffe3c632Sopenharmony_ci * maps field. 58ffe3c632Sopenharmony_ci * For maps fields: 59ffe3c632Sopenharmony_ci * map<KeyType, ValueType> map_field = 1; 60ffe3c632Sopenharmony_ci * The parsed descriptor looks like: 61ffe3c632Sopenharmony_ci * message MapFieldEntry { 62ffe3c632Sopenharmony_ci * option map_entry = true; 63ffe3c632Sopenharmony_ci * optional KeyType key = 1; 64ffe3c632Sopenharmony_ci * optional ValueType value = 2; 65ffe3c632Sopenharmony_ci * } 66ffe3c632Sopenharmony_ci * repeated MapFieldEntry map_field = 1; 67ffe3c632Sopenharmony_ci * Implementations may choose not to generate the map_entry=true message, but 68ffe3c632Sopenharmony_ci * use a native map in the target language to hold the keys and values. 69ffe3c632Sopenharmony_ci * The reflection APIs in such implementations still need to work as 70ffe3c632Sopenharmony_ci * if the field is a repeated message field. 71ffe3c632Sopenharmony_ci * NOTE: Do not set the option in .proto files. Always use the maps syntax 72ffe3c632Sopenharmony_ci * instead. The option should only be implicitly set by the proto compiler 73ffe3c632Sopenharmony_ci * parser. 74ffe3c632Sopenharmony_ci * 75ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool map_entry = 7;</code> 76ffe3c632Sopenharmony_ci */ 77ffe3c632Sopenharmony_ci protected $map_entry = null; 78ffe3c632Sopenharmony_ci /** 79ffe3c632Sopenharmony_ci * The parser stores options it doesn't recognize here. See above. 80ffe3c632Sopenharmony_ci * 81ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 82ffe3c632Sopenharmony_ci */ 83ffe3c632Sopenharmony_ci private $uninterpreted_option; 84ffe3c632Sopenharmony_ci 85ffe3c632Sopenharmony_ci /** 86ffe3c632Sopenharmony_ci * Constructor. 87ffe3c632Sopenharmony_ci * 88ffe3c632Sopenharmony_ci * @param array $data { 89ffe3c632Sopenharmony_ci * Optional. Data for populating the Message object. 90ffe3c632Sopenharmony_ci * 91ffe3c632Sopenharmony_ci * @type bool $message_set_wire_format 92ffe3c632Sopenharmony_ci * Set true to use the old proto1 MessageSet wire format for extensions. 93ffe3c632Sopenharmony_ci * This is provided for backwards-compatibility with the MessageSet wire 94ffe3c632Sopenharmony_ci * format. You should not use this for any other reason: It's less 95ffe3c632Sopenharmony_ci * efficient, has fewer features, and is more complicated. 96ffe3c632Sopenharmony_ci * The message must be defined exactly as follows: 97ffe3c632Sopenharmony_ci * message Foo { 98ffe3c632Sopenharmony_ci * option message_set_wire_format = true; 99ffe3c632Sopenharmony_ci * extensions 4 to max; 100ffe3c632Sopenharmony_ci * } 101ffe3c632Sopenharmony_ci * Note that the message cannot have any defined fields; MessageSets only 102ffe3c632Sopenharmony_ci * have extensions. 103ffe3c632Sopenharmony_ci * All extensions of your type must be singular messages; e.g. they cannot 104ffe3c632Sopenharmony_ci * be int32s, enums, or repeated messages. 105ffe3c632Sopenharmony_ci * Because this is an option, the above two restrictions are not enforced by 106ffe3c632Sopenharmony_ci * the protocol compiler. 107ffe3c632Sopenharmony_ci * @type bool $no_standard_descriptor_accessor 108ffe3c632Sopenharmony_ci * Disables the generation of the standard "descriptor()" accessor, which can 109ffe3c632Sopenharmony_ci * conflict with a field of the same name. This is meant to make migration 110ffe3c632Sopenharmony_ci * from proto1 easier; new code should avoid fields named "descriptor". 111ffe3c632Sopenharmony_ci * @type bool $deprecated 112ffe3c632Sopenharmony_ci * Is this message deprecated? 113ffe3c632Sopenharmony_ci * Depending on the target platform, this can emit Deprecated annotations 114ffe3c632Sopenharmony_ci * for the message, or it will be completely ignored; in the very least, 115ffe3c632Sopenharmony_ci * this is a formalization for deprecating messages. 116ffe3c632Sopenharmony_ci * @type bool $map_entry 117ffe3c632Sopenharmony_ci * Whether the message is an automatically generated map entry type for the 118ffe3c632Sopenharmony_ci * maps field. 119ffe3c632Sopenharmony_ci * For maps fields: 120ffe3c632Sopenharmony_ci * map<KeyType, ValueType> map_field = 1; 121ffe3c632Sopenharmony_ci * The parsed descriptor looks like: 122ffe3c632Sopenharmony_ci * message MapFieldEntry { 123ffe3c632Sopenharmony_ci * option map_entry = true; 124ffe3c632Sopenharmony_ci * optional KeyType key = 1; 125ffe3c632Sopenharmony_ci * optional ValueType value = 2; 126ffe3c632Sopenharmony_ci * } 127ffe3c632Sopenharmony_ci * repeated MapFieldEntry map_field = 1; 128ffe3c632Sopenharmony_ci * Implementations may choose not to generate the map_entry=true message, but 129ffe3c632Sopenharmony_ci * use a native map in the target language to hold the keys and values. 130ffe3c632Sopenharmony_ci * The reflection APIs in such implementations still need to work as 131ffe3c632Sopenharmony_ci * if the field is a repeated message field. 132ffe3c632Sopenharmony_ci * NOTE: Do not set the option in .proto files. Always use the maps syntax 133ffe3c632Sopenharmony_ci * instead. The option should only be implicitly set by the proto compiler 134ffe3c632Sopenharmony_ci * parser. 135ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option 136ffe3c632Sopenharmony_ci * The parser stores options it doesn't recognize here. See above. 137ffe3c632Sopenharmony_ci * } 138ffe3c632Sopenharmony_ci */ 139ffe3c632Sopenharmony_ci public function __construct($data = NULL) { 140ffe3c632Sopenharmony_ci \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); 141ffe3c632Sopenharmony_ci parent::__construct($data); 142ffe3c632Sopenharmony_ci } 143ffe3c632Sopenharmony_ci 144ffe3c632Sopenharmony_ci /** 145ffe3c632Sopenharmony_ci * Set true to use the old proto1 MessageSet wire format for extensions. 146ffe3c632Sopenharmony_ci * This is provided for backwards-compatibility with the MessageSet wire 147ffe3c632Sopenharmony_ci * format. You should not use this for any other reason: It's less 148ffe3c632Sopenharmony_ci * efficient, has fewer features, and is more complicated. 149ffe3c632Sopenharmony_ci * The message must be defined exactly as follows: 150ffe3c632Sopenharmony_ci * message Foo { 151ffe3c632Sopenharmony_ci * option message_set_wire_format = true; 152ffe3c632Sopenharmony_ci * extensions 4 to max; 153ffe3c632Sopenharmony_ci * } 154ffe3c632Sopenharmony_ci * Note that the message cannot have any defined fields; MessageSets only 155ffe3c632Sopenharmony_ci * have extensions. 156ffe3c632Sopenharmony_ci * All extensions of your type must be singular messages; e.g. they cannot 157ffe3c632Sopenharmony_ci * be int32s, enums, or repeated messages. 158ffe3c632Sopenharmony_ci * Because this is an option, the above two restrictions are not enforced by 159ffe3c632Sopenharmony_ci * the protocol compiler. 160ffe3c632Sopenharmony_ci * 161ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool message_set_wire_format = 1 [default = false];</code> 162ffe3c632Sopenharmony_ci * @return bool 163ffe3c632Sopenharmony_ci */ 164ffe3c632Sopenharmony_ci public function getMessageSetWireFormat() 165ffe3c632Sopenharmony_ci { 166ffe3c632Sopenharmony_ci return isset($this->message_set_wire_format) ? $this->message_set_wire_format : false; 167ffe3c632Sopenharmony_ci } 168ffe3c632Sopenharmony_ci 169ffe3c632Sopenharmony_ci public function hasMessageSetWireFormat() 170ffe3c632Sopenharmony_ci { 171ffe3c632Sopenharmony_ci return isset($this->message_set_wire_format); 172ffe3c632Sopenharmony_ci } 173ffe3c632Sopenharmony_ci 174ffe3c632Sopenharmony_ci public function clearMessageSetWireFormat() 175ffe3c632Sopenharmony_ci { 176ffe3c632Sopenharmony_ci unset($this->message_set_wire_format); 177ffe3c632Sopenharmony_ci } 178ffe3c632Sopenharmony_ci 179ffe3c632Sopenharmony_ci /** 180ffe3c632Sopenharmony_ci * Set true to use the old proto1 MessageSet wire format for extensions. 181ffe3c632Sopenharmony_ci * This is provided for backwards-compatibility with the MessageSet wire 182ffe3c632Sopenharmony_ci * format. You should not use this for any other reason: It's less 183ffe3c632Sopenharmony_ci * efficient, has fewer features, and is more complicated. 184ffe3c632Sopenharmony_ci * The message must be defined exactly as follows: 185ffe3c632Sopenharmony_ci * message Foo { 186ffe3c632Sopenharmony_ci * option message_set_wire_format = true; 187ffe3c632Sopenharmony_ci * extensions 4 to max; 188ffe3c632Sopenharmony_ci * } 189ffe3c632Sopenharmony_ci * Note that the message cannot have any defined fields; MessageSets only 190ffe3c632Sopenharmony_ci * have extensions. 191ffe3c632Sopenharmony_ci * All extensions of your type must be singular messages; e.g. they cannot 192ffe3c632Sopenharmony_ci * be int32s, enums, or repeated messages. 193ffe3c632Sopenharmony_ci * Because this is an option, the above two restrictions are not enforced by 194ffe3c632Sopenharmony_ci * the protocol compiler. 195ffe3c632Sopenharmony_ci * 196ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool message_set_wire_format = 1 [default = false];</code> 197ffe3c632Sopenharmony_ci * @param bool $var 198ffe3c632Sopenharmony_ci * @return $this 199ffe3c632Sopenharmony_ci */ 200ffe3c632Sopenharmony_ci public function setMessageSetWireFormat($var) 201ffe3c632Sopenharmony_ci { 202ffe3c632Sopenharmony_ci GPBUtil::checkBool($var); 203ffe3c632Sopenharmony_ci $this->message_set_wire_format = $var; 204ffe3c632Sopenharmony_ci 205ffe3c632Sopenharmony_ci return $this; 206ffe3c632Sopenharmony_ci } 207ffe3c632Sopenharmony_ci 208ffe3c632Sopenharmony_ci /** 209ffe3c632Sopenharmony_ci * Disables the generation of the standard "descriptor()" accessor, which can 210ffe3c632Sopenharmony_ci * conflict with a field of the same name. This is meant to make migration 211ffe3c632Sopenharmony_ci * from proto1 easier; new code should avoid fields named "descriptor". 212ffe3c632Sopenharmony_ci * 213ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 214ffe3c632Sopenharmony_ci * @return bool 215ffe3c632Sopenharmony_ci */ 216ffe3c632Sopenharmony_ci public function getNoStandardDescriptorAccessor() 217ffe3c632Sopenharmony_ci { 218ffe3c632Sopenharmony_ci return isset($this->no_standard_descriptor_accessor) ? $this->no_standard_descriptor_accessor : false; 219ffe3c632Sopenharmony_ci } 220ffe3c632Sopenharmony_ci 221ffe3c632Sopenharmony_ci public function hasNoStandardDescriptorAccessor() 222ffe3c632Sopenharmony_ci { 223ffe3c632Sopenharmony_ci return isset($this->no_standard_descriptor_accessor); 224ffe3c632Sopenharmony_ci } 225ffe3c632Sopenharmony_ci 226ffe3c632Sopenharmony_ci public function clearNoStandardDescriptorAccessor() 227ffe3c632Sopenharmony_ci { 228ffe3c632Sopenharmony_ci unset($this->no_standard_descriptor_accessor); 229ffe3c632Sopenharmony_ci } 230ffe3c632Sopenharmony_ci 231ffe3c632Sopenharmony_ci /** 232ffe3c632Sopenharmony_ci * Disables the generation of the standard "descriptor()" accessor, which can 233ffe3c632Sopenharmony_ci * conflict with a field of the same name. This is meant to make migration 234ffe3c632Sopenharmony_ci * from proto1 easier; new code should avoid fields named "descriptor". 235ffe3c632Sopenharmony_ci * 236ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 237ffe3c632Sopenharmony_ci * @param bool $var 238ffe3c632Sopenharmony_ci * @return $this 239ffe3c632Sopenharmony_ci */ 240ffe3c632Sopenharmony_ci public function setNoStandardDescriptorAccessor($var) 241ffe3c632Sopenharmony_ci { 242ffe3c632Sopenharmony_ci GPBUtil::checkBool($var); 243ffe3c632Sopenharmony_ci $this->no_standard_descriptor_accessor = $var; 244ffe3c632Sopenharmony_ci 245ffe3c632Sopenharmony_ci return $this; 246ffe3c632Sopenharmony_ci } 247ffe3c632Sopenharmony_ci 248ffe3c632Sopenharmony_ci /** 249ffe3c632Sopenharmony_ci * Is this message deprecated? 250ffe3c632Sopenharmony_ci * Depending on the target platform, this can emit Deprecated annotations 251ffe3c632Sopenharmony_ci * for the message, or it will be completely ignored; in the very least, 252ffe3c632Sopenharmony_ci * this is a formalization for deprecating messages. 253ffe3c632Sopenharmony_ci * 254ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool deprecated = 3 [default = false];</code> 255ffe3c632Sopenharmony_ci * @return bool 256ffe3c632Sopenharmony_ci */ 257ffe3c632Sopenharmony_ci public function getDeprecated() 258ffe3c632Sopenharmony_ci { 259ffe3c632Sopenharmony_ci return isset($this->deprecated) ? $this->deprecated : false; 260ffe3c632Sopenharmony_ci } 261ffe3c632Sopenharmony_ci 262ffe3c632Sopenharmony_ci public function hasDeprecated() 263ffe3c632Sopenharmony_ci { 264ffe3c632Sopenharmony_ci return isset($this->deprecated); 265ffe3c632Sopenharmony_ci } 266ffe3c632Sopenharmony_ci 267ffe3c632Sopenharmony_ci public function clearDeprecated() 268ffe3c632Sopenharmony_ci { 269ffe3c632Sopenharmony_ci unset($this->deprecated); 270ffe3c632Sopenharmony_ci } 271ffe3c632Sopenharmony_ci 272ffe3c632Sopenharmony_ci /** 273ffe3c632Sopenharmony_ci * Is this message deprecated? 274ffe3c632Sopenharmony_ci * Depending on the target platform, this can emit Deprecated annotations 275ffe3c632Sopenharmony_ci * for the message, or it will be completely ignored; in the very least, 276ffe3c632Sopenharmony_ci * this is a formalization for deprecating messages. 277ffe3c632Sopenharmony_ci * 278ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool deprecated = 3 [default = false];</code> 279ffe3c632Sopenharmony_ci * @param bool $var 280ffe3c632Sopenharmony_ci * @return $this 281ffe3c632Sopenharmony_ci */ 282ffe3c632Sopenharmony_ci public function setDeprecated($var) 283ffe3c632Sopenharmony_ci { 284ffe3c632Sopenharmony_ci GPBUtil::checkBool($var); 285ffe3c632Sopenharmony_ci $this->deprecated = $var; 286ffe3c632Sopenharmony_ci 287ffe3c632Sopenharmony_ci return $this; 288ffe3c632Sopenharmony_ci } 289ffe3c632Sopenharmony_ci 290ffe3c632Sopenharmony_ci /** 291ffe3c632Sopenharmony_ci * Whether the message is an automatically generated map entry type for the 292ffe3c632Sopenharmony_ci * maps field. 293ffe3c632Sopenharmony_ci * For maps fields: 294ffe3c632Sopenharmony_ci * map<KeyType, ValueType> map_field = 1; 295ffe3c632Sopenharmony_ci * The parsed descriptor looks like: 296ffe3c632Sopenharmony_ci * message MapFieldEntry { 297ffe3c632Sopenharmony_ci * option map_entry = true; 298ffe3c632Sopenharmony_ci * optional KeyType key = 1; 299ffe3c632Sopenharmony_ci * optional ValueType value = 2; 300ffe3c632Sopenharmony_ci * } 301ffe3c632Sopenharmony_ci * repeated MapFieldEntry map_field = 1; 302ffe3c632Sopenharmony_ci * Implementations may choose not to generate the map_entry=true message, but 303ffe3c632Sopenharmony_ci * use a native map in the target language to hold the keys and values. 304ffe3c632Sopenharmony_ci * The reflection APIs in such implementations still need to work as 305ffe3c632Sopenharmony_ci * if the field is a repeated message field. 306ffe3c632Sopenharmony_ci * NOTE: Do not set the option in .proto files. Always use the maps syntax 307ffe3c632Sopenharmony_ci * instead. The option should only be implicitly set by the proto compiler 308ffe3c632Sopenharmony_ci * parser. 309ffe3c632Sopenharmony_ci * 310ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool map_entry = 7;</code> 311ffe3c632Sopenharmony_ci * @return bool 312ffe3c632Sopenharmony_ci */ 313ffe3c632Sopenharmony_ci public function getMapEntry() 314ffe3c632Sopenharmony_ci { 315ffe3c632Sopenharmony_ci return isset($this->map_entry) ? $this->map_entry : false; 316ffe3c632Sopenharmony_ci } 317ffe3c632Sopenharmony_ci 318ffe3c632Sopenharmony_ci public function hasMapEntry() 319ffe3c632Sopenharmony_ci { 320ffe3c632Sopenharmony_ci return isset($this->map_entry); 321ffe3c632Sopenharmony_ci } 322ffe3c632Sopenharmony_ci 323ffe3c632Sopenharmony_ci public function clearMapEntry() 324ffe3c632Sopenharmony_ci { 325ffe3c632Sopenharmony_ci unset($this->map_entry); 326ffe3c632Sopenharmony_ci } 327ffe3c632Sopenharmony_ci 328ffe3c632Sopenharmony_ci /** 329ffe3c632Sopenharmony_ci * Whether the message is an automatically generated map entry type for the 330ffe3c632Sopenharmony_ci * maps field. 331ffe3c632Sopenharmony_ci * For maps fields: 332ffe3c632Sopenharmony_ci * map<KeyType, ValueType> map_field = 1; 333ffe3c632Sopenharmony_ci * The parsed descriptor looks like: 334ffe3c632Sopenharmony_ci * message MapFieldEntry { 335ffe3c632Sopenharmony_ci * option map_entry = true; 336ffe3c632Sopenharmony_ci * optional KeyType key = 1; 337ffe3c632Sopenharmony_ci * optional ValueType value = 2; 338ffe3c632Sopenharmony_ci * } 339ffe3c632Sopenharmony_ci * repeated MapFieldEntry map_field = 1; 340ffe3c632Sopenharmony_ci * Implementations may choose not to generate the map_entry=true message, but 341ffe3c632Sopenharmony_ci * use a native map in the target language to hold the keys and values. 342ffe3c632Sopenharmony_ci * The reflection APIs in such implementations still need to work as 343ffe3c632Sopenharmony_ci * if the field is a repeated message field. 344ffe3c632Sopenharmony_ci * NOTE: Do not set the option in .proto files. Always use the maps syntax 345ffe3c632Sopenharmony_ci * instead. The option should only be implicitly set by the proto compiler 346ffe3c632Sopenharmony_ci * parser. 347ffe3c632Sopenharmony_ci * 348ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool map_entry = 7;</code> 349ffe3c632Sopenharmony_ci * @param bool $var 350ffe3c632Sopenharmony_ci * @return $this 351ffe3c632Sopenharmony_ci */ 352ffe3c632Sopenharmony_ci public function setMapEntry($var) 353ffe3c632Sopenharmony_ci { 354ffe3c632Sopenharmony_ci GPBUtil::checkBool($var); 355ffe3c632Sopenharmony_ci $this->map_entry = $var; 356ffe3c632Sopenharmony_ci 357ffe3c632Sopenharmony_ci return $this; 358ffe3c632Sopenharmony_ci } 359ffe3c632Sopenharmony_ci 360ffe3c632Sopenharmony_ci /** 361ffe3c632Sopenharmony_ci * The parser stores options it doesn't recognize here. See above. 362ffe3c632Sopenharmony_ci * 363ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 364ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 365ffe3c632Sopenharmony_ci */ 366ffe3c632Sopenharmony_ci public function getUninterpretedOption() 367ffe3c632Sopenharmony_ci { 368ffe3c632Sopenharmony_ci return $this->uninterpreted_option; 369ffe3c632Sopenharmony_ci } 370ffe3c632Sopenharmony_ci 371ffe3c632Sopenharmony_ci /** 372ffe3c632Sopenharmony_ci * The parser stores options it doesn't recognize here. See above. 373ffe3c632Sopenharmony_ci * 374ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 375ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var 376ffe3c632Sopenharmony_ci * @return $this 377ffe3c632Sopenharmony_ci */ 378ffe3c632Sopenharmony_ci public function setUninterpretedOption($var) 379ffe3c632Sopenharmony_ci { 380ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class); 381ffe3c632Sopenharmony_ci $this->uninterpreted_option = $arr; 382ffe3c632Sopenharmony_ci 383ffe3c632Sopenharmony_ci return $this; 384ffe3c632Sopenharmony_ci } 385ffe3c632Sopenharmony_ci 386ffe3c632Sopenharmony_ci} 387ffe3c632Sopenharmony_ci 388