1ffe3c632Sopenharmony_ci<?php 2ffe3c632Sopenharmony_ci# Generated by the protocol buffer compiler. DO NOT EDIT! 3ffe3c632Sopenharmony_ci# source: google/protobuf/struct.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 * `Value` represents a dynamically typed value which can be either 13ffe3c632Sopenharmony_ci * null, a number, a string, a boolean, a recursive struct value, or a 14ffe3c632Sopenharmony_ci * list of values. A producer of value is expected to set one of that 15ffe3c632Sopenharmony_ci * variants, absence of any variant indicates an error. 16ffe3c632Sopenharmony_ci * The JSON representation for `Value` is JSON value. 17ffe3c632Sopenharmony_ci * 18ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.Value</code> 19ffe3c632Sopenharmony_ci */ 20ffe3c632Sopenharmony_ciclass Value extends \Google\Protobuf\Internal\Message 21ffe3c632Sopenharmony_ci{ 22ffe3c632Sopenharmony_ci protected $kind; 23ffe3c632Sopenharmony_ci 24ffe3c632Sopenharmony_ci /** 25ffe3c632Sopenharmony_ci * Constructor. 26ffe3c632Sopenharmony_ci * 27ffe3c632Sopenharmony_ci * @param array $data { 28ffe3c632Sopenharmony_ci * Optional. Data for populating the Message object. 29ffe3c632Sopenharmony_ci * 30ffe3c632Sopenharmony_ci * @type int $null_value 31ffe3c632Sopenharmony_ci * Represents a null value. 32ffe3c632Sopenharmony_ci * @type float $number_value 33ffe3c632Sopenharmony_ci * Represents a double value. 34ffe3c632Sopenharmony_ci * @type string $string_value 35ffe3c632Sopenharmony_ci * Represents a string value. 36ffe3c632Sopenharmony_ci * @type bool $bool_value 37ffe3c632Sopenharmony_ci * Represents a boolean value. 38ffe3c632Sopenharmony_ci * @type \Google\Protobuf\Struct $struct_value 39ffe3c632Sopenharmony_ci * Represents a structured value. 40ffe3c632Sopenharmony_ci * @type \Google\Protobuf\ListValue $list_value 41ffe3c632Sopenharmony_ci * Represents a repeated `Value`. 42ffe3c632Sopenharmony_ci * } 43ffe3c632Sopenharmony_ci */ 44ffe3c632Sopenharmony_ci public function __construct($data = NULL) { 45ffe3c632Sopenharmony_ci \GPBMetadata\Google\Protobuf\Struct::initOnce(); 46ffe3c632Sopenharmony_ci parent::__construct($data); 47ffe3c632Sopenharmony_ci } 48ffe3c632Sopenharmony_ci 49ffe3c632Sopenharmony_ci /** 50ffe3c632Sopenharmony_ci * Represents a null value. 51ffe3c632Sopenharmony_ci * 52ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.NullValue null_value = 1;</code> 53ffe3c632Sopenharmony_ci * @return int 54ffe3c632Sopenharmony_ci */ 55ffe3c632Sopenharmony_ci public function getNullValue() 56ffe3c632Sopenharmony_ci { 57ffe3c632Sopenharmony_ci return $this->readOneof(1); 58ffe3c632Sopenharmony_ci } 59ffe3c632Sopenharmony_ci 60ffe3c632Sopenharmony_ci public function hasNullValue() 61ffe3c632Sopenharmony_ci { 62ffe3c632Sopenharmony_ci return $this->hasOneof(1); 63ffe3c632Sopenharmony_ci } 64ffe3c632Sopenharmony_ci 65ffe3c632Sopenharmony_ci /** 66ffe3c632Sopenharmony_ci * Represents a null value. 67ffe3c632Sopenharmony_ci * 68ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.NullValue null_value = 1;</code> 69ffe3c632Sopenharmony_ci * @param int $var 70ffe3c632Sopenharmony_ci * @return $this 71ffe3c632Sopenharmony_ci */ 72ffe3c632Sopenharmony_ci public function setNullValue($var) 73ffe3c632Sopenharmony_ci { 74ffe3c632Sopenharmony_ci GPBUtil::checkEnum($var, \Google\Protobuf\NullValue::class); 75ffe3c632Sopenharmony_ci $this->writeOneof(1, $var); 76ffe3c632Sopenharmony_ci 77ffe3c632Sopenharmony_ci return $this; 78ffe3c632Sopenharmony_ci } 79ffe3c632Sopenharmony_ci 80ffe3c632Sopenharmony_ci /** 81ffe3c632Sopenharmony_ci * Represents a double value. 82ffe3c632Sopenharmony_ci * 83ffe3c632Sopenharmony_ci * Generated from protobuf field <code>double number_value = 2;</code> 84ffe3c632Sopenharmony_ci * @return float 85ffe3c632Sopenharmony_ci */ 86ffe3c632Sopenharmony_ci public function getNumberValue() 87ffe3c632Sopenharmony_ci { 88ffe3c632Sopenharmony_ci return $this->readOneof(2); 89ffe3c632Sopenharmony_ci } 90ffe3c632Sopenharmony_ci 91ffe3c632Sopenharmony_ci public function hasNumberValue() 92ffe3c632Sopenharmony_ci { 93ffe3c632Sopenharmony_ci return $this->hasOneof(2); 94ffe3c632Sopenharmony_ci } 95ffe3c632Sopenharmony_ci 96ffe3c632Sopenharmony_ci /** 97ffe3c632Sopenharmony_ci * Represents a double value. 98ffe3c632Sopenharmony_ci * 99ffe3c632Sopenharmony_ci * Generated from protobuf field <code>double number_value = 2;</code> 100ffe3c632Sopenharmony_ci * @param float $var 101ffe3c632Sopenharmony_ci * @return $this 102ffe3c632Sopenharmony_ci */ 103ffe3c632Sopenharmony_ci public function setNumberValue($var) 104ffe3c632Sopenharmony_ci { 105ffe3c632Sopenharmony_ci GPBUtil::checkDouble($var); 106ffe3c632Sopenharmony_ci $this->writeOneof(2, $var); 107ffe3c632Sopenharmony_ci 108ffe3c632Sopenharmony_ci return $this; 109ffe3c632Sopenharmony_ci } 110ffe3c632Sopenharmony_ci 111ffe3c632Sopenharmony_ci /** 112ffe3c632Sopenharmony_ci * Represents a string value. 113ffe3c632Sopenharmony_ci * 114ffe3c632Sopenharmony_ci * Generated from protobuf field <code>string string_value = 3;</code> 115ffe3c632Sopenharmony_ci * @return string 116ffe3c632Sopenharmony_ci */ 117ffe3c632Sopenharmony_ci public function getStringValue() 118ffe3c632Sopenharmony_ci { 119ffe3c632Sopenharmony_ci return $this->readOneof(3); 120ffe3c632Sopenharmony_ci } 121ffe3c632Sopenharmony_ci 122ffe3c632Sopenharmony_ci public function hasStringValue() 123ffe3c632Sopenharmony_ci { 124ffe3c632Sopenharmony_ci return $this->hasOneof(3); 125ffe3c632Sopenharmony_ci } 126ffe3c632Sopenharmony_ci 127ffe3c632Sopenharmony_ci /** 128ffe3c632Sopenharmony_ci * Represents a string value. 129ffe3c632Sopenharmony_ci * 130ffe3c632Sopenharmony_ci * Generated from protobuf field <code>string string_value = 3;</code> 131ffe3c632Sopenharmony_ci * @param string $var 132ffe3c632Sopenharmony_ci * @return $this 133ffe3c632Sopenharmony_ci */ 134ffe3c632Sopenharmony_ci public function setStringValue($var) 135ffe3c632Sopenharmony_ci { 136ffe3c632Sopenharmony_ci GPBUtil::checkString($var, True); 137ffe3c632Sopenharmony_ci $this->writeOneof(3, $var); 138ffe3c632Sopenharmony_ci 139ffe3c632Sopenharmony_ci return $this; 140ffe3c632Sopenharmony_ci } 141ffe3c632Sopenharmony_ci 142ffe3c632Sopenharmony_ci /** 143ffe3c632Sopenharmony_ci * Represents a boolean value. 144ffe3c632Sopenharmony_ci * 145ffe3c632Sopenharmony_ci * Generated from protobuf field <code>bool bool_value = 4;</code> 146ffe3c632Sopenharmony_ci * @return bool 147ffe3c632Sopenharmony_ci */ 148ffe3c632Sopenharmony_ci public function getBoolValue() 149ffe3c632Sopenharmony_ci { 150ffe3c632Sopenharmony_ci return $this->readOneof(4); 151ffe3c632Sopenharmony_ci } 152ffe3c632Sopenharmony_ci 153ffe3c632Sopenharmony_ci public function hasBoolValue() 154ffe3c632Sopenharmony_ci { 155ffe3c632Sopenharmony_ci return $this->hasOneof(4); 156ffe3c632Sopenharmony_ci } 157ffe3c632Sopenharmony_ci 158ffe3c632Sopenharmony_ci /** 159ffe3c632Sopenharmony_ci * Represents a boolean value. 160ffe3c632Sopenharmony_ci * 161ffe3c632Sopenharmony_ci * Generated from protobuf field <code>bool bool_value = 4;</code> 162ffe3c632Sopenharmony_ci * @param bool $var 163ffe3c632Sopenharmony_ci * @return $this 164ffe3c632Sopenharmony_ci */ 165ffe3c632Sopenharmony_ci public function setBoolValue($var) 166ffe3c632Sopenharmony_ci { 167ffe3c632Sopenharmony_ci GPBUtil::checkBool($var); 168ffe3c632Sopenharmony_ci $this->writeOneof(4, $var); 169ffe3c632Sopenharmony_ci 170ffe3c632Sopenharmony_ci return $this; 171ffe3c632Sopenharmony_ci } 172ffe3c632Sopenharmony_ci 173ffe3c632Sopenharmony_ci /** 174ffe3c632Sopenharmony_ci * Represents a structured value. 175ffe3c632Sopenharmony_ci * 176ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.Struct struct_value = 5;</code> 177ffe3c632Sopenharmony_ci * @return \Google\Protobuf\Struct 178ffe3c632Sopenharmony_ci */ 179ffe3c632Sopenharmony_ci public function getStructValue() 180ffe3c632Sopenharmony_ci { 181ffe3c632Sopenharmony_ci return $this->readOneof(5); 182ffe3c632Sopenharmony_ci } 183ffe3c632Sopenharmony_ci 184ffe3c632Sopenharmony_ci public function hasStructValue() 185ffe3c632Sopenharmony_ci { 186ffe3c632Sopenharmony_ci return $this->hasOneof(5); 187ffe3c632Sopenharmony_ci } 188ffe3c632Sopenharmony_ci 189ffe3c632Sopenharmony_ci /** 190ffe3c632Sopenharmony_ci * Represents a structured value. 191ffe3c632Sopenharmony_ci * 192ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.Struct struct_value = 5;</code> 193ffe3c632Sopenharmony_ci * @param \Google\Protobuf\Struct $var 194ffe3c632Sopenharmony_ci * @return $this 195ffe3c632Sopenharmony_ci */ 196ffe3c632Sopenharmony_ci public function setStructValue($var) 197ffe3c632Sopenharmony_ci { 198ffe3c632Sopenharmony_ci GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); 199ffe3c632Sopenharmony_ci $this->writeOneof(5, $var); 200ffe3c632Sopenharmony_ci 201ffe3c632Sopenharmony_ci return $this; 202ffe3c632Sopenharmony_ci } 203ffe3c632Sopenharmony_ci 204ffe3c632Sopenharmony_ci /** 205ffe3c632Sopenharmony_ci * Represents a repeated `Value`. 206ffe3c632Sopenharmony_ci * 207ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.ListValue list_value = 6;</code> 208ffe3c632Sopenharmony_ci * @return \Google\Protobuf\ListValue 209ffe3c632Sopenharmony_ci */ 210ffe3c632Sopenharmony_ci public function getListValue() 211ffe3c632Sopenharmony_ci { 212ffe3c632Sopenharmony_ci return $this->readOneof(6); 213ffe3c632Sopenharmony_ci } 214ffe3c632Sopenharmony_ci 215ffe3c632Sopenharmony_ci public function hasListValue() 216ffe3c632Sopenharmony_ci { 217ffe3c632Sopenharmony_ci return $this->hasOneof(6); 218ffe3c632Sopenharmony_ci } 219ffe3c632Sopenharmony_ci 220ffe3c632Sopenharmony_ci /** 221ffe3c632Sopenharmony_ci * Represents a repeated `Value`. 222ffe3c632Sopenharmony_ci * 223ffe3c632Sopenharmony_ci * Generated from protobuf field <code>.google.protobuf.ListValue list_value = 6;</code> 224ffe3c632Sopenharmony_ci * @param \Google\Protobuf\ListValue $var 225ffe3c632Sopenharmony_ci * @return $this 226ffe3c632Sopenharmony_ci */ 227ffe3c632Sopenharmony_ci public function setListValue($var) 228ffe3c632Sopenharmony_ci { 229ffe3c632Sopenharmony_ci GPBUtil::checkMessage($var, \Google\Protobuf\ListValue::class); 230ffe3c632Sopenharmony_ci $this->writeOneof(6, $var); 231ffe3c632Sopenharmony_ci 232ffe3c632Sopenharmony_ci return $this; 233ffe3c632Sopenharmony_ci } 234ffe3c632Sopenharmony_ci 235ffe3c632Sopenharmony_ci /** 236ffe3c632Sopenharmony_ci * @return string 237ffe3c632Sopenharmony_ci */ 238ffe3c632Sopenharmony_ci public function getKind() 239ffe3c632Sopenharmony_ci { 240ffe3c632Sopenharmony_ci return $this->whichOneof("kind"); 241ffe3c632Sopenharmony_ci } 242ffe3c632Sopenharmony_ci 243ffe3c632Sopenharmony_ci} 244ffe3c632Sopenharmony_ci 245