[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\Bigquery;
|
---|
| 19 |
|
---|
| 20 | class TableFieldSchema extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'fields';
|
---|
| 23 | protected $categoriesType = TableFieldSchemaCategories::class;
|
---|
| 24 | protected $categoriesDataType = '';
|
---|
| 25 | /**
|
---|
| 26 | * @var string
|
---|
| 27 | */
|
---|
| 28 | public $collation;
|
---|
| 29 | protected $dataPoliciesType = DataPolicyOption::class;
|
---|
| 30 | protected $dataPoliciesDataType = 'array';
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $defaultValueExpression;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $description;
|
---|
| 39 | protected $fieldsType = TableFieldSchema::class;
|
---|
| 40 | protected $fieldsDataType = 'array';
|
---|
| 41 | /**
|
---|
| 42 | * @var string
|
---|
| 43 | */
|
---|
| 44 | public $foreignTypeDefinition;
|
---|
| 45 | /**
|
---|
| 46 | * @var string
|
---|
| 47 | */
|
---|
| 48 | public $maxLength;
|
---|
| 49 | /**
|
---|
| 50 | * @var string
|
---|
| 51 | */
|
---|
| 52 | public $mode;
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $name;
|
---|
| 57 | protected $policyTagsType = TableFieldSchemaPolicyTags::class;
|
---|
| 58 | protected $policyTagsDataType = '';
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $precision;
|
---|
| 63 | protected $rangeElementTypeType = TableFieldSchemaRangeElementType::class;
|
---|
| 64 | protected $rangeElementTypeDataType = '';
|
---|
| 65 | /**
|
---|
| 66 | * @var string
|
---|
| 67 | */
|
---|
| 68 | public $roundingMode;
|
---|
| 69 | /**
|
---|
| 70 | * @var string
|
---|
| 71 | */
|
---|
| 72 | public $scale;
|
---|
| 73 | /**
|
---|
| 74 | * @var string
|
---|
| 75 | */
|
---|
| 76 | public $type;
|
---|
| 77 |
|
---|
| 78 | /**
|
---|
| 79 | * @param TableFieldSchemaCategories
|
---|
| 80 | */
|
---|
| 81 | public function setCategories(TableFieldSchemaCategories $categories)
|
---|
| 82 | {
|
---|
| 83 | $this->categories = $categories;
|
---|
| 84 | }
|
---|
| 85 | /**
|
---|
| 86 | * @return TableFieldSchemaCategories
|
---|
| 87 | */
|
---|
| 88 | public function getCategories()
|
---|
| 89 | {
|
---|
| 90 | return $this->categories;
|
---|
| 91 | }
|
---|
| 92 | /**
|
---|
| 93 | * @param string
|
---|
| 94 | */
|
---|
| 95 | public function setCollation($collation)
|
---|
| 96 | {
|
---|
| 97 | $this->collation = $collation;
|
---|
| 98 | }
|
---|
| 99 | /**
|
---|
| 100 | * @return string
|
---|
| 101 | */
|
---|
| 102 | public function getCollation()
|
---|
| 103 | {
|
---|
| 104 | return $this->collation;
|
---|
| 105 | }
|
---|
| 106 | /**
|
---|
| 107 | * @param DataPolicyOption[]
|
---|
| 108 | */
|
---|
| 109 | public function setDataPolicies($dataPolicies)
|
---|
| 110 | {
|
---|
| 111 | $this->dataPolicies = $dataPolicies;
|
---|
| 112 | }
|
---|
| 113 | /**
|
---|
| 114 | * @return DataPolicyOption[]
|
---|
| 115 | */
|
---|
| 116 | public function getDataPolicies()
|
---|
| 117 | {
|
---|
| 118 | return $this->dataPolicies;
|
---|
| 119 | }
|
---|
| 120 | /**
|
---|
| 121 | * @param string
|
---|
| 122 | */
|
---|
| 123 | public function setDefaultValueExpression($defaultValueExpression)
|
---|
| 124 | {
|
---|
| 125 | $this->defaultValueExpression = $defaultValueExpression;
|
---|
| 126 | }
|
---|
| 127 | /**
|
---|
| 128 | * @return string
|
---|
| 129 | */
|
---|
| 130 | public function getDefaultValueExpression()
|
---|
| 131 | {
|
---|
| 132 | return $this->defaultValueExpression;
|
---|
| 133 | }
|
---|
| 134 | /**
|
---|
| 135 | * @param string
|
---|
| 136 | */
|
---|
| 137 | public function setDescription($description)
|
---|
| 138 | {
|
---|
| 139 | $this->description = $description;
|
---|
| 140 | }
|
---|
| 141 | /**
|
---|
| 142 | * @return string
|
---|
| 143 | */
|
---|
| 144 | public function getDescription()
|
---|
| 145 | {
|
---|
| 146 | return $this->description;
|
---|
| 147 | }
|
---|
| 148 | /**
|
---|
| 149 | * @param TableFieldSchema[]
|
---|
| 150 | */
|
---|
| 151 | public function setFields($fields)
|
---|
| 152 | {
|
---|
| 153 | $this->fields = $fields;
|
---|
| 154 | }
|
---|
| 155 | /**
|
---|
| 156 | * @return TableFieldSchema[]
|
---|
| 157 | */
|
---|
| 158 | public function getFields()
|
---|
| 159 | {
|
---|
| 160 | return $this->fields;
|
---|
| 161 | }
|
---|
| 162 | /**
|
---|
| 163 | * @param string
|
---|
| 164 | */
|
---|
| 165 | public function setForeignTypeDefinition($foreignTypeDefinition)
|
---|
| 166 | {
|
---|
| 167 | $this->foreignTypeDefinition = $foreignTypeDefinition;
|
---|
| 168 | }
|
---|
| 169 | /**
|
---|
| 170 | * @return string
|
---|
| 171 | */
|
---|
| 172 | public function getForeignTypeDefinition()
|
---|
| 173 | {
|
---|
| 174 | return $this->foreignTypeDefinition;
|
---|
| 175 | }
|
---|
| 176 | /**
|
---|
| 177 | * @param string
|
---|
| 178 | */
|
---|
| 179 | public function setMaxLength($maxLength)
|
---|
| 180 | {
|
---|
| 181 | $this->maxLength = $maxLength;
|
---|
| 182 | }
|
---|
| 183 | /**
|
---|
| 184 | * @return string
|
---|
| 185 | */
|
---|
| 186 | public function getMaxLength()
|
---|
| 187 | {
|
---|
| 188 | return $this->maxLength;
|
---|
| 189 | }
|
---|
| 190 | /**
|
---|
| 191 | * @param string
|
---|
| 192 | */
|
---|
| 193 | public function setMode($mode)
|
---|
| 194 | {
|
---|
| 195 | $this->mode = $mode;
|
---|
| 196 | }
|
---|
| 197 | /**
|
---|
| 198 | * @return string
|
---|
| 199 | */
|
---|
| 200 | public function getMode()
|
---|
| 201 | {
|
---|
| 202 | return $this->mode;
|
---|
| 203 | }
|
---|
| 204 | /**
|
---|
| 205 | * @param string
|
---|
| 206 | */
|
---|
| 207 | public function setName($name)
|
---|
| 208 | {
|
---|
| 209 | $this->name = $name;
|
---|
| 210 | }
|
---|
| 211 | /**
|
---|
| 212 | * @return string
|
---|
| 213 | */
|
---|
| 214 | public function getName()
|
---|
| 215 | {
|
---|
| 216 | return $this->name;
|
---|
| 217 | }
|
---|
| 218 | /**
|
---|
| 219 | * @param TableFieldSchemaPolicyTags
|
---|
| 220 | */
|
---|
| 221 | public function setPolicyTags(TableFieldSchemaPolicyTags $policyTags)
|
---|
| 222 | {
|
---|
| 223 | $this->policyTags = $policyTags;
|
---|
| 224 | }
|
---|
| 225 | /**
|
---|
| 226 | * @return TableFieldSchemaPolicyTags
|
---|
| 227 | */
|
---|
| 228 | public function getPolicyTags()
|
---|
| 229 | {
|
---|
| 230 | return $this->policyTags;
|
---|
| 231 | }
|
---|
| 232 | /**
|
---|
| 233 | * @param string
|
---|
| 234 | */
|
---|
| 235 | public function setPrecision($precision)
|
---|
| 236 | {
|
---|
| 237 | $this->precision = $precision;
|
---|
| 238 | }
|
---|
| 239 | /**
|
---|
| 240 | * @return string
|
---|
| 241 | */
|
---|
| 242 | public function getPrecision()
|
---|
| 243 | {
|
---|
| 244 | return $this->precision;
|
---|
| 245 | }
|
---|
| 246 | /**
|
---|
| 247 | * @param TableFieldSchemaRangeElementType
|
---|
| 248 | */
|
---|
| 249 | public function setRangeElementType(TableFieldSchemaRangeElementType $rangeElementType)
|
---|
| 250 | {
|
---|
| 251 | $this->rangeElementType = $rangeElementType;
|
---|
| 252 | }
|
---|
| 253 | /**
|
---|
| 254 | * @return TableFieldSchemaRangeElementType
|
---|
| 255 | */
|
---|
| 256 | public function getRangeElementType()
|
---|
| 257 | {
|
---|
| 258 | return $this->rangeElementType;
|
---|
| 259 | }
|
---|
| 260 | /**
|
---|
| 261 | * @param string
|
---|
| 262 | */
|
---|
| 263 | public function setRoundingMode($roundingMode)
|
---|
| 264 | {
|
---|
| 265 | $this->roundingMode = $roundingMode;
|
---|
| 266 | }
|
---|
| 267 | /**
|
---|
| 268 | * @return string
|
---|
| 269 | */
|
---|
| 270 | public function getRoundingMode()
|
---|
| 271 | {
|
---|
| 272 | return $this->roundingMode;
|
---|
| 273 | }
|
---|
| 274 | /**
|
---|
| 275 | * @param string
|
---|
| 276 | */
|
---|
| 277 | public function setScale($scale)
|
---|
| 278 | {
|
---|
| 279 | $this->scale = $scale;
|
---|
| 280 | }
|
---|
| 281 | /**
|
---|
| 282 | * @return string
|
---|
| 283 | */
|
---|
| 284 | public function getScale()
|
---|
| 285 | {
|
---|
| 286 | return $this->scale;
|
---|
| 287 | }
|
---|
| 288 | /**
|
---|
| 289 | * @param string
|
---|
| 290 | */
|
---|
| 291 | public function setType($type)
|
---|
| 292 | {
|
---|
| 293 | $this->type = $type;
|
---|
| 294 | }
|
---|
| 295 | /**
|
---|
| 296 | * @return string
|
---|
| 297 | */
|
---|
| 298 | public function getType()
|
---|
| 299 | {
|
---|
| 300 | return $this->type;
|
---|
| 301 | }
|
---|
| 302 | }
|
---|
| 303 |
|
---|
| 304 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 305 | class_alias(TableFieldSchema::class, 'Google_Service_Bigquery_TableFieldSchema');
|
---|