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 value within an enum. 15ffe3c632Sopenharmony_ci * 16ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.EnumValueDescriptorProto</code> 17ffe3c632Sopenharmony_ci */ 18ffe3c632Sopenharmony_ciclass EnumValueDescriptorProto extends \Google\Protobuf\Internal\Message 19ffe3c632Sopenharmony_ci{ 20ffe3c632Sopenharmony_ci /** 21ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string name = 1;</code> 22ffe3c632Sopenharmony_ci */ 23ffe3c632Sopenharmony_ci protected $name = null; 24ffe3c632Sopenharmony_ci /** 25ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional int32 number = 2;</code> 26ffe3c632Sopenharmony_ci */ 27ffe3c632Sopenharmony_ci protected $number = null; 28ffe3c632Sopenharmony_ci /** 29ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 30ffe3c632Sopenharmony_ci */ 31ffe3c632Sopenharmony_ci protected $options = null; 32ffe3c632Sopenharmony_ci 33ffe3c632Sopenharmony_ci /** 34ffe3c632Sopenharmony_ci * Constructor. 35ffe3c632Sopenharmony_ci * 36ffe3c632Sopenharmony_ci * @param array $data { 37ffe3c632Sopenharmony_ci * Optional. Data for populating the Message object. 38ffe3c632Sopenharmony_ci * 39ffe3c632Sopenharmony_ci * @type string $name 40ffe3c632Sopenharmony_ci * @type int $number 41ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Internal\EnumValueOptions $options 42ffe3c632Sopenharmony_ci * } 43ffe3c632Sopenharmony_ci */ 44ffe3c632Sopenharmony_ci public function __construct($data = NULL) { 45ffe3c632Sopenharmony_ci \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); 46ffe3c632Sopenharmony_ci parent::__construct($data); 47ffe3c632Sopenharmony_ci } 48ffe3c632Sopenharmony_ci 49ffe3c632Sopenharmony_ci /** 50ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string name = 1;</code> 51ffe3c632Sopenharmony_ci * @return string 52ffe3c632Sopenharmony_ci */ 53ffe3c632Sopenharmony_ci public function getName() 54ffe3c632Sopenharmony_ci { 55ffe3c632Sopenharmony_ci return isset($this->name) ? $this->name : ''; 56ffe3c632Sopenharmony_ci } 57ffe3c632Sopenharmony_ci 58ffe3c632Sopenharmony_ci public function hasName() 59ffe3c632Sopenharmony_ci { 60ffe3c632Sopenharmony_ci return isset($this->name); 61ffe3c632Sopenharmony_ci } 62ffe3c632Sopenharmony_ci 63ffe3c632Sopenharmony_ci public function clearName() 64ffe3c632Sopenharmony_ci { 65ffe3c632Sopenharmony_ci unset($this->name); 66ffe3c632Sopenharmony_ci } 67ffe3c632Sopenharmony_ci 68ffe3c632Sopenharmony_ci /** 69ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional string name = 1;</code> 70ffe3c632Sopenharmony_ci * @param string $var 71ffe3c632Sopenharmony_ci * @return $this 72ffe3c632Sopenharmony_ci */ 73ffe3c632Sopenharmony_ci public function setName($var) 74ffe3c632Sopenharmony_ci { 75ffe3c632Sopenharmony_ci GPBUtil::checkString($var, True); 76ffe3c632Sopenharmony_ci $this->name = $var; 77ffe3c632Sopenharmony_ci 78ffe3c632Sopenharmony_ci return $this; 79ffe3c632Sopenharmony_ci } 80ffe3c632Sopenharmony_ci 81ffe3c632Sopenharmony_ci /** 82ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional int32 number = 2;</code> 83ffe3c632Sopenharmony_ci * @return int 84ffe3c632Sopenharmony_ci */ 85ffe3c632Sopenharmony_ci public function getNumber() 86ffe3c632Sopenharmony_ci { 87ffe3c632Sopenharmony_ci return isset($this->number) ? $this->number : 0; 88ffe3c632Sopenharmony_ci } 89ffe3c632Sopenharmony_ci 90ffe3c632Sopenharmony_ci public function hasNumber() 91ffe3c632Sopenharmony_ci { 92ffe3c632Sopenharmony_ci return isset($this->number); 93ffe3c632Sopenharmony_ci } 94ffe3c632Sopenharmony_ci 95ffe3c632Sopenharmony_ci public function clearNumber() 96ffe3c632Sopenharmony_ci { 97ffe3c632Sopenharmony_ci unset($this->number); 98ffe3c632Sopenharmony_ci } 99ffe3c632Sopenharmony_ci 100ffe3c632Sopenharmony_ci /** 101ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional int32 number = 2;</code> 102ffe3c632Sopenharmony_ci * @param int $var 103ffe3c632Sopenharmony_ci * @return $this 104ffe3c632Sopenharmony_ci */ 105ffe3c632Sopenharmony_ci public function setNumber($var) 106ffe3c632Sopenharmony_ci { 107ffe3c632Sopenharmony_ci GPBUtil::checkInt32($var); 108ffe3c632Sopenharmony_ci $this->number = $var; 109ffe3c632Sopenharmony_ci 110ffe3c632Sopenharmony_ci return $this; 111ffe3c632Sopenharmony_ci } 112ffe3c632Sopenharmony_ci 113ffe3c632Sopenharmony_ci /** 114ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 115ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\EnumValueOptions 116ffe3c632Sopenharmony_ci */ 117ffe3c632Sopenharmony_ci public function getOptions() 118ffe3c632Sopenharmony_ci { 119ffe3c632Sopenharmony_ci return isset($this->options) ? $this->options : null; 120ffe3c632Sopenharmony_ci } 121ffe3c632Sopenharmony_ci 122ffe3c632Sopenharmony_ci public function hasOptions() 123ffe3c632Sopenharmony_ci { 124ffe3c632Sopenharmony_ci return isset($this->options); 125ffe3c632Sopenharmony_ci } 126ffe3c632Sopenharmony_ci 127ffe3c632Sopenharmony_ci public function clearOptions() 128ffe3c632Sopenharmony_ci { 129ffe3c632Sopenharmony_ci unset($this->options); 130ffe3c632Sopenharmony_ci } 131ffe3c632Sopenharmony_ci 132ffe3c632Sopenharmony_ci /** 133ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 134ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Internal\EnumValueOptions $var 135ffe3c632Sopenharmony_ci * @return $this 136ffe3c632Sopenharmony_ci */ 137ffe3c632Sopenharmony_ci public function setOptions($var) 138ffe3c632Sopenharmony_ci { 139ffe3c632Sopenharmony_ci GPBUtil::checkMessage($var, \Google\Protobuf\Internal\EnumValueOptions::class); 140ffe3c632Sopenharmony_ci $this->options = $var; 141ffe3c632Sopenharmony_ci 142ffe3c632Sopenharmony_ci return $this; 143ffe3c632Sopenharmony_ci } 144ffe3c632Sopenharmony_ci 145ffe3c632Sopenharmony_ci} 146ffe3c632Sopenharmony_ci 147