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\UninterpretedOption; 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 * The name of the uninterpreted option. Each string represents a segment in 15ffe3c632Sopenharmony_ci * a dot-separated name. is_extension is true iff a segment represents an 16ffe3c632Sopenharmony_ci * extension (denoted with parentheses in options specs in .proto files). 17ffe3c632Sopenharmony_ci * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents 18ffe3c632Sopenharmony_ci * "foo.(bar.baz).qux". 19ffe3c632Sopenharmony_ci * 20ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.UninterpretedOption.NamePart</code> 21ffe3c632Sopenharmony_ci */ 22ffe3c632Sopenharmony_ciclass NamePart extends \Google\Protobuf\Internal\Message 23ffe3c632Sopenharmony_ci{ 24ffe3c632Sopenharmony_ci /** 25ffe3c632Sopenharmony_ci * Generated from protobuf field <code>required string name_part = 1;</code> 26ffe3c632Sopenharmony_ci */ 27ffe3c632Sopenharmony_ci protected $name_part = null; 28ffe3c632Sopenharmony_ci /** 29ffe3c632Sopenharmony_ci * Generated from protobuf field <code>required bool is_extension = 2;</code> 30ffe3c632Sopenharmony_ci */ 31ffe3c632Sopenharmony_ci protected $is_extension = 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_part 40ffe3c632Sopenharmony_ci * @type bool $is_extension 41ffe3c632Sopenharmony_ci * } 42ffe3c632Sopenharmony_ci */ 43ffe3c632Sopenharmony_ci public function __construct($data = NULL) { 44ffe3c632Sopenharmony_ci \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); 45ffe3c632Sopenharmony_ci parent::__construct($data); 46ffe3c632Sopenharmony_ci } 47ffe3c632Sopenharmony_ci 48ffe3c632Sopenharmony_ci /** 49ffe3c632Sopenharmony_ci * Generated from protobuf field <code>required string name_part = 1;</code> 50ffe3c632Sopenharmony_ci * @return string 51ffe3c632Sopenharmony_ci */ 52ffe3c632Sopenharmony_ci public function getNamePart() 53ffe3c632Sopenharmony_ci { 54ffe3c632Sopenharmony_ci return isset($this->name_part) ? $this->name_part : ''; 55ffe3c632Sopenharmony_ci } 56ffe3c632Sopenharmony_ci 57ffe3c632Sopenharmony_ci public function hasNamePart() 58ffe3c632Sopenharmony_ci { 59ffe3c632Sopenharmony_ci return isset($this->name_part); 60ffe3c632Sopenharmony_ci } 61ffe3c632Sopenharmony_ci 62ffe3c632Sopenharmony_ci public function clearNamePart() 63ffe3c632Sopenharmony_ci { 64ffe3c632Sopenharmony_ci unset($this->name_part); 65ffe3c632Sopenharmony_ci } 66ffe3c632Sopenharmony_ci 67ffe3c632Sopenharmony_ci /** 68ffe3c632Sopenharmony_ci * Generated from protobuf field <code>required string name_part = 1;</code> 69ffe3c632Sopenharmony_ci * @param string $var 70ffe3c632Sopenharmony_ci * @return $this 71ffe3c632Sopenharmony_ci */ 72ffe3c632Sopenharmony_ci public function setNamePart($var) 73ffe3c632Sopenharmony_ci { 74ffe3c632Sopenharmony_ci GPBUtil::checkString($var, True); 75ffe3c632Sopenharmony_ci $this->name_part = $var; 76ffe3c632Sopenharmony_ci 77ffe3c632Sopenharmony_ci return $this; 78ffe3c632Sopenharmony_ci } 79ffe3c632Sopenharmony_ci 80ffe3c632Sopenharmony_ci /** 81ffe3c632Sopenharmony_ci * Generated from protobuf field <code>required bool is_extension = 2;</code> 82ffe3c632Sopenharmony_ci * @return bool 83ffe3c632Sopenharmony_ci */ 84ffe3c632Sopenharmony_ci public function getIsExtension() 85ffe3c632Sopenharmony_ci { 86ffe3c632Sopenharmony_ci return isset($this->is_extension) ? $this->is_extension : false; 87ffe3c632Sopenharmony_ci } 88ffe3c632Sopenharmony_ci 89ffe3c632Sopenharmony_ci public function hasIsExtension() 90ffe3c632Sopenharmony_ci { 91ffe3c632Sopenharmony_ci return isset($this->is_extension); 92ffe3c632Sopenharmony_ci } 93ffe3c632Sopenharmony_ci 94ffe3c632Sopenharmony_ci public function clearIsExtension() 95ffe3c632Sopenharmony_ci { 96ffe3c632Sopenharmony_ci unset($this->is_extension); 97ffe3c632Sopenharmony_ci } 98ffe3c632Sopenharmony_ci 99ffe3c632Sopenharmony_ci /** 100ffe3c632Sopenharmony_ci * Generated from protobuf field <code>required bool is_extension = 2;</code> 101ffe3c632Sopenharmony_ci * @param bool $var 102ffe3c632Sopenharmony_ci * @return $this 103ffe3c632Sopenharmony_ci */ 104ffe3c632Sopenharmony_ci public function setIsExtension($var) 105ffe3c632Sopenharmony_ci { 106ffe3c632Sopenharmony_ci GPBUtil::checkBool($var); 107ffe3c632Sopenharmony_ci $this->is_extension = $var; 108ffe3c632Sopenharmony_ci 109ffe3c632Sopenharmony_ci return $this; 110ffe3c632Sopenharmony_ci } 111ffe3c632Sopenharmony_ci 112ffe3c632Sopenharmony_ci} 113ffe3c632Sopenharmony_ci 114ffe3c632Sopenharmony_ci// Adding a class alias for backwards compatibility with the previous class name. 115ffe3c632Sopenharmony_ciclass_alias(NamePart::class, \Google\Protobuf\Internal\UninterpretedOption_NamePart::class); 116ffe3c632Sopenharmony_ci 117