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.MethodOptions</code> 15ffe3c632Sopenharmony_ci */ 16ffe3c632Sopenharmony_ciclass MethodOptions extends \Google\Protobuf\Internal\Message 17ffe3c632Sopenharmony_ci{ 18ffe3c632Sopenharmony_ci /** 19ffe3c632Sopenharmony_ci * Is this method deprecated? 20ffe3c632Sopenharmony_ci * Depending on the target platform, this can emit Deprecated annotations 21ffe3c632Sopenharmony_ci * for the method, or it will be completely ignored; in the very least, 22ffe3c632Sopenharmony_ci * this is a formalization for deprecating methods. 23ffe3c632Sopenharmony_ci * 24ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code> 25ffe3c632Sopenharmony_ci */ 26ffe3c632Sopenharmony_ci protected $deprecated = null; 27ffe3c632Sopenharmony_ci /** 28ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 29ffe3c632Sopenharmony_ci */ 30ffe3c632Sopenharmony_ci protected $idempotency_level = null; 31ffe3c632Sopenharmony_ci /** 32ffe3c632Sopenharmony_ci * The parser stores options it doesn't recognize here. See above. 33ffe3c632Sopenharmony_ci * 34ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 35ffe3c632Sopenharmony_ci */ 36ffe3c632Sopenharmony_ci private $uninterpreted_option; 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 bool $deprecated 45ffe3c632Sopenharmony_ci * Is this method deprecated? 46ffe3c632Sopenharmony_ci * Depending on the target platform, this can emit Deprecated annotations 47ffe3c632Sopenharmony_ci * for the method, or it will be completely ignored; in the very least, 48ffe3c632Sopenharmony_ci * this is a formalization for deprecating methods. 49ffe3c632Sopenharmony_ci * @type int $idempotency_level 50ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option 51ffe3c632Sopenharmony_ci * The parser stores options it doesn't recognize here. See above. 52ffe3c632Sopenharmony_ci * } 53ffe3c632Sopenharmony_ci */ 54ffe3c632Sopenharmony_ci public function __construct($data = NULL) { 55ffe3c632Sopenharmony_ci \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); 56ffe3c632Sopenharmony_ci parent::__construct($data); 57ffe3c632Sopenharmony_ci } 58ffe3c632Sopenharmony_ci 59ffe3c632Sopenharmony_ci /** 60ffe3c632Sopenharmony_ci * Is this method deprecated? 61ffe3c632Sopenharmony_ci * Depending on the target platform, this can emit Deprecated annotations 62ffe3c632Sopenharmony_ci * for the method, or it will be completely ignored; in the very least, 63ffe3c632Sopenharmony_ci * this is a formalization for deprecating methods. 64ffe3c632Sopenharmony_ci * 65ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code> 66ffe3c632Sopenharmony_ci * @return bool 67ffe3c632Sopenharmony_ci */ 68ffe3c632Sopenharmony_ci public function getDeprecated() 69ffe3c632Sopenharmony_ci { 70ffe3c632Sopenharmony_ci return isset($this->deprecated) ? $this->deprecated : false; 71ffe3c632Sopenharmony_ci } 72ffe3c632Sopenharmony_ci 73ffe3c632Sopenharmony_ci public function hasDeprecated() 74ffe3c632Sopenharmony_ci { 75ffe3c632Sopenharmony_ci return isset($this->deprecated); 76ffe3c632Sopenharmony_ci } 77ffe3c632Sopenharmony_ci 78ffe3c632Sopenharmony_ci public function clearDeprecated() 79ffe3c632Sopenharmony_ci { 80ffe3c632Sopenharmony_ci unset($this->deprecated); 81ffe3c632Sopenharmony_ci } 82ffe3c632Sopenharmony_ci 83ffe3c632Sopenharmony_ci /** 84ffe3c632Sopenharmony_ci * Is this method deprecated? 85ffe3c632Sopenharmony_ci * Depending on the target platform, this can emit Deprecated annotations 86ffe3c632Sopenharmony_ci * for the method, or it will be completely ignored; in the very least, 87ffe3c632Sopenharmony_ci * this is a formalization for deprecating methods. 88ffe3c632Sopenharmony_ci * 89ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code> 90ffe3c632Sopenharmony_ci * @param bool $var 91ffe3c632Sopenharmony_ci * @return $this 92ffe3c632Sopenharmony_ci */ 93ffe3c632Sopenharmony_ci public function setDeprecated($var) 94ffe3c632Sopenharmony_ci { 95ffe3c632Sopenharmony_ci GPBUtil::checkBool($var); 96ffe3c632Sopenharmony_ci $this->deprecated = $var; 97ffe3c632Sopenharmony_ci 98ffe3c632Sopenharmony_ci return $this; 99ffe3c632Sopenharmony_ci } 100ffe3c632Sopenharmony_ci 101ffe3c632Sopenharmony_ci /** 102ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 103ffe3c632Sopenharmony_ci * @return int 104ffe3c632Sopenharmony_ci */ 105ffe3c632Sopenharmony_ci public function getIdempotencyLevel() 106ffe3c632Sopenharmony_ci { 107ffe3c632Sopenharmony_ci return isset($this->idempotency_level) ? $this->idempotency_level : 0; 108ffe3c632Sopenharmony_ci } 109ffe3c632Sopenharmony_ci 110ffe3c632Sopenharmony_ci public function hasIdempotencyLevel() 111ffe3c632Sopenharmony_ci { 112ffe3c632Sopenharmony_ci return isset($this->idempotency_level); 113ffe3c632Sopenharmony_ci } 114ffe3c632Sopenharmony_ci 115ffe3c632Sopenharmony_ci public function clearIdempotencyLevel() 116ffe3c632Sopenharmony_ci { 117ffe3c632Sopenharmony_ci unset($this->idempotency_level); 118ffe3c632Sopenharmony_ci } 119ffe3c632Sopenharmony_ci 120ffe3c632Sopenharmony_ci /** 121ffe3c632Sopenharmony_ci * Generated from protobuf field <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 122ffe3c632Sopenharmony_ci * @param int $var 123ffe3c632Sopenharmony_ci * @return $this 124ffe3c632Sopenharmony_ci */ 125ffe3c632Sopenharmony_ci public function setIdempotencyLevel($var) 126ffe3c632Sopenharmony_ci { 127ffe3c632Sopenharmony_ci GPBUtil::checkEnum($var, \Google\Protobuf\Internal\MethodOptions\IdempotencyLevel::class); 128ffe3c632Sopenharmony_ci $this->idempotency_level = $var; 129ffe3c632Sopenharmony_ci 130ffe3c632Sopenharmony_ci return $this; 131ffe3c632Sopenharmony_ci } 132ffe3c632Sopenharmony_ci 133ffe3c632Sopenharmony_ci /** 134ffe3c632Sopenharmony_ci * The parser stores options it doesn't recognize here. See above. 135ffe3c632Sopenharmony_ci * 136ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 137ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Internal\RepeatedField 138ffe3c632Sopenharmony_ci */ 139ffe3c632Sopenharmony_ci public function getUninterpretedOption() 140ffe3c632Sopenharmony_ci { 141ffe3c632Sopenharmony_ci return $this->uninterpreted_option; 142ffe3c632Sopenharmony_ci } 143ffe3c632Sopenharmony_ci 144ffe3c632Sopenharmony_ci /** 145ffe3c632Sopenharmony_ci * The parser stores options it doesn't recognize here. See above. 146ffe3c632Sopenharmony_ci * 147ffe3c632Sopenharmony_ci * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 148ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var 149ffe3c632Sopenharmony_ci * @return $this 150ffe3c632Sopenharmony_ci */ 151ffe3c632Sopenharmony_ci public function setUninterpretedOption($var) 152ffe3c632Sopenharmony_ci { 153ffe3c632Sopenharmony_ci $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class); 154ffe3c632Sopenharmony_ci $this->uninterpreted_option = $arr; 155ffe3c632Sopenharmony_ci 156ffe3c632Sopenharmony_ci return $this; 157ffe3c632Sopenharmony_ci } 158ffe3c632Sopenharmony_ci 159ffe3c632Sopenharmony_ci} 160ffe3c632Sopenharmony_ci 161