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 ExternalDataConfiguration extends \Google\Collection 21{ 22 protected $collection_key = 'sourceUris'; 23 /** 24 * @var bool 25 */ 26 public $autodetect; 27 protected $avroOptionsType = AvroOptions::class; 28 protected $avroOptionsDataType = ''; 29 protected $bigtableOptionsType = BigtableOptions::class; 30 protected $bigtableOptionsDataType = ''; 31 /** 32 * @var string 33 */ 34 public $compression; 35 /** 36 * @var string 37 */ 38 public $connectionId; 39 protected $csvOptionsType = CsvOptions::class; 40 protected $csvOptionsDataType = ''; 41 /** 42 * @var string[] 43 */ 44 public $decimalTargetTypes; 45 protected $googleSheetsOptionsType = GoogleSheetsOptions::class; 46 protected $googleSheetsOptionsDataType = ''; 47 protected $hivePartitioningOptionsType = HivePartitioningOptions::class; 48 protected $hivePartitioningOptionsDataType = ''; 49 /** 50 * @var bool 51 */ 52 public $ignoreUnknownValues; 53 /** 54 * @var int 55 */ 56 public $maxBadRecords; 57 protected $parquetOptionsType = ParquetOptions::class; 58 protected $parquetOptionsDataType = ''; 59 protected $schemaType = TableSchema::class; 60 protected $schemaDataType = ''; 61 /** 62 * @var string 63 */ 64 public $sourceFormat; 65 /** 66 * @var string[] 67 */ 68 public $sourceUris; 69 70 /** 71 * @param bool 72 */ 73 public function setAutodetect($autodetect) 74 { 75 $this->autodetect = $autodetect; 76 } 77 /** 78 * @return bool 79 */ 80 public function getAutodetect() 81 { 82 return $this->autodetect; 83 } 84 /** 85 * @param AvroOptions 86 */ 87 public function setAvroOptions(AvroOptions $avroOptions) 88 { 89 $this->avroOptions = $avroOptions; 90 } 91 /** 92 * @return AvroOptions 93 */ 94 public function getAvroOptions() 95 { 96 return $this->avroOptions; 97 } 98 /** 99 * @param BigtableOptions 100 */ 101 public function setBigtableOptions(BigtableOptions $bigtableOptions) 102 { 103 $this->bigtableOptions = $bigtableOptions; 104 } 105 /** 106 * @return BigtableOptions 107 */ 108 public function getBigtableOptions() 109 { 110 return $this->bigtableOptions; 111 } 112 /** 113 * @param string 114 */ 115 public function setCompression($compression) 116 { 117 $this->compression = $compression; 118 } 119 /** 120 * @return string 121 */ 122 public function getCompression() 123 { 124 return $this->compression; 125 } 126 /** 127 * @param string 128 */ 129 public function setConnectionId($connectionId) 130 { 131 $this->connectionId = $connectionId; 132 } 133 /** 134 * @return string 135 */ 136 public function getConnectionId() 137 { 138 return $this->connectionId; 139 } 140 /** 141 * @param CsvOptions 142 */ 143 public function setCsvOptions(CsvOptions $csvOptions) 144 { 145 $this->csvOptions = $csvOptions; 146 } 147 /** 148 * @return CsvOptions 149 */ 150 public function getCsvOptions() 151 { 152 return $this->csvOptions; 153 } 154 /** 155 * @param string[] 156 */ 157 public function setDecimalTargetTypes($decimalTargetTypes) 158 { 159 $this->decimalTargetTypes = $decimalTargetTypes; 160 } 161 /** 162 * @return string[] 163 */ 164 public function getDecimalTargetTypes() 165 { 166 return $this->decimalTargetTypes; 167 } 168 /** 169 * @param GoogleSheetsOptions 170 */ 171 public function setGoogleSheetsOptions(GoogleSheetsOptions $googleSheetsOptions) 172 { 173 $this->googleSheetsOptions = $googleSheetsOptions; 174 } 175 /** 176 * @return GoogleSheetsOptions 177 */ 178 public function getGoogleSheetsOptions() 179 { 180 return $this->googleSheetsOptions; 181 } 182 /** 183 * @param HivePartitioningOptions 184 */ 185 public function setHivePartitioningOptions(HivePartitioningOptions $hivePartitioningOptions) 186 { 187 $this->hivePartitioningOptions = $hivePartitioningOptions; 188 } 189 /** 190 * @return HivePartitioningOptions 191 */ 192 public function getHivePartitioningOptions() 193 { 194 return $this->hivePartitioningOptions; 195 } 196 /** 197 * @param bool 198 */ 199 public function setIgnoreUnknownValues($ignoreUnknownValues) 200 { 201 $this->ignoreUnknownValues = $ignoreUnknownValues; 202 } 203 /** 204 * @return bool 205 */ 206 public function getIgnoreUnknownValues() 207 { 208 return $this->ignoreUnknownValues; 209 } 210 /** 211 * @param int 212 */ 213 public function setMaxBadRecords($maxBadRecords) 214 { 215 $this->maxBadRecords = $maxBadRecords; 216 } 217 /** 218 * @return int 219 */ 220 public function getMaxBadRecords() 221 { 222 return $this->maxBadRecords; 223 } 224 /** 225 * @param ParquetOptions 226 */ 227 public function setParquetOptions(ParquetOptions $parquetOptions) 228 { 229 $this->parquetOptions = $parquetOptions; 230 } 231 /** 232 * @return ParquetOptions 233 */ 234 public function getParquetOptions() 235 { 236 return $this->parquetOptions; 237 } 238 /** 239 * @param TableSchema 240 */ 241 public function setSchema(TableSchema $schema) 242 { 243 $this->schema = $schema; 244 } 245 /** 246 * @return TableSchema 247 */ 248 public function getSchema() 249 { 250 return $this->schema; 251 } 252 /** 253 * @param string 254 */ 255 public function setSourceFormat($sourceFormat) 256 { 257 $this->sourceFormat = $sourceFormat; 258 } 259 /** 260 * @return string 261 */ 262 public function getSourceFormat() 263 { 264 return $this->sourceFormat; 265 } 266 /** 267 * @param string[] 268 */ 269 public function setSourceUris($sourceUris) 270 { 271 $this->sourceUris = $sourceUris; 272 } 273 /** 274 * @return string[] 275 */ 276 public function getSourceUris() 277 { 278 return $this->sourceUris; 279 } 280} 281 282// Adding a class alias for backwards compatibility with the previous class name. 283class_alias(ExternalDataConfiguration::class, 'Google_Service_Bigquery_ExternalDataConfiguration'); 284