1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\Firestore; 19 20class Value extends \Google\Model 21{ 22 protected $arrayValueType = ArrayValue::class; 23 protected $arrayValueDataType = ''; 24 /** 25 * @var bool 26 */ 27 public $booleanValue; 28 /** 29 * @var string 30 */ 31 public $bytesValue; 32 public $doubleValue; 33 protected $geoPointValueType = LatLng::class; 34 protected $geoPointValueDataType = ''; 35 /** 36 * @var string 37 */ 38 public $integerValue; 39 protected $mapValueType = MapValue::class; 40 protected $mapValueDataType = ''; 41 /** 42 * @var string 43 */ 44 public $nullValue; 45 /** 46 * @var string 47 */ 48 public $referenceValue; 49 /** 50 * @var string 51 */ 52 public $stringValue; 53 /** 54 * @var string 55 */ 56 public $timestampValue; 57 58 /** 59 * @param ArrayValue 60 */ 61 public function setArrayValue(ArrayValue $arrayValue) 62 { 63 $this->arrayValue = $arrayValue; 64 } 65 /** 66 * @return ArrayValue 67 */ 68 public function getArrayValue() 69 { 70 return $this->arrayValue; 71 } 72 /** 73 * @param bool 74 */ 75 public function setBooleanValue($booleanValue) 76 { 77 $this->booleanValue = $booleanValue; 78 } 79 /** 80 * @return bool 81 */ 82 public function getBooleanValue() 83 { 84 return $this->booleanValue; 85 } 86 /** 87 * @param string 88 */ 89 public function setBytesValue($bytesValue) 90 { 91 $this->bytesValue = $bytesValue; 92 } 93 /** 94 * @return string 95 */ 96 public function getBytesValue() 97 { 98 return $this->bytesValue; 99 } 100 public function setDoubleValue($doubleValue) 101 { 102 $this->doubleValue = $doubleValue; 103 } 104 public function getDoubleValue() 105 { 106 return $this->doubleValue; 107 } 108 /** 109 * @param LatLng 110 */ 111 public function setGeoPointValue(LatLng $geoPointValue) 112 { 113 $this->geoPointValue = $geoPointValue; 114 } 115 /** 116 * @return LatLng 117 */ 118 public function getGeoPointValue() 119 { 120 return $this->geoPointValue; 121 } 122 /** 123 * @param string 124 */ 125 public function setIntegerValue($integerValue) 126 { 127 $this->integerValue = $integerValue; 128 } 129 /** 130 * @return string 131 */ 132 public function getIntegerValue() 133 { 134 return $this->integerValue; 135 } 136 /** 137 * @param MapValue 138 */ 139 public function setMapValue(MapValue $mapValue) 140 { 141 $this->mapValue = $mapValue; 142 } 143 /** 144 * @return MapValue 145 */ 146 public function getMapValue() 147 { 148 return $this->mapValue; 149 } 150 /** 151 * @param string 152 */ 153 public function setNullValue($nullValue) 154 { 155 $this->nullValue = $nullValue; 156 } 157 /** 158 * @return string 159 */ 160 public function getNullValue() 161 { 162 return $this->nullValue; 163 } 164 /** 165 * @param string 166 */ 167 public function setReferenceValue($referenceValue) 168 { 169 $this->referenceValue = $referenceValue; 170 } 171 /** 172 * @return string 173 */ 174 public function getReferenceValue() 175 { 176 return $this->referenceValue; 177 } 178 /** 179 * @param string 180 */ 181 public function setStringValue($stringValue) 182 { 183 $this->stringValue = $stringValue; 184 } 185 /** 186 * @return string 187 */ 188 public function getStringValue() 189 { 190 return $this->stringValue; 191 } 192 /** 193 * @param string 194 */ 195 public function setTimestampValue($timestampValue) 196 { 197 $this->timestampValue = $timestampValue; 198 } 199 /** 200 * @return string 201 */ 202 public function getTimestampValue() 203 { 204 return $this->timestampValue; 205 } 206} 207 208// Adding a class alias for backwards compatibility with the previous class name. 209class_alias(Value::class, 'Google_Service_Firestore_Value'); 210