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\Bigquery; 19 20class JobConfigurationLoad extends \Google\Collection 21{ 22 protected $collection_key = 'sourceUris'; 23 /** 24 * @var bool 25 */ 26 public $allowJaggedRows; 27 /** 28 * @var bool 29 */ 30 public $allowQuotedNewlines; 31 /** 32 * @var bool 33 */ 34 public $autodetect; 35 protected $clusteringType = Clustering::class; 36 protected $clusteringDataType = ''; 37 /** 38 * @var string 39 */ 40 public $createDisposition; 41 /** 42 * @var string[] 43 */ 44 public $decimalTargetTypes; 45 protected $destinationEncryptionConfigurationType = EncryptionConfiguration::class; 46 protected $destinationEncryptionConfigurationDataType = ''; 47 protected $destinationTableType = TableReference::class; 48 protected $destinationTableDataType = ''; 49 protected $destinationTablePropertiesType = DestinationTableProperties::class; 50 protected $destinationTablePropertiesDataType = ''; 51 /** 52 * @var string 53 */ 54 public $encoding; 55 /** 56 * @var string 57 */ 58 public $fieldDelimiter; 59 protected $hivePartitioningOptionsType = HivePartitioningOptions::class; 60 protected $hivePartitioningOptionsDataType = ''; 61 /** 62 * @var bool 63 */ 64 public $ignoreUnknownValues; 65 /** 66 * @var string 67 */ 68 public $jsonExtension; 69 /** 70 * @var int 71 */ 72 public $maxBadRecords; 73 /** 74 * @var string 75 */ 76 public $nullMarker; 77 protected $parquetOptionsType = ParquetOptions::class; 78 protected $parquetOptionsDataType = ''; 79 /** 80 * @var bool 81 */ 82 public $preserveAsciiControlCharacters; 83 /** 84 * @var string[] 85 */ 86 public $projectionFields; 87 /** 88 * @var string 89 */ 90 public $quote; 91 protected $rangePartitioningType = RangePartitioning::class; 92 protected $rangePartitioningDataType = ''; 93 protected $schemaType = TableSchema::class; 94 protected $schemaDataType = ''; 95 /** 96 * @var string 97 */ 98 public $schemaInline; 99 /** 100 * @var string 101 */ 102 public $schemaInlineFormat; 103 /** 104 * @var string[] 105 */ 106 public $schemaUpdateOptions; 107 /** 108 * @var int 109 */ 110 public $skipLeadingRows; 111 /** 112 * @var string 113 */ 114 public $sourceFormat; 115 /** 116 * @var string[] 117 */ 118 public $sourceUris; 119 protected $timePartitioningType = TimePartitioning::class; 120 protected $timePartitioningDataType = ''; 121 /** 122 * @var bool 123 */ 124 public $useAvroLogicalTypes; 125 /** 126 * @var string 127 */ 128 public $writeDisposition; 129 130 /** 131 * @param bool 132 */ 133 public function setAllowJaggedRows($allowJaggedRows) 134 { 135 $this->allowJaggedRows = $allowJaggedRows; 136 } 137 /** 138 * @return bool 139 */ 140 public function getAllowJaggedRows() 141 { 142 return $this->allowJaggedRows; 143 } 144 /** 145 * @param bool 146 */ 147 public function setAllowQuotedNewlines($allowQuotedNewlines) 148 { 149 $this->allowQuotedNewlines = $allowQuotedNewlines; 150 } 151 /** 152 * @return bool 153 */ 154 public function getAllowQuotedNewlines() 155 { 156 return $this->allowQuotedNewlines; 157 } 158 /** 159 * @param bool 160 */ 161 public function setAutodetect($autodetect) 162 { 163 $this->autodetect = $autodetect; 164 } 165 /** 166 * @return bool 167 */ 168 public function getAutodetect() 169 { 170 return $this->autodetect; 171 } 172 /** 173 * @param Clustering 174 */ 175 public function setClustering(Clustering $clustering) 176 { 177 $this->clustering = $clustering; 178 } 179 /** 180 * @return Clustering 181 */ 182 public function getClustering() 183 { 184 return $this->clustering; 185 } 186 /** 187 * @param string 188 */ 189 public function setCreateDisposition($createDisposition) 190 { 191 $this->createDisposition = $createDisposition; 192 } 193 /** 194 * @return string 195 */ 196 public function getCreateDisposition() 197 { 198 return $this->createDisposition; 199 } 200 /** 201 * @param string[] 202 */ 203 public function setDecimalTargetTypes($decimalTargetTypes) 204 { 205 $this->decimalTargetTypes = $decimalTargetTypes; 206 } 207 /** 208 * @return string[] 209 */ 210 public function getDecimalTargetTypes() 211 { 212 return $this->decimalTargetTypes; 213 } 214 /** 215 * @param EncryptionConfiguration 216 */ 217 public function setDestinationEncryptionConfiguration(EncryptionConfiguration $destinationEncryptionConfiguration) 218 { 219 $this->destinationEncryptionConfiguration = $destinationEncryptionConfiguration; 220 } 221 /** 222 * @return EncryptionConfiguration 223 */ 224 public function getDestinationEncryptionConfiguration() 225 { 226 return $this->destinationEncryptionConfiguration; 227 } 228 /** 229 * @param TableReference 230 */ 231 public function setDestinationTable(TableReference $destinationTable) 232 { 233 $this->destinationTable = $destinationTable; 234 } 235 /** 236 * @return TableReference 237 */ 238 public function getDestinationTable() 239 { 240 return $this->destinationTable; 241 } 242 /** 243 * @param DestinationTableProperties 244 */ 245 public function setDestinationTableProperties(DestinationTableProperties $destinationTableProperties) 246 { 247 $this->destinationTableProperties = $destinationTableProperties; 248 } 249 /** 250 * @return DestinationTableProperties 251 */ 252 public function getDestinationTableProperties() 253 { 254 return $this->destinationTableProperties; 255 } 256 /** 257 * @param string 258 */ 259 public function setEncoding($encoding) 260 { 261 $this->encoding = $encoding; 262 } 263 /** 264 * @return string 265 */ 266 public function getEncoding() 267 { 268 return $this->encoding; 269 } 270 /** 271 * @param string 272 */ 273 public function setFieldDelimiter($fieldDelimiter) 274 { 275 $this->fieldDelimiter = $fieldDelimiter; 276 } 277 /** 278 * @return string 279 */ 280 public function getFieldDelimiter() 281 { 282 return $this->fieldDelimiter; 283 } 284 /** 285 * @param HivePartitioningOptions 286 */ 287 public function setHivePartitioningOptions(HivePartitioningOptions $hivePartitioningOptions) 288 { 289 $this->hivePartitioningOptions = $hivePartitioningOptions; 290 } 291 /** 292 * @return HivePartitioningOptions 293 */ 294 public function getHivePartitioningOptions() 295 { 296 return $this->hivePartitioningOptions; 297 } 298 /** 299 * @param bool 300 */ 301 public function setIgnoreUnknownValues($ignoreUnknownValues) 302 { 303 $this->ignoreUnknownValues = $ignoreUnknownValues; 304 } 305 /** 306 * @return bool 307 */ 308 public function getIgnoreUnknownValues() 309 { 310 return $this->ignoreUnknownValues; 311 } 312 /** 313 * @param string 314 */ 315 public function setJsonExtension($jsonExtension) 316 { 317 $this->jsonExtension = $jsonExtension; 318 } 319 /** 320 * @return string 321 */ 322 public function getJsonExtension() 323 { 324 return $this->jsonExtension; 325 } 326 /** 327 * @param int 328 */ 329 public function setMaxBadRecords($maxBadRecords) 330 { 331 $this->maxBadRecords = $maxBadRecords; 332 } 333 /** 334 * @return int 335 */ 336 public function getMaxBadRecords() 337 { 338 return $this->maxBadRecords; 339 } 340 /** 341 * @param string 342 */ 343 public function setNullMarker($nullMarker) 344 { 345 $this->nullMarker = $nullMarker; 346 } 347 /** 348 * @return string 349 */ 350 public function getNullMarker() 351 { 352 return $this->nullMarker; 353 } 354 /** 355 * @param ParquetOptions 356 */ 357 public function setParquetOptions(ParquetOptions $parquetOptions) 358 { 359 $this->parquetOptions = $parquetOptions; 360 } 361 /** 362 * @return ParquetOptions 363 */ 364 public function getParquetOptions() 365 { 366 return $this->parquetOptions; 367 } 368 /** 369 * @param bool 370 */ 371 public function setPreserveAsciiControlCharacters($preserveAsciiControlCharacters) 372 { 373 $this->preserveAsciiControlCharacters = $preserveAsciiControlCharacters; 374 } 375 /** 376 * @return bool 377 */ 378 public function getPreserveAsciiControlCharacters() 379 { 380 return $this->preserveAsciiControlCharacters; 381 } 382 /** 383 * @param string[] 384 */ 385 public function setProjectionFields($projectionFields) 386 { 387 $this->projectionFields = $projectionFields; 388 } 389 /** 390 * @return string[] 391 */ 392 public function getProjectionFields() 393 { 394 return $this->projectionFields; 395 } 396 /** 397 * @param string 398 */ 399 public function setQuote($quote) 400 { 401 $this->quote = $quote; 402 } 403 /** 404 * @return string 405 */ 406 public function getQuote() 407 { 408 return $this->quote; 409 } 410 /** 411 * @param RangePartitioning 412 */ 413 public function setRangePartitioning(RangePartitioning $rangePartitioning) 414 { 415 $this->rangePartitioning = $rangePartitioning; 416 } 417 /** 418 * @return RangePartitioning 419 */ 420 public function getRangePartitioning() 421 { 422 return $this->rangePartitioning; 423 } 424 /** 425 * @param TableSchema 426 */ 427 public function setSchema(TableSchema $schema) 428 { 429 $this->schema = $schema; 430 } 431 /** 432 * @return TableSchema 433 */ 434 public function getSchema() 435 { 436 return $this->schema; 437 } 438 /** 439 * @param string 440 */ 441 public function setSchemaInline($schemaInline) 442 { 443 $this->schemaInline = $schemaInline; 444 } 445 /** 446 * @return string 447 */ 448 public function getSchemaInline() 449 { 450 return $this->schemaInline; 451 } 452 /** 453 * @param string 454 */ 455 public function setSchemaInlineFormat($schemaInlineFormat) 456 { 457 $this->schemaInlineFormat = $schemaInlineFormat; 458 } 459 /** 460 * @return string 461 */ 462 public function getSchemaInlineFormat() 463 { 464 return $this->schemaInlineFormat; 465 } 466 /** 467 * @param string[] 468 */ 469 public function setSchemaUpdateOptions($schemaUpdateOptions) 470 { 471 $this->schemaUpdateOptions = $schemaUpdateOptions; 472 } 473 /** 474 * @return string[] 475 */ 476 public function getSchemaUpdateOptions() 477 { 478 return $this->schemaUpdateOptions; 479 } 480 /** 481 * @param int 482 */ 483 public function setSkipLeadingRows($skipLeadingRows) 484 { 485 $this->skipLeadingRows = $skipLeadingRows; 486 } 487 /** 488 * @return int 489 */ 490 public function getSkipLeadingRows() 491 { 492 return $this->skipLeadingRows; 493 } 494 /** 495 * @param string 496 */ 497 public function setSourceFormat($sourceFormat) 498 { 499 $this->sourceFormat = $sourceFormat; 500 } 501 /** 502 * @return string 503 */ 504 public function getSourceFormat() 505 { 506 return $this->sourceFormat; 507 } 508 /** 509 * @param string[] 510 */ 511 public function setSourceUris($sourceUris) 512 { 513 $this->sourceUris = $sourceUris; 514 } 515 /** 516 * @return string[] 517 */ 518 public function getSourceUris() 519 { 520 return $this->sourceUris; 521 } 522 /** 523 * @param TimePartitioning 524 */ 525 public function setTimePartitioning(TimePartitioning $timePartitioning) 526 { 527 $this->timePartitioning = $timePartitioning; 528 } 529 /** 530 * @return TimePartitioning 531 */ 532 public function getTimePartitioning() 533 { 534 return $this->timePartitioning; 535 } 536 /** 537 * @param bool 538 */ 539 public function setUseAvroLogicalTypes($useAvroLogicalTypes) 540 { 541 $this->useAvroLogicalTypes = $useAvroLogicalTypes; 542 } 543 /** 544 * @return bool 545 */ 546 public function getUseAvroLogicalTypes() 547 { 548 return $this->useAvroLogicalTypes; 549 } 550 /** 551 * @param string 552 */ 553 public function setWriteDisposition($writeDisposition) 554 { 555 $this->writeDisposition = $writeDisposition; 556 } 557 /** 558 * @return string 559 */ 560 public function getWriteDisposition() 561 { 562 return $this->writeDisposition; 563 } 564} 565 566// Adding a class alias for backwards compatibility with the previous class name. 567class_alias(JobConfigurationLoad::class, 'Google_Service_Bigquery_JobConfigurationLoad'); 568