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 * Describes a complete .proto file. 15ffe3c632Sopenharmony_ci * 16ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.FileDescriptorProto</code> 17ffe3c632Sopenharmony_ci */ 18ffe3c632Sopenharmony_ciclass FileDescriptorProto extends \Google\Protobuf\Internal\Message 19ffe3c632Sopenharmony_ci{ 20ffe3c632Sopenharmony_ci /** 21ffe3c632Sopenharmony_ci * file name, relative to root of source tree 22ffe3c632Sopenharmony_ci * 23ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string name = 1;</code> 24ffe3c632Sopenharmony_ci */ 25ffe3c632Sopenharmony_ci protected $name = null; 26ffe3c632Sopenharmony_ci /** 27ffe3c632Sopenharmony_ci * e.g. "foo", "foo.bar", etc. 28ffe3c632Sopenharmony_ci * 29ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string package = 2;</code> 30ffe3c632Sopenharmony_ci */ 31ffe3c632Sopenharmony_ci protected $package = null; 32ffe3c632Sopenharmony_ci /** 33ffe3c632Sopenharmony_ci * Names of files imported by this file. 34ffe3c632Sopenharmony_ci * 35ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated string dependency = 3;</code> 36ffe3c632Sopenharmony_ci */ 37ffe3c632Sopenharmony_ci private $dependency; 38ffe3c632Sopenharmony_ci /** 39ffe3c632Sopenharmony_ci * Indexes of the public imported files in the dependency list above. 40ffe3c632Sopenharmony_ci * 41ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated int32 public_dependency = 10;</code> 42ffe3c632Sopenharmony_ci */ 43ffe3c632Sopenharmony_ci private $public_dependency; 44ffe3c632Sopenharmony_ci /** 45ffe3c632Sopenharmony_ci * Indexes of the weak imported files in the dependency list. 46ffe3c632Sopenharmony_ci * For Google-internal migration only. Do not use. 47ffe3c632Sopenharmony_ci * 48ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated int32 weak_dependency = 11;</code> 49ffe3c632Sopenharmony_ci */ 50ffe3c632Sopenharmony_ci private $weak_dependency; 51ffe3c632Sopenharmony_ci /** 52ffe3c632Sopenharmony_ci * All top-level definitions in this file. 53ffe3c632Sopenharmony_ci * 54ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 55ffe3c632Sopenharmony_ci */ 56ffe3c632Sopenharmony_ci private $message_type; 57ffe3c632Sopenharmony_ci /** 58ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 59ffe3c632Sopenharmony_ci */ 60ffe3c632Sopenharmony_ci private $enum_type; 61ffe3c632Sopenharmony_ci /** 62ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 63ffe3c632Sopenharmony_ci */ 64ffe3c632Sopenharmony_ci private $service; 65ffe3c632Sopenharmony_ci /** 66ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 67ffe3c632Sopenharmony_ci */ 68ffe3c632Sopenharmony_ci private $extension; 69ffe3c632Sopenharmony_ci /** 70ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.FileOptions options = 8;</code> 71ffe3c632Sopenharmony_ci */ 72ffe3c632Sopenharmony_ci protected $options = null; 73ffe3c632Sopenharmony_ci /** 74ffe3c632Sopenharmony_ci * This field contains optional information about the original source code. 75ffe3c632Sopenharmony_ci * You may safely remove this entire field without harming runtime 76ffe3c632Sopenharmony_ci * functionality of the descriptors -- the information is needed only by 77ffe3c632Sopenharmony_ci * development tools. 78ffe3c632Sopenharmony_ci * 79ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 80ffe3c632Sopenharmony_ci */ 81ffe3c632Sopenharmony_ci protected $source_code_info = null; 82ffe3c632Sopenharmony_ci /** 83ffe3c632Sopenharmony_ci * The syntax of the proto file. 84ffe3c632Sopenharmony_ci * The supported values are "proto2" and "proto3". 85ffe3c632Sopenharmony_ci * 86ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string syntax = 12;</code> 87ffe3c632Sopenharmony_ci */ 88ffe3c632Sopenharmony_ci protected $syntax = null; 89ffe3c632Sopenharmony_ci 90ffe3c632Sopenharmony_ci /** 91ffe3c632Sopenharmony_ci * Constructor. 92ffe3c632Sopenharmony_ci * 93ffe3c632Sopenharmony_ci * @param array $data { 94ffe3c632Sopenharmony_ci * Optional. Data for populating the Message object. 95ffe3c632Sopenharmony_ci * 96ffe3c632Sopenharmony_ci * @type string $name 97ffe3c632Sopenharmony_ci * file name, relative to root of source tree 98ffe3c632Sopenharmony_ci * @type string $package 99ffe3c632Sopenharmony_ci * e.g. "foo", "foo.bar", etc. 100ffe3c632Sopenharmony_ci * @type string[]|\Google\Protobuf\Internal\RepeatedField $dependency 101ffe3c632Sopenharmony_ci * Names of files imported by this file. 102ffe3c632Sopenharmony_ci * @type int[]|\Google\Protobuf\Internal\RepeatedField $public_dependency 103ffe3c632Sopenharmony_ci * Indexes of the public imported files in the dependency list above. 104ffe3c632Sopenharmony_ci * @type int[]|\Google\Protobuf\Internal\RepeatedField $weak_dependency 105ffe3c632Sopenharmony_ci * Indexes of the weak imported files in the dependency list. 106ffe3c632Sopenharmony_ci * For Google-internal migration only. Do not use. 107ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Internal\DescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $message_type 108ffe3c632Sopenharmony_ci * All top-level definitions in this file. 109ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Internal\EnumDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $enum_type 110ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Internal\ServiceDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $service 111ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Internal\FieldDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $extension 112ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Internal\FileOptions $options 113ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Internal\SourceCodeInfo $source_code_info 114ffe3c632Sopenharmony_ci * This field contains optional information about the original source code. 115ffe3c632Sopenharmony_ci * You may safely remove this entire field without harming runtime 116ffe3c632Sopenharmony_ci * functionality of the descriptors -- the information is needed only by 117ffe3c632Sopenharmony_ci * development tools. 118ffe3c632Sopenharmony_ci * @type string $syntax 119ffe3c632Sopenharmony_ci * The syntax of the proto file. 120ffe3c632Sopenharmony_ci * The supported values are "proto2" and "proto3". 121ffe3c632Sopenharmony_ci * } 122ffe3c632Sopenharmony_ci */ 123ffe3c632Sopenharmony_ci public function __construct($data = NULL) { 124ffe3c632Sopenharmony_ci \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); 125ffe3c632Sopenharmony_ci parent::__construct($data); 126ffe3c632Sopenharmony_ci } 127ffe3c632Sopenharmony_ci 128ffe3c632Sopenharmony_ci /** 129ffe3c632Sopenharmony_ci * file name, relative to root of source tree 130ffe3c632Sopenharmony_ci * 131ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string name = 1;</code> 132ffe3c632Sopenharmony_ci * @return string 133ffe3c632Sopenharmony_ci */ 134ffe3c632Sopenharmony_ci public function getName() 135ffe3c632Sopenharmony_ci { 136ffe3c632Sopenharmony_ci return isset($this->name) ? $this->name : ''; 137ffe3c632Sopenharmony_ci } 138ffe3c632Sopenharmony_ci 139ffe3c632Sopenharmony_ci public function hasName() 140ffe3c632Sopenharmony_ci { 141ffe3c632Sopenharmony_ci return isset($this->name); 142ffe3c632Sopenharmony_ci } 143ffe3c632Sopenharmony_ci 144ffe3c632Sopenharmony_ci public function clearName() 145ffe3c632Sopenharmony_ci { 146ffe3c632Sopenharmony_ci unset($this->name); 147ffe3c632Sopenharmony_ci } 148ffe3c632Sopenharmony_ci 149ffe3c632Sopenharmony_ci /** 150ffe3c632Sopenharmony_ci * file name, relative to root of source tree 151ffe3c632Sopenharmony_ci * 152ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string name = 1;</code> 153ffe3c632Sopenharmony_ci * @param string $var 154ffe3c632Sopenharmony_ci * @return $this 155ffe3c632Sopenharmony_ci */ 156ffe3c632Sopenharmony_ci public function setName($var) 157ffe3c632Sopenharmony_ci { 158ffe3c632Sopenharmony_ci GPBUtil::checkString($var, True); 159ffe3c632Sopenharmony_ci $this->name = $var; 160ffe3c632Sopenharmony_ci 161ffe3c632Sopenharmony_ci return $this; 162ffe3c632Sopenharmony_ci } 163ffe3c632Sopenharmony_ci 164ffe3c632Sopenharmony_ci /** 165ffe3c632Sopenharmony_ci * e.g. "foo", "foo.bar", etc. 166ffe3c632Sopenharmony_ci * 167ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string package = 2;</code> 168ffe3c632Sopenharmony_ci * @return string 169ffe3c632Sopenharmony_ci */ 170ffe3c632Sopenharmony_ci public function getPackage() 171ffe3c632Sopenharmony_ci { 172ffe3c632Sopenharmony_ci return isset($this->package) ? $this->package : ''; 173ffe3c632Sopenharmony_ci } 174ffe3c632Sopenharmony_ci 175ffe3c632Sopenharmony_ci public function hasPackage() 176ffe3c632Sopenharmony_ci { 177ffe3c632Sopenharmony_ci return isset($this->package); 178ffe3c632Sopenharmony_ci } 179ffe3c632Sopenharmony_ci 180ffe3c632Sopenharmony_ci public function clearPackage() 181ffe3c632Sopenharmony_ci { 182ffe3c632Sopenharmony_ci unset($this->package); 183ffe3c632Sopenharmony_ci } 184ffe3c632Sopenharmony_ci 185ffe3c632Sopenharmony_ci /** 186ffe3c632Sopenharmony_ci * e.g. "foo", "foo.bar", etc. 187ffe3c632Sopenharmony_ci * 188ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string package = 2;</code> 189ffe3c632Sopenharmony_ci * @param string $var 190ffe3c632Sopenharmony_ci * @return $this 191ffe3c632Sopenharmony_ci */ 192ffe3c632Sopenharmony_ci public function setPackage($var) 193ffe3c632Sopenharmony_ci { 194ffe3c632Sopenharmony_ci GPBUtil::checkString($var, True); 195ffe3c632Sopenharmony_ci $this->package = $var; 196ffe3c632Sopenharmony_ci 197ffe3c632Sopenharmony_ci return $this; 198ffe3c632Sopenharmony_ci } 199ffe3c632Sopenharmony_ci 200ffe3c632Sopenharmony_ci /** 201ffe3c632Sopenharmony_ci * Names of files imported by this file. 202ffe3c632Sopenharmony_ci * 203ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated string dependency = 3;</code> 204ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 205ffe3c632Sopenharmony_ci */ 206ffe3c632Sopenharmony_ci public function getDependency() 207ffe3c632Sopenharmony_ci { 208ffe3c632Sopenharmony_ci return $this->dependency; 209ffe3c632Sopenharmony_ci } 210ffe3c632Sopenharmony_ci 211ffe3c632Sopenharmony_ci /** 212ffe3c632Sopenharmony_ci * Names of files imported by this file. 213ffe3c632Sopenharmony_ci * 214ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated string dependency = 3;</code> 215ffe3c632Sopenharmony_ci * @param string[]|\Google\Protobuf\Internal\RepeatedField $var 216ffe3c632Sopenharmony_ci * @return $this 217ffe3c632Sopenharmony_ci */ 218ffe3c632Sopenharmony_ci public function setDependency($var) 219ffe3c632Sopenharmony_ci { 220ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); 221ffe3c632Sopenharmony_ci $this->dependency = $arr; 222ffe3c632Sopenharmony_ci 223ffe3c632Sopenharmony_ci return $this; 224ffe3c632Sopenharmony_ci } 225ffe3c632Sopenharmony_ci 226ffe3c632Sopenharmony_ci /** 227ffe3c632Sopenharmony_ci * Indexes of the public imported files in the dependency list above. 228ffe3c632Sopenharmony_ci * 229ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated int32 public_dependency = 10;</code> 230ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 231ffe3c632Sopenharmony_ci */ 232ffe3c632Sopenharmony_ci public function getPublicDependency() 233ffe3c632Sopenharmony_ci { 234ffe3c632Sopenharmony_ci return $this->public_dependency; 235ffe3c632Sopenharmony_ci } 236ffe3c632Sopenharmony_ci 237ffe3c632Sopenharmony_ci /** 238ffe3c632Sopenharmony_ci * Indexes of the public imported files in the dependency list above. 239ffe3c632Sopenharmony_ci * 240ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated int32 public_dependency = 10;</code> 241ffe3c632Sopenharmony_ci * @param int[]|\Google\Protobuf\Internal\RepeatedField $var 242ffe3c632Sopenharmony_ci * @return $this 243ffe3c632Sopenharmony_ci */ 244ffe3c632Sopenharmony_ci public function setPublicDependency($var) 245ffe3c632Sopenharmony_ci { 246ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); 247ffe3c632Sopenharmony_ci $this->public_dependency = $arr; 248ffe3c632Sopenharmony_ci 249ffe3c632Sopenharmony_ci return $this; 250ffe3c632Sopenharmony_ci } 251ffe3c632Sopenharmony_ci 252ffe3c632Sopenharmony_ci /** 253ffe3c632Sopenharmony_ci * Indexes of the weak imported files in the dependency list. 254ffe3c632Sopenharmony_ci * For Google-internal migration only. Do not use. 255ffe3c632Sopenharmony_ci * 256ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated int32 weak_dependency = 11;</code> 257ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 258ffe3c632Sopenharmony_ci */ 259ffe3c632Sopenharmony_ci public function getWeakDependency() 260ffe3c632Sopenharmony_ci { 261ffe3c632Sopenharmony_ci return $this->weak_dependency; 262ffe3c632Sopenharmony_ci } 263ffe3c632Sopenharmony_ci 264ffe3c632Sopenharmony_ci /** 265ffe3c632Sopenharmony_ci * Indexes of the weak imported files in the dependency list. 266ffe3c632Sopenharmony_ci * For Google-internal migration only. Do not use. 267ffe3c632Sopenharmony_ci * 268ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated int32 weak_dependency = 11;</code> 269ffe3c632Sopenharmony_ci * @param int[]|\Google\Protobuf\Internal\RepeatedField $var 270ffe3c632Sopenharmony_ci * @return $this 271ffe3c632Sopenharmony_ci */ 272ffe3c632Sopenharmony_ci public function setWeakDependency($var) 273ffe3c632Sopenharmony_ci { 274ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); 275ffe3c632Sopenharmony_ci $this->weak_dependency = $arr; 276ffe3c632Sopenharmony_ci 277ffe3c632Sopenharmony_ci return $this; 278ffe3c632Sopenharmony_ci } 279ffe3c632Sopenharmony_ci 280ffe3c632Sopenharmony_ci /** 281ffe3c632Sopenharmony_ci * All top-level definitions in this file. 282ffe3c632Sopenharmony_ci * 283ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 284ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 285ffe3c632Sopenharmony_ci */ 286ffe3c632Sopenharmony_ci public function getMessageType() 287ffe3c632Sopenharmony_ci { 288ffe3c632Sopenharmony_ci return $this->message_type; 289ffe3c632Sopenharmony_ci } 290ffe3c632Sopenharmony_ci 291ffe3c632Sopenharmony_ci /** 292ffe3c632Sopenharmony_ci * All top-level definitions in this file. 293ffe3c632Sopenharmony_ci * 294ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 295ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Internal\DescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var 296ffe3c632Sopenharmony_ci * @return $this 297ffe3c632Sopenharmony_ci */ 298ffe3c632Sopenharmony_ci public function setMessageType($var) 299ffe3c632Sopenharmony_ci { 300ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\DescriptorProto::class); 301ffe3c632Sopenharmony_ci $this->message_type = $arr; 302ffe3c632Sopenharmony_ci 303ffe3c632Sopenharmony_ci return $this; 304ffe3c632Sopenharmony_ci } 305ffe3c632Sopenharmony_ci 306ffe3c632Sopenharmony_ci /** 307ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 308ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 309ffe3c632Sopenharmony_ci */ 310ffe3c632Sopenharmony_ci public function getEnumType() 311ffe3c632Sopenharmony_ci { 312ffe3c632Sopenharmony_ci return $this->enum_type; 313ffe3c632Sopenharmony_ci } 314ffe3c632Sopenharmony_ci 315ffe3c632Sopenharmony_ci /** 316ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 317ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Internal\EnumDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var 318ffe3c632Sopenharmony_ci * @return $this 319ffe3c632Sopenharmony_ci */ 320ffe3c632Sopenharmony_ci public function setEnumType($var) 321ffe3c632Sopenharmony_ci { 322ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\EnumDescriptorProto::class); 323ffe3c632Sopenharmony_ci $this->enum_type = $arr; 324ffe3c632Sopenharmony_ci 325ffe3c632Sopenharmony_ci return $this; 326ffe3c632Sopenharmony_ci } 327ffe3c632Sopenharmony_ci 328ffe3c632Sopenharmony_ci /** 329ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 330ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 331ffe3c632Sopenharmony_ci */ 332ffe3c632Sopenharmony_ci public function getService() 333ffe3c632Sopenharmony_ci { 334ffe3c632Sopenharmony_ci return $this->service; 335ffe3c632Sopenharmony_ci } 336ffe3c632Sopenharmony_ci 337ffe3c632Sopenharmony_ci /** 338ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 339ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Internal\ServiceDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var 340ffe3c632Sopenharmony_ci * @return $this 341ffe3c632Sopenharmony_ci */ 342ffe3c632Sopenharmony_ci public function setService($var) 343ffe3c632Sopenharmony_ci { 344ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\ServiceDescriptorProto::class); 345ffe3c632Sopenharmony_ci $this->service = $arr; 346ffe3c632Sopenharmony_ci 347ffe3c632Sopenharmony_ci return $this; 348ffe3c632Sopenharmony_ci } 349ffe3c632Sopenharmony_ci 350ffe3c632Sopenharmony_ci /** 351ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 352ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 353ffe3c632Sopenharmony_ci */ 354ffe3c632Sopenharmony_ci public function getExtension() 355ffe3c632Sopenharmony_ci { 356ffe3c632Sopenharmony_ci return $this->extension; 357ffe3c632Sopenharmony_ci } 358ffe3c632Sopenharmony_ci 359ffe3c632Sopenharmony_ci /** 360ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 361ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Internal\FieldDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var 362ffe3c632Sopenharmony_ci * @return $this 363ffe3c632Sopenharmony_ci */ 364ffe3c632Sopenharmony_ci public function setExtension($var) 365ffe3c632Sopenharmony_ci { 366ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class); 367ffe3c632Sopenharmony_ci $this->extension = $arr; 368ffe3c632Sopenharmony_ci 369ffe3c632Sopenharmony_ci return $this; 370ffe3c632Sopenharmony_ci } 371ffe3c632Sopenharmony_ci 372ffe3c632Sopenharmony_ci /** 373ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.FileOptions options = 8;</code> 374ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\FileOptions 375ffe3c632Sopenharmony_ci */ 376ffe3c632Sopenharmony_ci public function getOptions() 377ffe3c632Sopenharmony_ci { 378ffe3c632Sopenharmony_ci return isset($this->options) ? $this->options : null; 379ffe3c632Sopenharmony_ci } 380ffe3c632Sopenharmony_ci 381ffe3c632Sopenharmony_ci public function hasOptions() 382ffe3c632Sopenharmony_ci { 383ffe3c632Sopenharmony_ci return isset($this->options); 384ffe3c632Sopenharmony_ci } 385ffe3c632Sopenharmony_ci 386ffe3c632Sopenharmony_ci public function clearOptions() 387ffe3c632Sopenharmony_ci { 388ffe3c632Sopenharmony_ci unset($this->options); 389ffe3c632Sopenharmony_ci } 390ffe3c632Sopenharmony_ci 391ffe3c632Sopenharmony_ci /** 392ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.FileOptions options = 8;</code> 393ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Internal\FileOptions $var 394ffe3c632Sopenharmony_ci * @return $this 395ffe3c632Sopenharmony_ci */ 396ffe3c632Sopenharmony_ci public function setOptions($var) 397ffe3c632Sopenharmony_ci { 398ffe3c632Sopenharmony_ci GPBUtil::checkMessage($var, \Google\Protobuf\Internal\FileOptions::class); 399ffe3c632Sopenharmony_ci $this->options = $var; 400ffe3c632Sopenharmony_ci 401ffe3c632Sopenharmony_ci return $this; 402ffe3c632Sopenharmony_ci } 403ffe3c632Sopenharmony_ci 404ffe3c632Sopenharmony_ci /** 405ffe3c632Sopenharmony_ci * This field contains optional information about the original source code. 406ffe3c632Sopenharmony_ci * You may safely remove this entire field without harming runtime 407ffe3c632Sopenharmony_ci * functionality of the descriptors -- the information is needed only by 408ffe3c632Sopenharmony_ci * development tools. 409ffe3c632Sopenharmony_ci * 410ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 411ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\SourceCodeInfo 412ffe3c632Sopenharmony_ci */ 413ffe3c632Sopenharmony_ci public function getSourceCodeInfo() 414ffe3c632Sopenharmony_ci { 415ffe3c632Sopenharmony_ci return isset($this->source_code_info) ? $this->source_code_info : null; 416ffe3c632Sopenharmony_ci } 417ffe3c632Sopenharmony_ci 418ffe3c632Sopenharmony_ci public function hasSourceCodeInfo() 419ffe3c632Sopenharmony_ci { 420ffe3c632Sopenharmony_ci return isset($this->source_code_info); 421ffe3c632Sopenharmony_ci } 422ffe3c632Sopenharmony_ci 423ffe3c632Sopenharmony_ci public function clearSourceCodeInfo() 424ffe3c632Sopenharmony_ci { 425ffe3c632Sopenharmony_ci unset($this->source_code_info); 426ffe3c632Sopenharmony_ci } 427ffe3c632Sopenharmony_ci 428ffe3c632Sopenharmony_ci /** 429ffe3c632Sopenharmony_ci * This field contains optional information about the original source code. 430ffe3c632Sopenharmony_ci * You may safely remove this entire field without harming runtime 431ffe3c632Sopenharmony_ci * functionality of the descriptors -- the information is needed only by 432ffe3c632Sopenharmony_ci * development tools. 433ffe3c632Sopenharmony_ci * 434ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 435ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Internal\SourceCodeInfo $var 436ffe3c632Sopenharmony_ci * @return $this 437ffe3c632Sopenharmony_ci */ 438ffe3c632Sopenharmony_ci public function setSourceCodeInfo($var) 439ffe3c632Sopenharmony_ci { 440ffe3c632Sopenharmony_ci GPBUtil::checkMessage($var, \Google\Protobuf\Internal\SourceCodeInfo::class); 441ffe3c632Sopenharmony_ci $this->source_code_info = $var; 442ffe3c632Sopenharmony_ci 443ffe3c632Sopenharmony_ci return $this; 444ffe3c632Sopenharmony_ci } 445ffe3c632Sopenharmony_ci 446ffe3c632Sopenharmony_ci /** 447ffe3c632Sopenharmony_ci * The syntax of the proto file. 448ffe3c632Sopenharmony_ci * The supported values are "proto2" and "proto3". 449ffe3c632Sopenharmony_ci * 450ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string syntax = 12;</code> 451ffe3c632Sopenharmony_ci * @return string 452ffe3c632Sopenharmony_ci */ 453ffe3c632Sopenharmony_ci public function getSyntax() 454ffe3c632Sopenharmony_ci { 455ffe3c632Sopenharmony_ci return isset($this->syntax) ? $this->syntax : ''; 456ffe3c632Sopenharmony_ci } 457ffe3c632Sopenharmony_ci 458ffe3c632Sopenharmony_ci public function hasSyntax() 459ffe3c632Sopenharmony_ci { 460ffe3c632Sopenharmony_ci return isset($this->syntax); 461ffe3c632Sopenharmony_ci } 462ffe3c632Sopenharmony_ci 463ffe3c632Sopenharmony_ci public function clearSyntax() 464ffe3c632Sopenharmony_ci { 465ffe3c632Sopenharmony_ci unset($this->syntax); 466ffe3c632Sopenharmony_ci } 467ffe3c632Sopenharmony_ci 468ffe3c632Sopenharmony_ci /** 469ffe3c632Sopenharmony_ci * The syntax of the proto file. 470ffe3c632Sopenharmony_ci * The supported values are "proto2" and "proto3". 471ffe3c632Sopenharmony_ci * 472ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string syntax = 12;</code> 473ffe3c632Sopenharmony_ci * @param string $var 474ffe3c632Sopenharmony_ci * @return $this 475ffe3c632Sopenharmony_ci */ 476ffe3c632Sopenharmony_ci public function setSyntax($var) 477ffe3c632Sopenharmony_ci { 478ffe3c632Sopenharmony_ci GPBUtil::checkString($var, True); 479ffe3c632Sopenharmony_ci $this->syntax = $var; 480ffe3c632Sopenharmony_ci 481ffe3c632Sopenharmony_ci return $this; 482ffe3c632Sopenharmony_ci } 483ffe3c632Sopenharmony_ci 484ffe3c632Sopenharmony_ci} 485ffe3c632Sopenharmony_ci 486