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 * Enum type definition. 13ffe3c632Sopenharmony_ci * 14ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.Enum</code> 15ffe3c632Sopenharmony_ci */ 16ffe3c632Sopenharmony_ciclass Enum extends \Google\Protobuf\Internal\Message 17ffe3c632Sopenharmony_ci{ 18ffe3c632Sopenharmony_ci /** 19ffe3c632Sopenharmony_ci * Enum type name. 20ffe3c632Sopenharmony_ci * 21ffe3c632Sopenharmony_ci * Generated from protobuf field <code>string name = 1;</code> 22ffe3c632Sopenharmony_ci */ 23ffe3c632Sopenharmony_ci private $name = ''; 24ffe3c632Sopenharmony_ci /** 25ffe3c632Sopenharmony_ci * Enum value definitions. 26ffe3c632Sopenharmony_ci * 27ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> 28ffe3c632Sopenharmony_ci */ 29ffe3c632Sopenharmony_ci private $enumvalue; 30ffe3c632Sopenharmony_ci /** 31ffe3c632Sopenharmony_ci * Protocol buffer options. 32ffe3c632Sopenharmony_ci * 33ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code> 34ffe3c632Sopenharmony_ci */ 35ffe3c632Sopenharmony_ci private $options; 36ffe3c632Sopenharmony_ci /** 37ffe3c632Sopenharmony_ci * The source context. 38ffe3c632Sopenharmony_ci * 39ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 4;</code> 40ffe3c632Sopenharmony_ci */ 41ffe3c632Sopenharmony_ci private $source_context = null; 42ffe3c632Sopenharmony_ci /** 43ffe3c632Sopenharmony_ci * The source syntax. 44ffe3c632Sopenharmony_ci * 45ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 5;</code> 46ffe3c632Sopenharmony_ci */ 47ffe3c632Sopenharmony_ci private $syntax = 0; 48ffe3c632Sopenharmony_ci 49ffe3c632Sopenharmony_ci /** 50ffe3c632Sopenharmony_ci * Constructor. 51ffe3c632Sopenharmony_ci * 52ffe3c632Sopenharmony_ci * @param array $data { 53ffe3c632Sopenharmony_ci * Optional. Data for populating the Message object. 54ffe3c632Sopenharmony_ci * 55ffe3c632Sopenharmony_ci * @type string $name 56ffe3c632Sopenharmony_ci * Enum type name. 57ffe3c632Sopenharmony_ci * @type \Google\Protobuf\EnumValue[]|\Google\Protobuf\Internal\RepeatedField $enumvalue 58ffe3c632Sopenharmony_ci * Enum value definitions. 59ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Option[]|\Google\Protobuf\Internal\RepeatedField $options 60ffe3c632Sopenharmony_ci * Protocol buffer options. 61ffe3c632Sopenharmony_ci * @type \Google\Protobuf\SourceContext $source_context 62ffe3c632Sopenharmony_ci * The source context. 63ffe3c632Sopenharmony_ci * @type int $syntax 64ffe3c632Sopenharmony_ci * The source syntax. 65ffe3c632Sopenharmony_ci * } 66ffe3c632Sopenharmony_ci */ 67ffe3c632Sopenharmony_ci public function __construct($data = NULL) { 68ffe3c632Sopenharmony_ci \GPBMetadata\Google\Protobuf\Type::initOnce(); 69ffe3c632Sopenharmony_ci parent::__construct($data); 70ffe3c632Sopenharmony_ci } 71ffe3c632Sopenharmony_ci 72ffe3c632Sopenharmony_ci /** 73ffe3c632Sopenharmony_ci * Enum type name. 74ffe3c632Sopenharmony_ci * 75ffe3c632Sopenharmony_ci * Generated from protobuf field <code>string name = 1;</code> 76ffe3c632Sopenharmony_ci * @return string 77ffe3c632Sopenharmony_ci */ 78ffe3c632Sopenharmony_ci public function getName() 79ffe3c632Sopenharmony_ci { 80ffe3c632Sopenharmony_ci return $this->name; 81ffe3c632Sopenharmony_ci } 82ffe3c632Sopenharmony_ci 83ffe3c632Sopenharmony_ci /** 84ffe3c632Sopenharmony_ci * Enum type name. 85ffe3c632Sopenharmony_ci * 86ffe3c632Sopenharmony_ci * Generated from protobuf field <code>string name = 1;</code> 87ffe3c632Sopenharmony_ci * @param string $var 88ffe3c632Sopenharmony_ci * @return $this 89ffe3c632Sopenharmony_ci */ 90ffe3c632Sopenharmony_ci public function setName($var) 91ffe3c632Sopenharmony_ci { 92ffe3c632Sopenharmony_ci GPBUtil::checkString($var, True); 93ffe3c632Sopenharmony_ci $this->name = $var; 94ffe3c632Sopenharmony_ci 95ffe3c632Sopenharmony_ci return $this; 96ffe3c632Sopenharmony_ci } 97ffe3c632Sopenharmony_ci 98ffe3c632Sopenharmony_ci /** 99ffe3c632Sopenharmony_ci * Enum value definitions. 100ffe3c632Sopenharmony_ci * 101ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> 102ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 103ffe3c632Sopenharmony_ci */ 104ffe3c632Sopenharmony_ci public function getEnumvalue() 105ffe3c632Sopenharmony_ci { 106ffe3c632Sopenharmony_ci return $this->enumvalue; 107ffe3c632Sopenharmony_ci } 108ffe3c632Sopenharmony_ci 109ffe3c632Sopenharmony_ci /** 110ffe3c632Sopenharmony_ci * Enum value definitions. 111ffe3c632Sopenharmony_ci * 112ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> 113ffe3c632Sopenharmony_ci * @param \Google\Protobuf\EnumValue[]|\Google\Protobuf\Internal\RepeatedField $var 114ffe3c632Sopenharmony_ci * @return $this 115ffe3c632Sopenharmony_ci */ 116ffe3c632Sopenharmony_ci public function setEnumvalue($var) 117ffe3c632Sopenharmony_ci { 118ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\EnumValue::class); 119ffe3c632Sopenharmony_ci $this->enumvalue = $arr; 120ffe3c632Sopenharmony_ci 121ffe3c632Sopenharmony_ci return $this; 122ffe3c632Sopenharmony_ci } 123ffe3c632Sopenharmony_ci 124ffe3c632Sopenharmony_ci /** 125ffe3c632Sopenharmony_ci * Protocol buffer options. 126ffe3c632Sopenharmony_ci * 127ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code> 128ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 129ffe3c632Sopenharmony_ci */ 130ffe3c632Sopenharmony_ci public function getOptions() 131ffe3c632Sopenharmony_ci { 132ffe3c632Sopenharmony_ci return $this->options; 133ffe3c632Sopenharmony_ci } 134ffe3c632Sopenharmony_ci 135ffe3c632Sopenharmony_ci /** 136ffe3c632Sopenharmony_ci * Protocol buffer options. 137ffe3c632Sopenharmony_ci * 138ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code> 139ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Option[]|\Google\Protobuf\Internal\RepeatedField $var 140ffe3c632Sopenharmony_ci * @return $this 141ffe3c632Sopenharmony_ci */ 142ffe3c632Sopenharmony_ci public function setOptions($var) 143ffe3c632Sopenharmony_ci { 144ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Option::class); 145ffe3c632Sopenharmony_ci $this->options = $arr; 146ffe3c632Sopenharmony_ci 147ffe3c632Sopenharmony_ci return $this; 148ffe3c632Sopenharmony_ci } 149ffe3c632Sopenharmony_ci 150ffe3c632Sopenharmony_ci /** 151ffe3c632Sopenharmony_ci * The source context. 152ffe3c632Sopenharmony_ci * 153ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 4;</code> 154ffe3c632Sopenharmony_ci * @return \Google\Protobuf\SourceContext 155ffe3c632Sopenharmony_ci */ 156ffe3c632Sopenharmony_ci public function getSourceContext() 157ffe3c632Sopenharmony_ci { 158ffe3c632Sopenharmony_ci return $this->source_context; 159ffe3c632Sopenharmony_ci } 160ffe3c632Sopenharmony_ci 161ffe3c632Sopenharmony_ci /** 162ffe3c632Sopenharmony_ci * The source context. 163ffe3c632Sopenharmony_ci * 164ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 4;</code> 165ffe3c632Sopenharmony_ci * @param \Google\Protobuf\SourceContext $var 166ffe3c632Sopenharmony_ci * @return $this 167ffe3c632Sopenharmony_ci */ 168ffe3c632Sopenharmony_ci public function setSourceContext($var) 169ffe3c632Sopenharmony_ci { 170ffe3c632Sopenharmony_ci GPBUtil::checkMessage($var, \Google\Protobuf\SourceContext::class); 171ffe3c632Sopenharmony_ci $this->source_context = $var; 172ffe3c632Sopenharmony_ci 173ffe3c632Sopenharmony_ci return $this; 174ffe3c632Sopenharmony_ci } 175ffe3c632Sopenharmony_ci 176ffe3c632Sopenharmony_ci /** 177ffe3c632Sopenharmony_ci * The source syntax. 178ffe3c632Sopenharmony_ci * 179ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 5;</code> 180ffe3c632Sopenharmony_ci * @return int 181ffe3c632Sopenharmony_ci */ 182ffe3c632Sopenharmony_ci public function getSyntax() 183ffe3c632Sopenharmony_ci { 184ffe3c632Sopenharmony_ci return $this->syntax; 185ffe3c632Sopenharmony_ci } 186ffe3c632Sopenharmony_ci 187ffe3c632Sopenharmony_ci /** 188ffe3c632Sopenharmony_ci * The source syntax. 189ffe3c632Sopenharmony_ci * 190ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 5;</code> 191ffe3c632Sopenharmony_ci * @param int $var 192ffe3c632Sopenharmony_ci * @return $this 193ffe3c632Sopenharmony_ci */ 194ffe3c632Sopenharmony_ci public function setSyntax($var) 195ffe3c632Sopenharmony_ci { 196ffe3c632Sopenharmony_ci GPBUtil::checkEnum($var, \Google\Protobuf\Syntax::class); 197ffe3c632Sopenharmony_ci $this->syntax = $var; 198ffe3c632Sopenharmony_ci 199ffe3c632Sopenharmony_ci return $this; 200ffe3c632Sopenharmony_ci } 201ffe3c632Sopenharmony_ci 202ffe3c632Sopenharmony_ci} 203ffe3c632Sopenharmony_ci 204