[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\Datastore;
|
---|
| 19 |
|
---|
| 20 | class Value extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | protected $arrayValueType = ArrayValue::class;
|
---|
| 23 | protected $arrayValueDataType = '';
|
---|
| 24 | /**
|
---|
| 25 | * @var string
|
---|
| 26 | */
|
---|
| 27 | public $blobValue;
|
---|
| 28 | /**
|
---|
| 29 | * @var bool
|
---|
| 30 | */
|
---|
| 31 | public $booleanValue;
|
---|
| 32 | public $doubleValue;
|
---|
| 33 | protected $entityValueType = Entity::class;
|
---|
| 34 | protected $entityValueDataType = '';
|
---|
| 35 | /**
|
---|
| 36 | * @var bool
|
---|
| 37 | */
|
---|
| 38 | public $excludeFromIndexes;
|
---|
| 39 | protected $geoPointValueType = LatLng::class;
|
---|
| 40 | protected $geoPointValueDataType = '';
|
---|
| 41 | /**
|
---|
| 42 | * @var string
|
---|
| 43 | */
|
---|
| 44 | public $integerValue;
|
---|
| 45 | protected $keyValueType = Key::class;
|
---|
| 46 | protected $keyValueDataType = '';
|
---|
| 47 | /**
|
---|
| 48 | * @var int
|
---|
| 49 | */
|
---|
| 50 | public $meaning;
|
---|
| 51 | /**
|
---|
| 52 | * @var string
|
---|
| 53 | */
|
---|
| 54 | public $nullValue;
|
---|
| 55 | /**
|
---|
| 56 | * @var string
|
---|
| 57 | */
|
---|
| 58 | public $stringValue;
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $timestampValue;
|
---|
| 63 |
|
---|
| 64 | /**
|
---|
| 65 | * @param ArrayValue
|
---|
| 66 | */
|
---|
| 67 | public function setArrayValue(ArrayValue $arrayValue)
|
---|
| 68 | {
|
---|
| 69 | $this->arrayValue = $arrayValue;
|
---|
| 70 | }
|
---|
| 71 | /**
|
---|
| 72 | * @return ArrayValue
|
---|
| 73 | */
|
---|
| 74 | public function getArrayValue()
|
---|
| 75 | {
|
---|
| 76 | return $this->arrayValue;
|
---|
| 77 | }
|
---|
| 78 | /**
|
---|
| 79 | * @param string
|
---|
| 80 | */
|
---|
| 81 | public function setBlobValue($blobValue)
|
---|
| 82 | {
|
---|
| 83 | $this->blobValue = $blobValue;
|
---|
| 84 | }
|
---|
| 85 | /**
|
---|
| 86 | * @return string
|
---|
| 87 | */
|
---|
| 88 | public function getBlobValue()
|
---|
| 89 | {
|
---|
| 90 | return $this->blobValue;
|
---|
| 91 | }
|
---|
| 92 | /**
|
---|
| 93 | * @param bool
|
---|
| 94 | */
|
---|
| 95 | public function setBooleanValue($booleanValue)
|
---|
| 96 | {
|
---|
| 97 | $this->booleanValue = $booleanValue;
|
---|
| 98 | }
|
---|
| 99 | /**
|
---|
| 100 | * @return bool
|
---|
| 101 | */
|
---|
| 102 | public function getBooleanValue()
|
---|
| 103 | {
|
---|
| 104 | return $this->booleanValue;
|
---|
| 105 | }
|
---|
| 106 | public function setDoubleValue($doubleValue)
|
---|
| 107 | {
|
---|
| 108 | $this->doubleValue = $doubleValue;
|
---|
| 109 | }
|
---|
| 110 | public function getDoubleValue()
|
---|
| 111 | {
|
---|
| 112 | return $this->doubleValue;
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * @param Entity
|
---|
| 116 | */
|
---|
| 117 | public function setEntityValue(Entity $entityValue)
|
---|
| 118 | {
|
---|
| 119 | $this->entityValue = $entityValue;
|
---|
| 120 | }
|
---|
| 121 | /**
|
---|
| 122 | * @return Entity
|
---|
| 123 | */
|
---|
| 124 | public function getEntityValue()
|
---|
| 125 | {
|
---|
| 126 | return $this->entityValue;
|
---|
| 127 | }
|
---|
| 128 | /**
|
---|
| 129 | * @param bool
|
---|
| 130 | */
|
---|
| 131 | public function setExcludeFromIndexes($excludeFromIndexes)
|
---|
| 132 | {
|
---|
| 133 | $this->excludeFromIndexes = $excludeFromIndexes;
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * @return bool
|
---|
| 137 | */
|
---|
| 138 | public function getExcludeFromIndexes()
|
---|
| 139 | {
|
---|
| 140 | return $this->excludeFromIndexes;
|
---|
| 141 | }
|
---|
| 142 | /**
|
---|
| 143 | * @param LatLng
|
---|
| 144 | */
|
---|
| 145 | public function setGeoPointValue(LatLng $geoPointValue)
|
---|
| 146 | {
|
---|
| 147 | $this->geoPointValue = $geoPointValue;
|
---|
| 148 | }
|
---|
| 149 | /**
|
---|
| 150 | * @return LatLng
|
---|
| 151 | */
|
---|
| 152 | public function getGeoPointValue()
|
---|
| 153 | {
|
---|
| 154 | return $this->geoPointValue;
|
---|
| 155 | }
|
---|
| 156 | /**
|
---|
| 157 | * @param string
|
---|
| 158 | */
|
---|
| 159 | public function setIntegerValue($integerValue)
|
---|
| 160 | {
|
---|
| 161 | $this->integerValue = $integerValue;
|
---|
| 162 | }
|
---|
| 163 | /**
|
---|
| 164 | * @return string
|
---|
| 165 | */
|
---|
| 166 | public function getIntegerValue()
|
---|
| 167 | {
|
---|
| 168 | return $this->integerValue;
|
---|
| 169 | }
|
---|
| 170 | /**
|
---|
| 171 | * @param Key
|
---|
| 172 | */
|
---|
| 173 | public function setKeyValue(Key $keyValue)
|
---|
| 174 | {
|
---|
| 175 | $this->keyValue = $keyValue;
|
---|
| 176 | }
|
---|
| 177 | /**
|
---|
| 178 | * @return Key
|
---|
| 179 | */
|
---|
| 180 | public function getKeyValue()
|
---|
| 181 | {
|
---|
| 182 | return $this->keyValue;
|
---|
| 183 | }
|
---|
| 184 | /**
|
---|
| 185 | * @param int
|
---|
| 186 | */
|
---|
| 187 | public function setMeaning($meaning)
|
---|
| 188 | {
|
---|
| 189 | $this->meaning = $meaning;
|
---|
| 190 | }
|
---|
| 191 | /**
|
---|
| 192 | * @return int
|
---|
| 193 | */
|
---|
| 194 | public function getMeaning()
|
---|
| 195 | {
|
---|
| 196 | return $this->meaning;
|
---|
| 197 | }
|
---|
| 198 | /**
|
---|
| 199 | * @param string
|
---|
| 200 | */
|
---|
| 201 | public function setNullValue($nullValue)
|
---|
| 202 | {
|
---|
| 203 | $this->nullValue = $nullValue;
|
---|
| 204 | }
|
---|
| 205 | /**
|
---|
| 206 | * @return string
|
---|
| 207 | */
|
---|
| 208 | public function getNullValue()
|
---|
| 209 | {
|
---|
| 210 | return $this->nullValue;
|
---|
| 211 | }
|
---|
| 212 | /**
|
---|
| 213 | * @param string
|
---|
| 214 | */
|
---|
| 215 | public function setStringValue($stringValue)
|
---|
| 216 | {
|
---|
| 217 | $this->stringValue = $stringValue;
|
---|
| 218 | }
|
---|
| 219 | /**
|
---|
| 220 | * @return string
|
---|
| 221 | */
|
---|
| 222 | public function getStringValue()
|
---|
| 223 | {
|
---|
| 224 | return $this->stringValue;
|
---|
| 225 | }
|
---|
| 226 | /**
|
---|
| 227 | * @param string
|
---|
| 228 | */
|
---|
| 229 | public function setTimestampValue($timestampValue)
|
---|
| 230 | {
|
---|
| 231 | $this->timestampValue = $timestampValue;
|
---|
| 232 | }
|
---|
| 233 | /**
|
---|
| 234 | * @return string
|
---|
| 235 | */
|
---|
| 236 | public function getTimestampValue()
|
---|
| 237 | {
|
---|
| 238 | return $this->timestampValue;
|
---|
| 239 | }
|
---|
| 240 | }
|
---|
| 241 |
|
---|
| 242 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 243 | class_alias(Value::class, 'Google_Service_Datastore_Value');
|
---|