Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

   1  <?php
   2  /*
   3   * Copyright 2010 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  /**
  19   * Service definition for Bigquery (v2).
  20   *
  21   * <p>
  22   * A data platform for customers to create, manage, share and query data.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://cloud.google.com/bigquery/" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  class Google_Service_Bigquery extends Google_Service
  32  {
  33    /** View and manage your data in Google BigQuery. */
  34    const BIGQUERY =
  35        "https://www.googleapis.com/auth/bigquery";
  36    /** Insert data into Google BigQuery. */
  37    const BIGQUERY_INSERTDATA =
  38        "https://www.googleapis.com/auth/bigquery.insertdata";
  39    /** View and manage your data across Google Cloud Platform services. */
  40    const CLOUD_PLATFORM =
  41        "https://www.googleapis.com/auth/cloud-platform";
  42    /** View your data across Google Cloud Platform services. */
  43    const CLOUD_PLATFORM_READ_ONLY =
  44        "https://www.googleapis.com/auth/cloud-platform.read-only";
  45    /** Manage your data and permissions in Google Cloud Storage. */
  46    const DEVSTORAGE_FULL_CONTROL =
  47        "https://www.googleapis.com/auth/devstorage.full_control";
  48    /** View your data in Google Cloud Storage. */
  49    const DEVSTORAGE_READ_ONLY =
  50        "https://www.googleapis.com/auth/devstorage.read_only";
  51    /** Manage your data in Google Cloud Storage. */
  52    const DEVSTORAGE_READ_WRITE =
  53        "https://www.googleapis.com/auth/devstorage.read_write";
  54  
  55    public $datasets;
  56    public $jobs;
  57    public $projects;
  58    public $tabledata;
  59    public $tables;
  60    
  61  
  62    /**
  63     * Constructs the internal representation of the Bigquery service.
  64     *
  65     * @param Google_Client $client
  66     */
  67    public function __construct(Google_Client $client)
  68    {
  69      parent::__construct($client);
  70      $this->rootUrl = 'https://www.googleapis.com/';
  71      $this->servicePath = 'bigquery/v2/';
  72      $this->version = 'v2';
  73      $this->serviceName = 'bigquery';
  74  
  75      $this->datasets = new Google_Service_Bigquery_Datasets_Resource(
  76          $this,
  77          $this->serviceName,
  78          'datasets',
  79          array(
  80            'methods' => array(
  81              'delete' => array(
  82                'path' => 'projects/{projectId}/datasets/{datasetId}',
  83                'httpMethod' => 'DELETE',
  84                'parameters' => array(
  85                  'projectId' => array(
  86                    'location' => 'path',
  87                    'type' => 'string',
  88                    'required' => true,
  89                  ),
  90                  'datasetId' => array(
  91                    'location' => 'path',
  92                    'type' => 'string',
  93                    'required' => true,
  94                  ),
  95                  'deleteContents' => array(
  96                    'location' => 'query',
  97                    'type' => 'boolean',
  98                  ),
  99                ),
 100              ),'get' => array(
 101                'path' => 'projects/{projectId}/datasets/{datasetId}',
 102                'httpMethod' => 'GET',
 103                'parameters' => array(
 104                  'projectId' => array(
 105                    'location' => 'path',
 106                    'type' => 'string',
 107                    'required' => true,
 108                  ),
 109                  'datasetId' => array(
 110                    'location' => 'path',
 111                    'type' => 'string',
 112                    'required' => true,
 113                  ),
 114                ),
 115              ),'insert' => array(
 116                'path' => 'projects/{projectId}/datasets',
 117                'httpMethod' => 'POST',
 118                'parameters' => array(
 119                  'projectId' => array(
 120                    'location' => 'path',
 121                    'type' => 'string',
 122                    'required' => true,
 123                  ),
 124                ),
 125              ),'list' => array(
 126                'path' => 'projects/{projectId}/datasets',
 127                'httpMethod' => 'GET',
 128                'parameters' => array(
 129                  'projectId' => array(
 130                    'location' => 'path',
 131                    'type' => 'string',
 132                    'required' => true,
 133                  ),
 134                  'pageToken' => array(
 135                    'location' => 'query',
 136                    'type' => 'string',
 137                  ),
 138                  'all' => array(
 139                    'location' => 'query',
 140                    'type' => 'boolean',
 141                  ),
 142                  'maxResults' => array(
 143                    'location' => 'query',
 144                    'type' => 'integer',
 145                  ),
 146                ),
 147              ),'patch' => array(
 148                'path' => 'projects/{projectId}/datasets/{datasetId}',
 149                'httpMethod' => 'PATCH',
 150                'parameters' => array(
 151                  'projectId' => array(
 152                    'location' => 'path',
 153                    'type' => 'string',
 154                    'required' => true,
 155                  ),
 156                  'datasetId' => array(
 157                    'location' => 'path',
 158                    'type' => 'string',
 159                    'required' => true,
 160                  ),
 161                ),
 162              ),'update' => array(
 163                'path' => 'projects/{projectId}/datasets/{datasetId}',
 164                'httpMethod' => 'PUT',
 165                'parameters' => array(
 166                  'projectId' => array(
 167                    'location' => 'path',
 168                    'type' => 'string',
 169                    'required' => true,
 170                  ),
 171                  'datasetId' => array(
 172                    'location' => 'path',
 173                    'type' => 'string',
 174                    'required' => true,
 175                  ),
 176                ),
 177              ),
 178            )
 179          )
 180      );
 181      $this->jobs = new Google_Service_Bigquery_Jobs_Resource(
 182          $this,
 183          $this->serviceName,
 184          'jobs',
 185          array(
 186            'methods' => array(
 187              'cancel' => array(
 188                'path' => 'project/{projectId}/jobs/{jobId}/cancel',
 189                'httpMethod' => 'POST',
 190                'parameters' => array(
 191                  'projectId' => array(
 192                    'location' => 'path',
 193                    'type' => 'string',
 194                    'required' => true,
 195                  ),
 196                  'jobId' => array(
 197                    'location' => 'path',
 198                    'type' => 'string',
 199                    'required' => true,
 200                  ),
 201                ),
 202              ),'get' => array(
 203                'path' => 'projects/{projectId}/jobs/{jobId}',
 204                'httpMethod' => 'GET',
 205                'parameters' => array(
 206                  'projectId' => array(
 207                    'location' => 'path',
 208                    'type' => 'string',
 209                    'required' => true,
 210                  ),
 211                  'jobId' => array(
 212                    'location' => 'path',
 213                    'type' => 'string',
 214                    'required' => true,
 215                  ),
 216                ),
 217              ),'getQueryResults' => array(
 218                'path' => 'projects/{projectId}/queries/{jobId}',
 219                'httpMethod' => 'GET',
 220                'parameters' => array(
 221                  'projectId' => array(
 222                    'location' => 'path',
 223                    'type' => 'string',
 224                    'required' => true,
 225                  ),
 226                  'jobId' => array(
 227                    'location' => 'path',
 228                    'type' => 'string',
 229                    'required' => true,
 230                  ),
 231                  'timeoutMs' => array(
 232                    'location' => 'query',
 233                    'type' => 'integer',
 234                  ),
 235                  'maxResults' => array(
 236                    'location' => 'query',
 237                    'type' => 'integer',
 238                  ),
 239                  'pageToken' => array(
 240                    'location' => 'query',
 241                    'type' => 'string',
 242                  ),
 243                  'startIndex' => array(
 244                    'location' => 'query',
 245                    'type' => 'string',
 246                  ),
 247                ),
 248              ),'insert' => array(
 249                'path' => 'projects/{projectId}/jobs',
 250                'httpMethod' => 'POST',
 251                'parameters' => array(
 252                  'projectId' => array(
 253                    'location' => 'path',
 254                    'type' => 'string',
 255                    'required' => true,
 256                  ),
 257                ),
 258              ),'list' => array(
 259                'path' => 'projects/{projectId}/jobs',
 260                'httpMethod' => 'GET',
 261                'parameters' => array(
 262                  'projectId' => array(
 263                    'location' => 'path',
 264                    'type' => 'string',
 265                    'required' => true,
 266                  ),
 267                  'projection' => array(
 268                    'location' => 'query',
 269                    'type' => 'string',
 270                  ),
 271                  'stateFilter' => array(
 272                    'location' => 'query',
 273                    'type' => 'string',
 274                    'repeated' => true,
 275                  ),
 276                  'allUsers' => array(
 277                    'location' => 'query',
 278                    'type' => 'boolean',
 279                  ),
 280                  'maxResults' => array(
 281                    'location' => 'query',
 282                    'type' => 'integer',
 283                  ),
 284                  'pageToken' => array(
 285                    'location' => 'query',
 286                    'type' => 'string',
 287                  ),
 288                ),
 289              ),'query' => array(
 290                'path' => 'projects/{projectId}/queries',
 291                'httpMethod' => 'POST',
 292                'parameters' => array(
 293                  'projectId' => array(
 294                    'location' => 'path',
 295                    'type' => 'string',
 296                    'required' => true,
 297                  ),
 298                ),
 299              ),
 300            )
 301          )
 302      );
 303      $this->projects = new Google_Service_Bigquery_Projects_Resource(
 304          $this,
 305          $this->serviceName,
 306          'projects',
 307          array(
 308            'methods' => array(
 309              'list' => array(
 310                'path' => 'projects',
 311                'httpMethod' => 'GET',
 312                'parameters' => array(
 313                  'pageToken' => array(
 314                    'location' => 'query',
 315                    'type' => 'string',
 316                  ),
 317                  'maxResults' => array(
 318                    'location' => 'query',
 319                    'type' => 'integer',
 320                  ),
 321                ),
 322              ),
 323            )
 324          )
 325      );
 326      $this->tabledata = new Google_Service_Bigquery_Tabledata_Resource(
 327          $this,
 328          $this->serviceName,
 329          'tabledata',
 330          array(
 331            'methods' => array(
 332              'insertAll' => array(
 333                'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll',
 334                'httpMethod' => 'POST',
 335                'parameters' => array(
 336                  'projectId' => array(
 337                    'location' => 'path',
 338                    'type' => 'string',
 339                    'required' => true,
 340                  ),
 341                  'datasetId' => array(
 342                    'location' => 'path',
 343                    'type' => 'string',
 344                    'required' => true,
 345                  ),
 346                  'tableId' => array(
 347                    'location' => 'path',
 348                    'type' => 'string',
 349                    'required' => true,
 350                  ),
 351                ),
 352              ),'list' => array(
 353                'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data',
 354                'httpMethod' => 'GET',
 355                'parameters' => array(
 356                  'projectId' => array(
 357                    'location' => 'path',
 358                    'type' => 'string',
 359                    'required' => true,
 360                  ),
 361                  'datasetId' => array(
 362                    'location' => 'path',
 363                    'type' => 'string',
 364                    'required' => true,
 365                  ),
 366                  'tableId' => array(
 367                    'location' => 'path',
 368                    'type' => 'string',
 369                    'required' => true,
 370                  ),
 371                  'maxResults' => array(
 372                    'location' => 'query',
 373                    'type' => 'integer',
 374                  ),
 375                  'pageToken' => array(
 376                    'location' => 'query',
 377                    'type' => 'string',
 378                  ),
 379                  'startIndex' => array(
 380                    'location' => 'query',
 381                    'type' => 'string',
 382                  ),
 383                ),
 384              ),
 385            )
 386          )
 387      );
 388      $this->tables = new Google_Service_Bigquery_Tables_Resource(
 389          $this,
 390          $this->serviceName,
 391          'tables',
 392          array(
 393            'methods' => array(
 394              'delete' => array(
 395                'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
 396                'httpMethod' => 'DELETE',
 397                'parameters' => array(
 398                  'projectId' => array(
 399                    'location' => 'path',
 400                    'type' => 'string',
 401                    'required' => true,
 402                  ),
 403                  'datasetId' => array(
 404                    'location' => 'path',
 405                    'type' => 'string',
 406                    'required' => true,
 407                  ),
 408                  'tableId' => array(
 409                    'location' => 'path',
 410                    'type' => 'string',
 411                    'required' => true,
 412                  ),
 413                ),
 414              ),'get' => array(
 415                'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
 416                'httpMethod' => 'GET',
 417                'parameters' => array(
 418                  'projectId' => array(
 419                    'location' => 'path',
 420                    'type' => 'string',
 421                    'required' => true,
 422                  ),
 423                  'datasetId' => array(
 424                    'location' => 'path',
 425                    'type' => 'string',
 426                    'required' => true,
 427                  ),
 428                  'tableId' => array(
 429                    'location' => 'path',
 430                    'type' => 'string',
 431                    'required' => true,
 432                  ),
 433                ),
 434              ),'insert' => array(
 435                'path' => 'projects/{projectId}/datasets/{datasetId}/tables',
 436                'httpMethod' => 'POST',
 437                'parameters' => array(
 438                  'projectId' => array(
 439                    'location' => 'path',
 440                    'type' => 'string',
 441                    'required' => true,
 442                  ),
 443                  'datasetId' => array(
 444                    'location' => 'path',
 445                    'type' => 'string',
 446                    'required' => true,
 447                  ),
 448                ),
 449              ),'list' => array(
 450                'path' => 'projects/{projectId}/datasets/{datasetId}/tables',
 451                'httpMethod' => 'GET',
 452                'parameters' => array(
 453                  'projectId' => array(
 454                    'location' => 'path',
 455                    'type' => 'string',
 456                    'required' => true,
 457                  ),
 458                  'datasetId' => array(
 459                    'location' => 'path',
 460                    'type' => 'string',
 461                    'required' => true,
 462                  ),
 463                  'pageToken' => array(
 464                    'location' => 'query',
 465                    'type' => 'string',
 466                  ),
 467                  'maxResults' => array(
 468                    'location' => 'query',
 469                    'type' => 'integer',
 470                  ),
 471                ),
 472              ),'patch' => array(
 473                'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
 474                'httpMethod' => 'PATCH',
 475                'parameters' => array(
 476                  'projectId' => array(
 477                    'location' => 'path',
 478                    'type' => 'string',
 479                    'required' => true,
 480                  ),
 481                  'datasetId' => array(
 482                    'location' => 'path',
 483                    'type' => 'string',
 484                    'required' => true,
 485                  ),
 486                  'tableId' => array(
 487                    'location' => 'path',
 488                    'type' => 'string',
 489                    'required' => true,
 490                  ),
 491                ),
 492              ),'update' => array(
 493                'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
 494                'httpMethod' => 'PUT',
 495                'parameters' => array(
 496                  'projectId' => array(
 497                    'location' => 'path',
 498                    'type' => 'string',
 499                    'required' => true,
 500                  ),
 501                  'datasetId' => array(
 502                    'location' => 'path',
 503                    'type' => 'string',
 504                    'required' => true,
 505                  ),
 506                  'tableId' => array(
 507                    'location' => 'path',
 508                    'type' => 'string',
 509                    'required' => true,
 510                  ),
 511                ),
 512              ),
 513            )
 514          )
 515      );
 516    }
 517  }
 518  
 519  
 520  /**
 521   * The "datasets" collection of methods.
 522   * Typical usage is:
 523   *  <code>
 524   *   $bigqueryService = new Google_Service_Bigquery(...);
 525   *   $datasets = $bigqueryService->datasets;
 526   *  </code>
 527   */
 528  class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource
 529  {
 530  
 531    /**
 532     * Deletes the dataset specified by the datasetId value. Before you can delete a
 533     * dataset, you must delete all its tables, either manually or by specifying
 534     * deleteContents. Immediately after deletion, you can create another dataset
 535     * with the same name. (datasets.delete)
 536     *
 537     * @param string $projectId Project ID of the dataset being deleted
 538     * @param string $datasetId Dataset ID of dataset being deleted
 539     * @param array $optParams Optional parameters.
 540     *
 541     * @opt_param bool deleteContents If True, delete all the tables in the dataset.
 542     * If False and the dataset contains tables, the request will fail. Default is
 543     * False
 544     */
 545    public function delete($projectId, $datasetId, $optParams = array())
 546    {
 547      $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
 548      $params = array_merge($params, $optParams);
 549      return $this->call('delete', array($params));
 550    }
 551  
 552    /**
 553     * Returns the dataset specified by datasetID. (datasets.get)
 554     *
 555     * @param string $projectId Project ID of the requested dataset
 556     * @param string $datasetId Dataset ID of the requested dataset
 557     * @param array $optParams Optional parameters.
 558     * @return Google_Service_Bigquery_Dataset
 559     */
 560    public function get($projectId, $datasetId, $optParams = array())
 561    {
 562      $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
 563      $params = array_merge($params, $optParams);
 564      return $this->call('get', array($params), "Google_Service_Bigquery_Dataset");
 565    }
 566  
 567    /**
 568     * Creates a new empty dataset. (datasets.insert)
 569     *
 570     * @param string $projectId Project ID of the new dataset
 571     * @param Google_Dataset $postBody
 572     * @param array $optParams Optional parameters.
 573     * @return Google_Service_Bigquery_Dataset
 574     */
 575    public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
 576    {
 577      $params = array('projectId' => $projectId, 'postBody' => $postBody);
 578      $params = array_merge($params, $optParams);
 579      return $this->call('insert', array($params), "Google_Service_Bigquery_Dataset");
 580    }
 581  
 582    /**
 583     * Lists all datasets in the specified project to which you have been granted
 584     * the READER dataset role. (datasets.listDatasets)
 585     *
 586     * @param string $projectId Project ID of the datasets to be listed
 587     * @param array $optParams Optional parameters.
 588     *
 589     * @opt_param string pageToken Page token, returned by a previous call, to
 590     * request the next page of results
 591     * @opt_param bool all Whether to list all datasets, including hidden ones
 592     * @opt_param string maxResults The maximum number of results to return
 593     * @return Google_Service_Bigquery_DatasetList
 594     */
 595    public function listDatasets($projectId, $optParams = array())
 596    {
 597      $params = array('projectId' => $projectId);
 598      $params = array_merge($params, $optParams);
 599      return $this->call('list', array($params), "Google_Service_Bigquery_DatasetList");
 600    }
 601  
 602    /**
 603     * Updates information in an existing dataset. The update method replaces the
 604     * entire dataset resource, whereas the patch method only replaces fields that
 605     * are provided in the submitted dataset resource. This method supports patch
 606     * semantics. (datasets.patch)
 607     *
 608     * @param string $projectId Project ID of the dataset being updated
 609     * @param string $datasetId Dataset ID of the dataset being updated
 610     * @param Google_Dataset $postBody
 611     * @param array $optParams Optional parameters.
 612     * @return Google_Service_Bigquery_Dataset
 613     */
 614    public function patch($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
 615    {
 616      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
 617      $params = array_merge($params, $optParams);
 618      return $this->call('patch', array($params), "Google_Service_Bigquery_Dataset");
 619    }
 620  
 621    /**
 622     * Updates information in an existing dataset. The update method replaces the
 623     * entire dataset resource, whereas the patch method only replaces fields that
 624     * are provided in the submitted dataset resource. (datasets.update)
 625     *
 626     * @param string $projectId Project ID of the dataset being updated
 627     * @param string $datasetId Dataset ID of the dataset being updated
 628     * @param Google_Dataset $postBody
 629     * @param array $optParams Optional parameters.
 630     * @return Google_Service_Bigquery_Dataset
 631     */
 632    public function update($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
 633    {
 634      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
 635      $params = array_merge($params, $optParams);
 636      return $this->call('update', array($params), "Google_Service_Bigquery_Dataset");
 637    }
 638  }
 639  
 640  /**
 641   * The "jobs" collection of methods.
 642   * Typical usage is:
 643   *  <code>
 644   *   $bigqueryService = new Google_Service_Bigquery(...);
 645   *   $jobs = $bigqueryService->jobs;
 646   *  </code>
 647   */
 648  class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource
 649  {
 650  
 651    /**
 652     * Requests that a job be cancelled. This call will return immediately, and the
 653     * client will need to poll for the job status to see if the cancel completed
 654     * successfully. Cancelled jobs may still incur costs. (jobs.cancel)
 655     *
 656     * @param string $projectId Project ID of the job to cancel
 657     * @param string $jobId Job ID of the job to cancel
 658     * @param array $optParams Optional parameters.
 659     * @return Google_Service_Bigquery_JobCancelResponse
 660     */
 661    public function cancel($projectId, $jobId, $optParams = array())
 662    {
 663      $params = array('projectId' => $projectId, 'jobId' => $jobId);
 664      $params = array_merge($params, $optParams);
 665      return $this->call('cancel', array($params), "Google_Service_Bigquery_JobCancelResponse");
 666    }
 667  
 668    /**
 669     * Returns information about a specific job. Job information is available for a
 670     * six month period after creation. Requires that you're the person who ran the
 671     * job, or have the Is Owner project role. (jobs.get)
 672     *
 673     * @param string $projectId Project ID of the requested job
 674     * @param string $jobId Job ID of the requested job
 675     * @param array $optParams Optional parameters.
 676     * @return Google_Service_Bigquery_Job
 677     */
 678    public function get($projectId, $jobId, $optParams = array())
 679    {
 680      $params = array('projectId' => $projectId, 'jobId' => $jobId);
 681      $params = array_merge($params, $optParams);
 682      return $this->call('get', array($params), "Google_Service_Bigquery_Job");
 683    }
 684  
 685    /**
 686     * Retrieves the results of a query job. (jobs.getQueryResults)
 687     *
 688     * @param string $projectId Project ID of the query job
 689     * @param string $jobId Job ID of the query job
 690     * @param array $optParams Optional parameters.
 691     *
 692     * @opt_param string timeoutMs How long to wait for the query to complete, in
 693     * milliseconds, before returning. Default is 10 seconds. If the timeout passes
 694     * before the job completes, the 'jobComplete' field in the response will be
 695     * false
 696     * @opt_param string maxResults Maximum number of results to read
 697     * @opt_param string pageToken Page token, returned by a previous call, to
 698     * request the next page of results
 699     * @opt_param string startIndex Zero-based index of the starting row
 700     * @return Google_Service_Bigquery_GetQueryResultsResponse
 701     */
 702    public function getQueryResults($projectId, $jobId, $optParams = array())
 703    {
 704      $params = array('projectId' => $projectId, 'jobId' => $jobId);
 705      $params = array_merge($params, $optParams);
 706      return $this->call('getQueryResults', array($params), "Google_Service_Bigquery_GetQueryResultsResponse");
 707    }
 708  
 709    /**
 710     * Starts a new asynchronous job. Requires the Can View project role.
 711     * (jobs.insert)
 712     *
 713     * @param string $projectId Project ID of the project that will be billed for
 714     * the job
 715     * @param Google_Job $postBody
 716     * @param array $optParams Optional parameters.
 717     * @return Google_Service_Bigquery_Job
 718     */
 719    public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optParams = array())
 720    {
 721      $params = array('projectId' => $projectId, 'postBody' => $postBody);
 722      $params = array_merge($params, $optParams);
 723      return $this->call('insert', array($params), "Google_Service_Bigquery_Job");
 724    }
 725  
 726    /**
 727     * Lists all jobs that you started in the specified project. Job information is
 728     * available for a six month period after creation. The job list is sorted in
 729     * reverse chronological order, by job creation time. Requires the Can View
 730     * project role, or the Is Owner project role if you set the allUsers property.
 731     * (jobs.listJobs)
 732     *
 733     * @param string $projectId Project ID of the jobs to list
 734     * @param array $optParams Optional parameters.
 735     *
 736     * @opt_param string projection Restrict information returned to a set of
 737     * selected fields
 738     * @opt_param string stateFilter Filter for job state
 739     * @opt_param bool allUsers Whether to display jobs owned by all users in the
 740     * project. Default false
 741     * @opt_param string maxResults Maximum number of results to return
 742     * @opt_param string pageToken Page token, returned by a previous call, to
 743     * request the next page of results
 744     * @return Google_Service_Bigquery_JobList
 745     */
 746    public function listJobs($projectId, $optParams = array())
 747    {
 748      $params = array('projectId' => $projectId);
 749      $params = array_merge($params, $optParams);
 750      return $this->call('list', array($params), "Google_Service_Bigquery_JobList");
 751    }
 752  
 753    /**
 754     * Runs a BigQuery SQL query synchronously and returns query results if the
 755     * query completes within a specified timeout. (jobs.query)
 756     *
 757     * @param string $projectId Project ID of the project billed for the query
 758     * @param Google_QueryRequest $postBody
 759     * @param array $optParams Optional parameters.
 760     * @return Google_Service_Bigquery_QueryResponse
 761     */
 762    public function query($projectId, Google_Service_Bigquery_QueryRequest $postBody, $optParams = array())
 763    {
 764      $params = array('projectId' => $projectId, 'postBody' => $postBody);
 765      $params = array_merge($params, $optParams);
 766      return $this->call('query', array($params), "Google_Service_Bigquery_QueryResponse");
 767    }
 768  }
 769  
 770  /**
 771   * The "projects" collection of methods.
 772   * Typical usage is:
 773   *  <code>
 774   *   $bigqueryService = new Google_Service_Bigquery(...);
 775   *   $projects = $bigqueryService->projects;
 776   *  </code>
 777   */
 778  class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource
 779  {
 780  
 781    /**
 782     * Lists all projects to which you have been granted any project role.
 783     * (projects.listProjects)
 784     *
 785     * @param array $optParams Optional parameters.
 786     *
 787     * @opt_param string pageToken Page token, returned by a previous call, to
 788     * request the next page of results
 789     * @opt_param string maxResults Maximum number of results to return
 790     * @return Google_Service_Bigquery_ProjectList
 791     */
 792    public function listProjects($optParams = array())
 793    {
 794      $params = array();
 795      $params = array_merge($params, $optParams);
 796      return $this->call('list', array($params), "Google_Service_Bigquery_ProjectList");
 797    }
 798  }
 799  
 800  /**
 801   * The "tabledata" collection of methods.
 802   * Typical usage is:
 803   *  <code>
 804   *   $bigqueryService = new Google_Service_Bigquery(...);
 805   *   $tabledata = $bigqueryService->tabledata;
 806   *  </code>
 807   */
 808  class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource
 809  {
 810  
 811    /**
 812     * Streams data into BigQuery one record at a time without needing to run a load
 813     * job. Requires the WRITER dataset role. (tabledata.insertAll)
 814     *
 815     * @param string $projectId Project ID of the destination table.
 816     * @param string $datasetId Dataset ID of the destination table.
 817     * @param string $tableId Table ID of the destination table.
 818     * @param Google_TableDataInsertAllRequest $postBody
 819     * @param array $optParams Optional parameters.
 820     * @return Google_Service_Bigquery_TableDataInsertAllResponse
 821     */
 822    public function insertAll($projectId, $datasetId, $tableId, Google_Service_Bigquery_TableDataInsertAllRequest $postBody, $optParams = array())
 823    {
 824      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
 825      $params = array_merge($params, $optParams);
 826      return $this->call('insertAll', array($params), "Google_Service_Bigquery_TableDataInsertAllResponse");
 827    }
 828  
 829    /**
 830     * Retrieves table data from a specified set of rows. Requires the READER
 831     * dataset role. (tabledata.listTabledata)
 832     *
 833     * @param string $projectId Project ID of the table to read
 834     * @param string $datasetId Dataset ID of the table to read
 835     * @param string $tableId Table ID of the table to read
 836     * @param array $optParams Optional parameters.
 837     *
 838     * @opt_param string maxResults Maximum number of results to return
 839     * @opt_param string pageToken Page token, returned by a previous call,
 840     * identifying the result set
 841     * @opt_param string startIndex Zero-based index of the starting row to read
 842     * @return Google_Service_Bigquery_TableDataList
 843     */
 844    public function listTabledata($projectId, $datasetId, $tableId, $optParams = array())
 845    {
 846      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
 847      $params = array_merge($params, $optParams);
 848      return $this->call('list', array($params), "Google_Service_Bigquery_TableDataList");
 849    }
 850  }
 851  
 852  /**
 853   * The "tables" collection of methods.
 854   * Typical usage is:
 855   *  <code>
 856   *   $bigqueryService = new Google_Service_Bigquery(...);
 857   *   $tables = $bigqueryService->tables;
 858   *  </code>
 859   */
 860  class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource
 861  {
 862  
 863    /**
 864     * Deletes the table specified by tableId from the dataset. If the table
 865     * contains data, all the data will be deleted. (tables.delete)
 866     *
 867     * @param string $projectId Project ID of the table to delete
 868     * @param string $datasetId Dataset ID of the table to delete
 869     * @param string $tableId Table ID of the table to delete
 870     * @param array $optParams Optional parameters.
 871     */
 872    public function delete($projectId, $datasetId, $tableId, $optParams = array())
 873    {
 874      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
 875      $params = array_merge($params, $optParams);
 876      return $this->call('delete', array($params));
 877    }
 878  
 879    /**
 880     * Gets the specified table resource by table ID. This method does not return
 881     * the data in the table, it only returns the table resource, which describes
 882     * the structure of this table. (tables.get)
 883     *
 884     * @param string $projectId Project ID of the requested table
 885     * @param string $datasetId Dataset ID of the requested table
 886     * @param string $tableId Table ID of the requested table
 887     * @param array $optParams Optional parameters.
 888     * @return Google_Service_Bigquery_Table
 889     */
 890    public function get($projectId, $datasetId, $tableId, $optParams = array())
 891    {
 892      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
 893      $params = array_merge($params, $optParams);
 894      return $this->call('get', array($params), "Google_Service_Bigquery_Table");
 895    }
 896  
 897    /**
 898     * Creates a new, empty table in the dataset. (tables.insert)
 899     *
 900     * @param string $projectId Project ID of the new table
 901     * @param string $datasetId Dataset ID of the new table
 902     * @param Google_Table $postBody
 903     * @param array $optParams Optional parameters.
 904     * @return Google_Service_Bigquery_Table
 905     */
 906    public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $postBody, $optParams = array())
 907    {
 908      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
 909      $params = array_merge($params, $optParams);
 910      return $this->call('insert', array($params), "Google_Service_Bigquery_Table");
 911    }
 912  
 913    /**
 914     * Lists all tables in the specified dataset. Requires the READER dataset role.
 915     * (tables.listTables)
 916     *
 917     * @param string $projectId Project ID of the tables to list
 918     * @param string $datasetId Dataset ID of the tables to list
 919     * @param array $optParams Optional parameters.
 920     *
 921     * @opt_param string pageToken Page token, returned by a previous call, to
 922     * request the next page of results
 923     * @opt_param string maxResults Maximum number of results to return
 924     * @return Google_Service_Bigquery_TableList
 925     */
 926    public function listTables($projectId, $datasetId, $optParams = array())
 927    {
 928      $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
 929      $params = array_merge($params, $optParams);
 930      return $this->call('list', array($params), "Google_Service_Bigquery_TableList");
 931    }
 932  
 933    /**
 934     * Updates information in an existing table. The update method replaces the
 935     * entire table resource, whereas the patch method only replaces fields that are
 936     * provided in the submitted table resource. This method supports patch
 937     * semantics. (tables.patch)
 938     *
 939     * @param string $projectId Project ID of the table to update
 940     * @param string $datasetId Dataset ID of the table to update
 941     * @param string $tableId Table ID of the table to update
 942     * @param Google_Table $postBody
 943     * @param array $optParams Optional parameters.
 944     * @return Google_Service_Bigquery_Table
 945     */
 946    public function patch($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array())
 947    {
 948      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
 949      $params = array_merge($params, $optParams);
 950      return $this->call('patch', array($params), "Google_Service_Bigquery_Table");
 951    }
 952  
 953    /**
 954     * Updates information in an existing table. The update method replaces the
 955     * entire table resource, whereas the patch method only replaces fields that are
 956     * provided in the submitted table resource. (tables.update)
 957     *
 958     * @param string $projectId Project ID of the table to update
 959     * @param string $datasetId Dataset ID of the table to update
 960     * @param string $tableId Table ID of the table to update
 961     * @param Google_Table $postBody
 962     * @param array $optParams Optional parameters.
 963     * @return Google_Service_Bigquery_Table
 964     */
 965    public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array())
 966    {
 967      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
 968      $params = array_merge($params, $optParams);
 969      return $this->call('update', array($params), "Google_Service_Bigquery_Table");
 970    }
 971  }
 972  
 973  
 974  
 975  
 976  class Google_Service_Bigquery_CsvOptions extends Google_Model
 977  {
 978    protected $internal_gapi_mappings = array(
 979    );
 980    public $allowJaggedRows;
 981    public $allowQuotedNewlines;
 982    public $encoding;
 983    public $fieldDelimiter;
 984    public $quote;
 985    public $skipLeadingRows;
 986  
 987  
 988    public function setAllowJaggedRows($allowJaggedRows)
 989    {
 990      $this->allowJaggedRows = $allowJaggedRows;
 991    }
 992    public function getAllowJaggedRows()
 993    {
 994      return $this->allowJaggedRows;
 995    }
 996    public function setAllowQuotedNewlines($allowQuotedNewlines)
 997    {
 998      $this->allowQuotedNewlines = $allowQuotedNewlines;
 999    }
1000    public function getAllowQuotedNewlines()
1001    {
1002      return $this->allowQuotedNewlines;
1003    }
1004    public function setEncoding($encoding)
1005    {
1006      $this->encoding = $encoding;
1007    }
1008    public function getEncoding()
1009    {
1010      return $this->encoding;
1011    }
1012    public function setFieldDelimiter($fieldDelimiter)
1013    {
1014      $this->fieldDelimiter = $fieldDelimiter;
1015    }
1016    public function getFieldDelimiter()
1017    {
1018      return $this->fieldDelimiter;
1019    }
1020    public function setQuote($quote)
1021    {
1022      $this->quote = $quote;
1023    }
1024    public function getQuote()
1025    {
1026      return $this->quote;
1027    }
1028    public function setSkipLeadingRows($skipLeadingRows)
1029    {
1030      $this->skipLeadingRows = $skipLeadingRows;
1031    }
1032    public function getSkipLeadingRows()
1033    {
1034      return $this->skipLeadingRows;
1035    }
1036  }
1037  
1038  class Google_Service_Bigquery_Dataset extends Google_Collection
1039  {
1040    protected $collection_key = 'access';
1041    protected $internal_gapi_mappings = array(
1042    );
1043    protected $accessType = 'Google_Service_Bigquery_DatasetAccess';
1044    protected $accessDataType = 'array';
1045    public $creationTime;
1046    protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference';
1047    protected $datasetReferenceDataType = '';
1048    public $defaultTableExpirationMs;
1049    public $description;
1050    public $etag;
1051    public $friendlyName;
1052    public $id;
1053    public $kind;
1054    public $lastModifiedTime;
1055    public $location;
1056    public $selfLink;
1057  
1058  
1059    public function setAccess($access)
1060    {
1061      $this->access = $access;
1062    }
1063    public function getAccess()
1064    {
1065      return $this->access;
1066    }
1067    public function setCreationTime($creationTime)
1068    {
1069      $this->creationTime = $creationTime;
1070    }
1071    public function getCreationTime()
1072    {
1073      return $this->creationTime;
1074    }
1075    public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference)
1076    {
1077      $this->datasetReference = $datasetReference;
1078    }
1079    public function getDatasetReference()
1080    {
1081      return $this->datasetReference;
1082    }
1083    public function setDefaultTableExpirationMs($defaultTableExpirationMs)
1084    {
1085      $this->defaultTableExpirationMs = $defaultTableExpirationMs;
1086    }
1087    public function getDefaultTableExpirationMs()
1088    {
1089      return $this->defaultTableExpirationMs;
1090    }
1091    public function setDescription($description)
1092    {
1093      $this->description = $description;
1094    }
1095    public function getDescription()
1096    {
1097      return $this->description;
1098    }
1099    public function setEtag($etag)
1100    {
1101      $this->etag = $etag;
1102    }
1103    public function getEtag()
1104    {
1105      return $this->etag;
1106    }
1107    public function setFriendlyName($friendlyName)
1108    {
1109      $this->friendlyName = $friendlyName;
1110    }
1111    public function getFriendlyName()
1112    {
1113      return $this->friendlyName;
1114    }
1115    public function setId($id)
1116    {
1117      $this->id = $id;
1118    }
1119    public function getId()
1120    {
1121      return $this->id;
1122    }
1123    public function setKind($kind)
1124    {
1125      $this->kind = $kind;
1126    }
1127    public function getKind()
1128    {
1129      return $this->kind;
1130    }
1131    public function setLastModifiedTime($lastModifiedTime)
1132    {
1133      $this->lastModifiedTime = $lastModifiedTime;
1134    }
1135    public function getLastModifiedTime()
1136    {
1137      return $this->lastModifiedTime;
1138    }
1139    public function setLocation($location)
1140    {
1141      $this->location = $location;
1142    }
1143    public function getLocation()
1144    {
1145      return $this->location;
1146    }
1147    public function setSelfLink($selfLink)
1148    {
1149      $this->selfLink = $selfLink;
1150    }
1151    public function getSelfLink()
1152    {
1153      return $this->selfLink;
1154    }
1155  }
1156  
1157  class Google_Service_Bigquery_DatasetAccess extends Google_Model
1158  {
1159    protected $internal_gapi_mappings = array(
1160    );
1161    public $domain;
1162    public $groupByEmail;
1163    public $role;
1164    public $specialGroup;
1165    public $userByEmail;
1166    protected $viewType = 'Google_Service_Bigquery_TableReference';
1167    protected $viewDataType = '';
1168  
1169  
1170    public function setDomain($domain)
1171    {
1172      $this->domain = $domain;
1173    }
1174    public function getDomain()
1175    {
1176      return $this->domain;
1177    }
1178    public function setGroupByEmail($groupByEmail)
1179    {
1180      $this->groupByEmail = $groupByEmail;
1181    }
1182    public function getGroupByEmail()
1183    {
1184      return $this->groupByEmail;
1185    }
1186    public function setRole($role)
1187    {
1188      $this->role = $role;
1189    }
1190    public function getRole()
1191    {
1192      return $this->role;
1193    }
1194    public function setSpecialGroup($specialGroup)
1195    {
1196      $this->specialGroup = $specialGroup;
1197    }
1198    public function getSpecialGroup()
1199    {
1200      return $this->specialGroup;
1201    }
1202    public function setUserByEmail($userByEmail)
1203    {
1204      $this->userByEmail = $userByEmail;
1205    }
1206    public function getUserByEmail()
1207    {
1208      return $this->userByEmail;
1209    }
1210    public function setView(Google_Service_Bigquery_TableReference $view)
1211    {
1212      $this->view = $view;
1213    }
1214    public function getView()
1215    {
1216      return $this->view;
1217    }
1218  }
1219  
1220  class Google_Service_Bigquery_DatasetList extends Google_Collection
1221  {
1222    protected $collection_key = 'datasets';
1223    protected $internal_gapi_mappings = array(
1224    );
1225    protected $datasetsType = 'Google_Service_Bigquery_DatasetListDatasets';
1226    protected $datasetsDataType = 'array';
1227    public $etag;
1228    public $kind;
1229    public $nextPageToken;
1230  
1231  
1232    public function setDatasets($datasets)
1233    {
1234      $this->datasets = $datasets;
1235    }
1236    public function getDatasets()
1237    {
1238      return $this->datasets;
1239    }
1240    public function setEtag($etag)
1241    {
1242      $this->etag = $etag;
1243    }
1244    public function getEtag()
1245    {
1246      return $this->etag;
1247    }
1248    public function setKind($kind)
1249    {
1250      $this->kind = $kind;
1251    }
1252    public function getKind()
1253    {
1254      return $this->kind;
1255    }
1256    public function setNextPageToken($nextPageToken)
1257    {
1258      $this->nextPageToken = $nextPageToken;
1259    }
1260    public function getNextPageToken()
1261    {
1262      return $this->nextPageToken;
1263    }
1264  }
1265  
1266  class Google_Service_Bigquery_DatasetListDatasets extends Google_Model
1267  {
1268    protected $internal_gapi_mappings = array(
1269    );
1270    protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference';
1271    protected $datasetReferenceDataType = '';
1272    public $friendlyName;
1273    public $id;
1274    public $kind;
1275  
1276  
1277    public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference)
1278    {
1279      $this->datasetReference = $datasetReference;
1280    }
1281    public function getDatasetReference()
1282    {
1283      return $this->datasetReference;
1284    }
1285    public function setFriendlyName($friendlyName)
1286    {
1287      $this->friendlyName = $friendlyName;
1288    }
1289    public function getFriendlyName()
1290    {
1291      return $this->friendlyName;
1292    }
1293    public function setId($id)
1294    {
1295      $this->id = $id;
1296    }
1297    public function getId()
1298    {
1299      return $this->id;
1300    }
1301    public function setKind($kind)
1302    {
1303      $this->kind = $kind;
1304    }
1305    public function getKind()
1306    {
1307      return $this->kind;
1308    }
1309  }
1310  
1311  class Google_Service_Bigquery_DatasetReference extends Google_Model
1312  {
1313    protected $internal_gapi_mappings = array(
1314    );
1315    public $datasetId;
1316    public $projectId;
1317  
1318  
1319    public function setDatasetId($datasetId)
1320    {
1321      $this->datasetId = $datasetId;
1322    }
1323    public function getDatasetId()
1324    {
1325      return $this->datasetId;
1326    }
1327    public function setProjectId($projectId)
1328    {
1329      $this->projectId = $projectId;
1330    }
1331    public function getProjectId()
1332    {
1333      return $this->projectId;
1334    }
1335  }
1336  
1337  class Google_Service_Bigquery_ErrorProto extends Google_Model
1338  {
1339    protected $internal_gapi_mappings = array(
1340    );
1341    public $debugInfo;
1342    public $location;
1343    public $message;
1344    public $reason;
1345  
1346  
1347    public function setDebugInfo($debugInfo)
1348    {
1349      $this->debugInfo = $debugInfo;
1350    }
1351    public function getDebugInfo()
1352    {
1353      return $this->debugInfo;
1354    }
1355    public function setLocation($location)
1356    {
1357      $this->location = $location;
1358    }
1359    public function getLocation()
1360    {
1361      return $this->location;
1362    }
1363    public function setMessage($message)
1364    {
1365      $this->message = $message;
1366    }
1367    public function getMessage()
1368    {
1369      return $this->message;
1370    }
1371    public function setReason($reason)
1372    {
1373      $this->reason = $reason;
1374    }
1375    public function getReason()
1376    {
1377      return $this->reason;
1378    }
1379  }
1380  
1381  class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collection
1382  {
1383    protected $collection_key = 'sourceUris';
1384    protected $internal_gapi_mappings = array(
1385    );
1386    public $compression;
1387    protected $csvOptionsType = 'Google_Service_Bigquery_CsvOptions';
1388    protected $csvOptionsDataType = '';
1389    public $ignoreUnknownValues;
1390    public $maxBadRecords;
1391    protected $schemaType = 'Google_Service_Bigquery_TableSchema';
1392    protected $schemaDataType = '';
1393    public $sourceFormat;
1394    public $sourceUris;
1395  
1396  
1397    public function setCompression($compression)
1398    {
1399      $this->compression = $compression;
1400    }
1401    public function getCompression()
1402    {
1403      return $this->compression;
1404    }
1405    public function setCsvOptions(Google_Service_Bigquery_CsvOptions $csvOptions)
1406    {
1407      $this->csvOptions = $csvOptions;
1408    }
1409    public function getCsvOptions()
1410    {
1411      return $this->csvOptions;
1412    }
1413    public function setIgnoreUnknownValues($ignoreUnknownValues)
1414    {
1415      $this->ignoreUnknownValues = $ignoreUnknownValues;
1416    }
1417    public function getIgnoreUnknownValues()
1418    {
1419      return $this->ignoreUnknownValues;
1420    }
1421    public function setMaxBadRecords($maxBadRecords)
1422    {
1423      $this->maxBadRecords = $maxBadRecords;
1424    }
1425    public function getMaxBadRecords()
1426    {
1427      return $this->maxBadRecords;
1428    }
1429    public function setSchema(Google_Service_Bigquery_TableSchema $schema)
1430    {
1431      $this->schema = $schema;
1432    }
1433    public function getSchema()
1434    {
1435      return $this->schema;
1436    }
1437    public function setSourceFormat($sourceFormat)
1438    {
1439      $this->sourceFormat = $sourceFormat;
1440    }
1441    public function getSourceFormat()
1442    {
1443      return $this->sourceFormat;
1444    }
1445    public function setSourceUris($sourceUris)
1446    {
1447      $this->sourceUris = $sourceUris;
1448    }
1449    public function getSourceUris()
1450    {
1451      return $this->sourceUris;
1452    }
1453  }
1454  
1455  class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection
1456  {
1457    protected $collection_key = 'rows';
1458    protected $internal_gapi_mappings = array(
1459    );
1460    public $cacheHit;
1461    protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
1462    protected $errorsDataType = 'array';
1463    public $etag;
1464    public $jobComplete;
1465    protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
1466    protected $jobReferenceDataType = '';
1467    public $kind;
1468    public $pageToken;
1469    protected $rowsType = 'Google_Service_Bigquery_TableRow';
1470    protected $rowsDataType = 'array';
1471    protected $schemaType = 'Google_Service_Bigquery_TableSchema';
1472    protected $schemaDataType = '';
1473    public $totalBytesProcessed;
1474    public $totalRows;
1475  
1476  
1477    public function setCacheHit($cacheHit)
1478    {
1479      $this->cacheHit = $cacheHit;
1480    }
1481    public function getCacheHit()
1482    {
1483      return $this->cacheHit;
1484    }
1485    public function setErrors($errors)
1486    {
1487      $this->errors = $errors;
1488    }
1489    public function getErrors()
1490    {
1491      return $this->errors;
1492    }
1493    public function setEtag($etag)
1494    {
1495      $this->etag = $etag;
1496    }
1497    public function getEtag()
1498    {
1499      return $this->etag;
1500    }
1501    public function setJobComplete($jobComplete)
1502    {
1503      $this->jobComplete = $jobComplete;
1504    }
1505    public function getJobComplete()
1506    {
1507      return $this->jobComplete;
1508    }
1509    public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
1510    {
1511      $this->jobReference = $jobReference;
1512    }
1513    public function getJobReference()
1514    {
1515      return $this->jobReference;
1516    }
1517    public function setKind($kind)
1518    {
1519      $this->kind = $kind;
1520    }
1521    public function getKind()
1522    {
1523      return $this->kind;
1524    }
1525    public function setPageToken($pageToken)
1526    {
1527      $this->pageToken = $pageToken;
1528    }
1529    public function getPageToken()
1530    {
1531      return $this->pageToken;
1532    }
1533    public function setRows($rows)
1534    {
1535      $this->rows = $rows;
1536    }
1537    public function getRows()
1538    {
1539      return $this->rows;
1540    }
1541    public function setSchema(Google_Service_Bigquery_TableSchema $schema)
1542    {
1543      $this->schema = $schema;
1544    }
1545    public function getSchema()
1546    {
1547      return $this->schema;
1548    }
1549    public function setTotalBytesProcessed($totalBytesProcessed)
1550    {
1551      $this->totalBytesProcessed = $totalBytesProcessed;
1552    }
1553    public function getTotalBytesProcessed()
1554    {
1555      return $this->totalBytesProcessed;
1556    }
1557    public function setTotalRows($totalRows)
1558    {
1559      $this->totalRows = $totalRows;
1560    }
1561    public function getTotalRows()
1562    {
1563      return $this->totalRows;
1564    }
1565  }
1566  
1567  class Google_Service_Bigquery_Job extends Google_Model
1568  {
1569    protected $internal_gapi_mappings = array(
1570          "userEmail" => "user_email",
1571    );
1572    protected $configurationType = 'Google_Service_Bigquery_JobConfiguration';
1573    protected $configurationDataType = '';
1574    public $etag;
1575    public $id;
1576    protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
1577    protected $jobReferenceDataType = '';
1578    public $kind;
1579    public $selfLink;
1580    protected $statisticsType = 'Google_Service_Bigquery_JobStatistics';
1581    protected $statisticsDataType = '';
1582    protected $statusType = 'Google_Service_Bigquery_JobStatus';
1583    protected $statusDataType = '';
1584    public $userEmail;
1585  
1586  
1587    public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration)
1588    {
1589      $this->configuration = $configuration;
1590    }
1591    public function getConfiguration()
1592    {
1593      return $this->configuration;
1594    }
1595    public function setEtag($etag)
1596    {
1597      $this->etag = $etag;
1598    }
1599    public function getEtag()
1600    {
1601      return $this->etag;
1602    }
1603    public function setId($id)
1604    {
1605      $this->id = $id;
1606    }
1607    public function getId()
1608    {
1609      return $this->id;
1610    }
1611    public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
1612    {
1613      $this->jobReference = $jobReference;
1614    }
1615    public function getJobReference()
1616    {
1617      return $this->jobReference;
1618    }
1619    public function setKind($kind)
1620    {
1621      $this->kind = $kind;
1622    }
1623    public function getKind()
1624    {
1625      return $this->kind;
1626    }
1627    public function setSelfLink($selfLink)
1628    {
1629      $this->selfLink = $selfLink;
1630    }
1631    public function getSelfLink()
1632    {
1633      return $this->selfLink;
1634    }
1635    public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics)
1636    {
1637      $this->statistics = $statistics;
1638    }
1639    public function getStatistics()
1640    {
1641      return $this->statistics;
1642    }
1643    public function setStatus(Google_Service_Bigquery_JobStatus $status)
1644    {
1645      $this->status = $status;
1646    }
1647    public function getStatus()
1648    {
1649      return $this->status;
1650    }
1651    public function setUserEmail($userEmail)
1652    {
1653      $this->userEmail = $userEmail;
1654    }
1655    public function getUserEmail()
1656    {
1657      return $this->userEmail;
1658    }
1659  }
1660  
1661  class Google_Service_Bigquery_JobCancelResponse extends Google_Model
1662  {
1663    protected $internal_gapi_mappings = array(
1664    );
1665    protected $jobType = 'Google_Service_Bigquery_Job';
1666    protected $jobDataType = '';
1667    public $kind;
1668  
1669  
1670    public function setJob(Google_Service_Bigquery_Job $job)
1671    {
1672      $this->job = $job;
1673    }
1674    public function getJob()
1675    {
1676      return $this->job;
1677    }
1678    public function setKind($kind)
1679    {
1680      $this->kind = $kind;
1681    }
1682    public function getKind()
1683    {
1684      return $this->kind;
1685    }
1686  }
1687  
1688  class Google_Service_Bigquery_JobConfiguration extends Google_Model
1689  {
1690    protected $internal_gapi_mappings = array(
1691    );
1692    protected $copyType = 'Google_Service_Bigquery_JobConfigurationTableCopy';
1693    protected $copyDataType = '';
1694    public $dryRun;
1695    protected $extractType = 'Google_Service_Bigquery_JobConfigurationExtract';
1696    protected $extractDataType = '';
1697    protected $linkType = 'Google_Service_Bigquery_JobConfigurationLink';
1698    protected $linkDataType = '';
1699    protected $loadType = 'Google_Service_Bigquery_JobConfigurationLoad';
1700    protected $loadDataType = '';
1701    protected $queryType = 'Google_Service_Bigquery_JobConfigurationQuery';
1702    protected $queryDataType = '';
1703  
1704  
1705    public function setCopy(Google_Service_Bigquery_JobConfigurationTableCopy $copy)
1706    {
1707      $this->copy = $copy;
1708    }
1709    public function getCopy()
1710    {
1711      return $this->copy;
1712    }
1713    public function setDryRun($dryRun)
1714    {
1715      $this->dryRun = $dryRun;
1716    }
1717    public function getDryRun()
1718    {
1719      return $this->dryRun;
1720    }
1721    public function setExtract(Google_Service_Bigquery_JobConfigurationExtract $extract)
1722    {
1723      $this->extract = $extract;
1724    }
1725    public function getExtract()
1726    {
1727      return $this->extract;
1728    }
1729    public function setLink(Google_Service_Bigquery_JobConfigurationLink $link)
1730    {
1731      $this->link = $link;
1732    }
1733    public function getLink()
1734    {
1735      return $this->link;
1736    }
1737    public function setLoad(Google_Service_Bigquery_JobConfigurationLoad $load)
1738    {
1739      $this->load = $load;
1740    }
1741    public function getLoad()
1742    {
1743      return $this->load;
1744    }
1745    public function setQuery(Google_Service_Bigquery_JobConfigurationQuery $query)
1746    {
1747      $this->query = $query;
1748    }
1749    public function getQuery()
1750    {
1751      return $this->query;
1752    }
1753  }
1754  
1755  class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection
1756  {
1757    protected $collection_key = 'destinationUris';
1758    protected $internal_gapi_mappings = array(
1759    );
1760    public $compression;
1761    public $destinationFormat;
1762    public $destinationUri;
1763    public $destinationUris;
1764    public $fieldDelimiter;
1765    public $printHeader;
1766    protected $sourceTableType = 'Google_Service_Bigquery_TableReference';
1767    protected $sourceTableDataType = '';
1768  
1769  
1770    public function setCompression($compression)
1771    {
1772      $this->compression = $compression;
1773    }
1774    public function getCompression()
1775    {
1776      return $this->compression;
1777    }
1778    public function setDestinationFormat($destinationFormat)
1779    {
1780      $this->destinationFormat = $destinationFormat;
1781    }
1782    public function getDestinationFormat()
1783    {
1784      return $this->destinationFormat;
1785    }
1786    public function setDestinationUri($destinationUri)
1787    {
1788      $this->destinationUri = $destinationUri;
1789    }
1790    public function getDestinationUri()
1791    {
1792      return $this->destinationUri;
1793    }
1794    public function setDestinationUris($destinationUris)
1795    {
1796      $this->destinationUris = $destinationUris;
1797    }
1798    public function getDestinationUris()
1799    {
1800      return $this->destinationUris;
1801    }
1802    public function setFieldDelimiter($fieldDelimiter)
1803    {
1804      $this->fieldDelimiter = $fieldDelimiter;
1805    }
1806    public function getFieldDelimiter()
1807    {
1808      return $this->fieldDelimiter;
1809    }
1810    public function setPrintHeader($printHeader)
1811    {
1812      $this->printHeader = $printHeader;
1813    }
1814    public function getPrintHeader()
1815    {
1816      return $this->printHeader;
1817    }
1818    public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable)
1819    {
1820      $this->sourceTable = $sourceTable;
1821    }
1822    public function getSourceTable()
1823    {
1824      return $this->sourceTable;
1825    }
1826  }
1827  
1828  class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection
1829  {
1830    protected $collection_key = 'sourceUri';
1831    protected $internal_gapi_mappings = array(
1832    );
1833    public $createDisposition;
1834    protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
1835    protected $destinationTableDataType = '';
1836    public $sourceUri;
1837    public $writeDisposition;
1838  
1839  
1840    public function setCreateDisposition($createDisposition)
1841    {
1842      $this->createDisposition = $createDisposition;
1843    }
1844    public function getCreateDisposition()
1845    {
1846      return $this->createDisposition;
1847    }
1848    public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
1849    {
1850      $this->destinationTable = $destinationTable;
1851    }
1852    public function getDestinationTable()
1853    {
1854      return $this->destinationTable;
1855    }
1856    public function setSourceUri($sourceUri)
1857    {
1858      $this->sourceUri = $sourceUri;
1859    }
1860    public function getSourceUri()
1861    {
1862      return $this->sourceUri;
1863    }
1864    public function setWriteDisposition($writeDisposition)
1865    {
1866      $this->writeDisposition = $writeDisposition;
1867    }
1868    public function getWriteDisposition()
1869    {
1870      return $this->writeDisposition;
1871    }
1872  }
1873  
1874  class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection
1875  {
1876    protected $collection_key = 'sourceUris';
1877    protected $internal_gapi_mappings = array(
1878    );
1879    public $allowJaggedRows;
1880    public $allowQuotedNewlines;
1881    public $createDisposition;
1882    protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
1883    protected $destinationTableDataType = '';
1884    public $encoding;
1885    public $fieldDelimiter;
1886    public $ignoreUnknownValues;
1887    public $maxBadRecords;
1888    public $projectionFields;
1889    public $quote;
1890    protected $schemaType = 'Google_Service_Bigquery_TableSchema';
1891    protected $schemaDataType = '';
1892    public $schemaInline;
1893    public $schemaInlineFormat;
1894    public $skipLeadingRows;
1895    public $sourceFormat;
1896    public $sourceUris;
1897    public $writeDisposition;
1898  
1899  
1900    public function setAllowJaggedRows($allowJaggedRows)
1901    {
1902      $this->allowJaggedRows = $allowJaggedRows;
1903    }
1904    public function getAllowJaggedRows()
1905    {
1906      return $this->allowJaggedRows;
1907    }
1908    public function setAllowQuotedNewlines($allowQuotedNewlines)
1909    {
1910      $this->allowQuotedNewlines = $allowQuotedNewlines;
1911    }
1912    public function getAllowQuotedNewlines()
1913    {
1914      return $this->allowQuotedNewlines;
1915    }
1916    public function setCreateDisposition($createDisposition)
1917    {
1918      $this->createDisposition = $createDisposition;
1919    }
1920    public function getCreateDisposition()
1921    {
1922      return $this->createDisposition;
1923    }
1924    public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
1925    {
1926      $this->destinationTable = $destinationTable;
1927    }
1928    public function getDestinationTable()
1929    {
1930      return $this->destinationTable;
1931    }
1932    public function setEncoding($encoding)
1933    {
1934      $this->encoding = $encoding;
1935    }
1936    public function getEncoding()
1937    {
1938      return $this->encoding;
1939    }
1940    public function setFieldDelimiter($fieldDelimiter)
1941    {
1942      $this->fieldDelimiter = $fieldDelimiter;
1943    }
1944    public function getFieldDelimiter()
1945    {
1946      return $this->fieldDelimiter;
1947    }
1948    public function setIgnoreUnknownValues($ignoreUnknownValues)
1949    {
1950      $this->ignoreUnknownValues = $ignoreUnknownValues;
1951    }
1952    public function getIgnoreUnknownValues()
1953    {
1954      return $this->ignoreUnknownValues;
1955    }
1956    public function setMaxBadRecords($maxBadRecords)
1957    {
1958      $this->maxBadRecords = $maxBadRecords;
1959    }
1960    public function getMaxBadRecords()
1961    {
1962      return $this->maxBadRecords;
1963    }
1964    public function setProjectionFields($projectionFields)
1965    {
1966      $this->projectionFields = $projectionFields;
1967    }
1968    public function getProjectionFields()
1969    {
1970      return $this->projectionFields;
1971    }
1972    public function setQuote($quote)
1973    {
1974      $this->quote = $quote;
1975    }
1976    public function getQuote()
1977    {
1978      return $this->quote;
1979    }
1980    public function setSchema(Google_Service_Bigquery_TableSchema $schema)
1981    {
1982      $this->schema = $schema;
1983    }
1984    public function getSchema()
1985    {
1986      return $this->schema;
1987    }
1988    public function setSchemaInline($schemaInline)
1989    {
1990      $this->schemaInline = $schemaInline;
1991    }
1992    public function getSchemaInline()
1993    {
1994      return $this->schemaInline;
1995    }
1996    public function setSchemaInlineFormat($schemaInlineFormat)
1997    {
1998      $this->schemaInlineFormat = $schemaInlineFormat;
1999    }
2000    public function getSchemaInlineFormat()
2001    {
2002      return $this->schemaInlineFormat;
2003    }
2004    public function setSkipLeadingRows($skipLeadingRows)
2005    {
2006      $this->skipLeadingRows = $skipLeadingRows;
2007    }
2008    public function getSkipLeadingRows()
2009    {
2010      return $this->skipLeadingRows;
2011    }
2012    public function setSourceFormat($sourceFormat)
2013    {
2014      $this->sourceFormat = $sourceFormat;
2015    }
2016    public function getSourceFormat()
2017    {
2018      return $this->sourceFormat;
2019    }
2020    public function setSourceUris($sourceUris)
2021    {
2022      $this->sourceUris = $sourceUris;
2023    }
2024    public function getSourceUris()
2025    {
2026      return $this->sourceUris;
2027    }
2028    public function setWriteDisposition($writeDisposition)
2029    {
2030      $this->writeDisposition = $writeDisposition;
2031    }
2032    public function getWriteDisposition()
2033    {
2034      return $this->writeDisposition;
2035    }
2036  }
2037  
2038  class Google_Service_Bigquery_JobConfigurationQuery extends Google_Collection
2039  {
2040    protected $collection_key = 'userDefinedFunctionResources';
2041    protected $internal_gapi_mappings = array(
2042    );
2043    public $allowLargeResults;
2044    public $createDisposition;
2045    protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference';
2046    protected $defaultDatasetDataType = '';
2047    protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
2048    protected $destinationTableDataType = '';
2049    public $flattenResults;
2050    public $preserveNulls;
2051    public $priority;
2052    public $query;
2053    protected $tableDefinitionsType = 'Google_Service_Bigquery_ExternalDataConfiguration';
2054    protected $tableDefinitionsDataType = 'map';
2055    public $useQueryCache;
2056    protected $userDefinedFunctionResourcesType = 'Google_Service_Bigquery_UserDefinedFunctionResource';
2057    protected $userDefinedFunctionResourcesDataType = 'array';
2058    public $writeDisposition;
2059  
2060  
2061    public function setAllowLargeResults($allowLargeResults)
2062    {
2063      $this->allowLargeResults = $allowLargeResults;
2064    }
2065    public function getAllowLargeResults()
2066    {
2067      return $this->allowLargeResults;
2068    }
2069    public function setCreateDisposition($createDisposition)
2070    {
2071      $this->createDisposition = $createDisposition;
2072    }
2073    public function getCreateDisposition()
2074    {
2075      return $this->createDisposition;
2076    }
2077    public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset)
2078    {
2079      $this->defaultDataset = $defaultDataset;
2080    }
2081    public function getDefaultDataset()
2082    {
2083      return $this->defaultDataset;
2084    }
2085    public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
2086    {
2087      $this->destinationTable = $destinationTable;
2088    }
2089    public function getDestinationTable()
2090    {
2091      return $this->destinationTable;
2092    }
2093    public function setFlattenResults($flattenResults)
2094    {
2095      $this->flattenResults = $flattenResults;
2096    }
2097    public function getFlattenResults()
2098    {
2099      return $this->flattenResults;
2100    }
2101    public function setPreserveNulls($preserveNulls)
2102    {
2103      $this->preserveNulls = $preserveNulls;
2104    }
2105    public function getPreserveNulls()
2106    {
2107      return $this->preserveNulls;
2108    }
2109    public function setPriority($priority)
2110    {
2111      $this->priority = $priority;
2112    }
2113    public function getPriority()
2114    {
2115      return $this->priority;
2116    }
2117    public function setQuery($query)
2118    {
2119      $this->query = $query;
2120    }
2121    public function getQuery()
2122    {
2123      return $this->query;
2124    }
2125    public function setTableDefinitions($tableDefinitions)
2126    {
2127      $this->tableDefinitions = $tableDefinitions;
2128    }
2129    public function getTableDefinitions()
2130    {
2131      return $this->tableDefinitions;
2132    }
2133    public function setUseQueryCache($useQueryCache)
2134    {
2135      $this->useQueryCache = $useQueryCache;
2136    }
2137    public function getUseQueryCache()
2138    {
2139      return $this->useQueryCache;
2140    }
2141    public function setUserDefinedFunctionResources($userDefinedFunctionResources)
2142    {
2143      $this->userDefinedFunctionResources = $userDefinedFunctionResources;
2144    }
2145    public function getUserDefinedFunctionResources()
2146    {
2147      return $this->userDefinedFunctionResources;
2148    }
2149    public function setWriteDisposition($writeDisposition)
2150    {
2151      $this->writeDisposition = $writeDisposition;
2152    }
2153    public function getWriteDisposition()
2154    {
2155      return $this->writeDisposition;
2156    }
2157  }
2158  
2159  class Google_Service_Bigquery_JobConfigurationQueryTableDefinitions extends Google_Model
2160  {
2161  }
2162  
2163  class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection
2164  {
2165    protected $collection_key = 'sourceTables';
2166    protected $internal_gapi_mappings = array(
2167    );
2168    public $createDisposition;
2169    protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
2170    protected $destinationTableDataType = '';
2171    protected $sourceTableType = 'Google_Service_Bigquery_TableReference';
2172    protected $sourceTableDataType = '';
2173    protected $sourceTablesType = 'Google_Service_Bigquery_TableReference';
2174    protected $sourceTablesDataType = 'array';
2175    public $writeDisposition;
2176  
2177  
2178    public function setCreateDisposition($createDisposition)
2179    {
2180      $this->createDisposition = $createDisposition;
2181    }
2182    public function getCreateDisposition()
2183    {
2184      return $this->createDisposition;
2185    }
2186    public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
2187    {
2188      $this->destinationTable = $destinationTable;
2189    }
2190    public function getDestinationTable()
2191    {
2192      return $this->destinationTable;
2193    }
2194    public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable)
2195    {
2196      $this->sourceTable = $sourceTable;
2197    }
2198    public function getSourceTable()
2199    {
2200      return $this->sourceTable;
2201    }
2202    public function setSourceTables($sourceTables)
2203    {
2204      $this->sourceTables = $sourceTables;
2205    }
2206    public function getSourceTables()
2207    {
2208      return $this->sourceTables;
2209    }
2210    public function setWriteDisposition($writeDisposition)
2211    {
2212      $this->writeDisposition = $writeDisposition;
2213    }
2214    public function getWriteDisposition()
2215    {
2216      return $this->writeDisposition;
2217    }
2218  }
2219  
2220  class Google_Service_Bigquery_JobList extends Google_Collection
2221  {
2222    protected $collection_key = 'jobs';
2223    protected $internal_gapi_mappings = array(
2224    );
2225    public $etag;
2226    protected $jobsType = 'Google_Service_Bigquery_JobListJobs';
2227    protected $jobsDataType = 'array';
2228    public $kind;
2229    public $nextPageToken;
2230  
2231  
2232    public function setEtag($etag)
2233    {
2234      $this->etag = $etag;
2235    }
2236    public function getEtag()
2237    {
2238      return $this->etag;
2239    }
2240    public function setJobs($jobs)
2241    {
2242      $this->jobs = $jobs;
2243    }
2244    public function getJobs()
2245    {
2246      return $this->jobs;
2247    }
2248    public function setKind($kind)
2249    {
2250      $this->kind = $kind;
2251    }
2252    public function getKind()
2253    {
2254      return $this->kind;
2255    }
2256    public function setNextPageToken($nextPageToken)
2257    {
2258      $this->nextPageToken = $nextPageToken;
2259    }
2260    public function getNextPageToken()
2261    {
2262      return $this->nextPageToken;
2263    }
2264  }
2265  
2266  class Google_Service_Bigquery_JobListJobs extends Google_Model
2267  {
2268    protected $internal_gapi_mappings = array(
2269          "userEmail" => "user_email",
2270    );
2271    protected $configurationType = 'Google_Service_Bigquery_JobConfiguration';
2272    protected $configurationDataType = '';
2273    protected $errorResultType = 'Google_Service_Bigquery_ErrorProto';
2274    protected $errorResultDataType = '';
2275    public $id;
2276    protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
2277    protected $jobReferenceDataType = '';
2278    public $kind;
2279    public $state;
2280    protected $statisticsType = 'Google_Service_Bigquery_JobStatistics';
2281    protected $statisticsDataType = '';
2282    protected $statusType = 'Google_Service_Bigquery_JobStatus';
2283    protected $statusDataType = '';
2284    public $userEmail;
2285  
2286  
2287    public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration)
2288    {
2289      $this->configuration = $configuration;
2290    }
2291    public function getConfiguration()
2292    {
2293      return $this->configuration;
2294    }
2295    public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult)
2296    {
2297      $this->errorResult = $errorResult;
2298    }
2299    public function getErrorResult()
2300    {
2301      return $this->errorResult;
2302    }
2303    public function setId($id)
2304    {
2305      $this->id = $id;
2306    }
2307    public function getId()
2308    {
2309      return $this->id;
2310    }
2311    public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
2312    {
2313      $this->jobReference = $jobReference;
2314    }
2315    public function getJobReference()
2316    {
2317      return $this->jobReference;
2318    }
2319    public function setKind($kind)
2320    {
2321      $this->kind = $kind;
2322    }
2323    public function getKind()
2324    {
2325      return $this->kind;
2326    }
2327    public function setState($state)
2328    {
2329      $this->state = $state;
2330    }
2331    public function getState()
2332    {
2333      return $this->state;
2334    }
2335    public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics)
2336    {
2337      $this->statistics = $statistics;
2338    }
2339    public function getStatistics()
2340    {
2341      return $this->statistics;
2342    }
2343    public function setStatus(Google_Service_Bigquery_JobStatus $status)
2344    {
2345      $this->status = $status;
2346    }
2347    public function getStatus()
2348    {
2349      return $this->status;
2350    }
2351    public function setUserEmail($userEmail)
2352    {
2353      $this->userEmail = $userEmail;
2354    }
2355    public function getUserEmail()
2356    {
2357      return $this->userEmail;
2358    }
2359  }
2360  
2361  class Google_Service_Bigquery_JobReference extends Google_Model
2362  {
2363    protected $internal_gapi_mappings = array(
2364    );
2365    public $jobId;
2366    public $projectId;
2367  
2368  
2369    public function setJobId($jobId)
2370    {
2371      $this->jobId = $jobId;
2372    }
2373    public function getJobId()
2374    {
2375      return $this->jobId;
2376    }
2377    public function setProjectId($projectId)
2378    {
2379      $this->projectId = $projectId;
2380    }
2381    public function getProjectId()
2382    {
2383      return $this->projectId;
2384    }
2385  }
2386  
2387  class Google_Service_Bigquery_JobStatistics extends Google_Model
2388  {
2389    protected $internal_gapi_mappings = array(
2390    );
2391    public $creationTime;
2392    public $endTime;
2393    protected $extractType = 'Google_Service_Bigquery_JobStatistics4';
2394    protected $extractDataType = '';
2395    protected $loadType = 'Google_Service_Bigquery_JobStatistics3';
2396    protected $loadDataType = '';
2397    protected $queryType = 'Google_Service_Bigquery_JobStatistics2';
2398    protected $queryDataType = '';
2399    public $startTime;
2400    public $totalBytesProcessed;
2401  
2402  
2403    public function setCreationTime($creationTime)
2404    {
2405      $this->creationTime = $creationTime;
2406    }
2407    public function getCreationTime()
2408    {
2409      return $this->creationTime;
2410    }
2411    public function setEndTime($endTime)
2412    {
2413      $this->endTime = $endTime;
2414    }
2415    public function getEndTime()
2416    {
2417      return $this->endTime;
2418    }
2419    public function setExtract(Google_Service_Bigquery_JobStatistics4 $extract)
2420    {
2421      $this->extract = $extract;
2422    }
2423    public function getExtract()
2424    {
2425      return $this->extract;
2426    }
2427    public function setLoad(Google_Service_Bigquery_JobStatistics3 $load)
2428    {
2429      $this->load = $load;
2430    }
2431    public function getLoad()
2432    {
2433      return $this->load;
2434    }
2435    public function setQuery(Google_Service_Bigquery_JobStatistics2 $query)
2436    {
2437      $this->query = $query;
2438    }
2439    public function getQuery()
2440    {
2441      return $this->query;
2442    }
2443    public function setStartTime($startTime)
2444    {
2445      $this->startTime = $startTime;
2446    }
2447    public function getStartTime()
2448    {
2449      return $this->startTime;
2450    }
2451    public function setTotalBytesProcessed($totalBytesProcessed)
2452    {
2453      $this->totalBytesProcessed = $totalBytesProcessed;
2454    }
2455    public function getTotalBytesProcessed()
2456    {
2457      return $this->totalBytesProcessed;
2458    }
2459  }
2460  
2461  class Google_Service_Bigquery_JobStatistics2 extends Google_Model
2462  {
2463    protected $internal_gapi_mappings = array(
2464    );
2465    public $billingTier;
2466    public $cacheHit;
2467    public $totalBytesBilled;
2468    public $totalBytesProcessed;
2469  
2470  
2471    public function setBillingTier($billingTier)
2472    {
2473      $this->billingTier = $billingTier;
2474    }
2475    public function getBillingTier()
2476    {
2477      return $this->billingTier;
2478    }
2479    public function setCacheHit($cacheHit)
2480    {
2481      $this->cacheHit = $cacheHit;
2482    }
2483    public function getCacheHit()
2484    {
2485      return $this->cacheHit;
2486    }
2487    public function setTotalBytesBilled($totalBytesBilled)
2488    {
2489      $this->totalBytesBilled = $totalBytesBilled;
2490    }
2491    public function getTotalBytesBilled()
2492    {
2493      return $this->totalBytesBilled;
2494    }
2495    public function setTotalBytesProcessed($totalBytesProcessed)
2496    {
2497      $this->totalBytesProcessed = $totalBytesProcessed;
2498    }
2499    public function getTotalBytesProcessed()
2500    {
2501      return $this->totalBytesProcessed;
2502    }
2503  }
2504  
2505  class Google_Service_Bigquery_JobStatistics3 extends Google_Model
2506  {
2507    protected $internal_gapi_mappings = array(
2508    );
2509    public $inputFileBytes;
2510    public $inputFiles;
2511    public $outputBytes;
2512    public $outputRows;
2513  
2514  
2515    public function setInputFileBytes($inputFileBytes)
2516    {
2517      $this->inputFileBytes = $inputFileBytes;
2518    }
2519    public function getInputFileBytes()
2520    {
2521      return $this->inputFileBytes;
2522    }
2523    public function setInputFiles($inputFiles)
2524    {
2525      $this->inputFiles = $inputFiles;
2526    }
2527    public function getInputFiles()
2528    {
2529      return $this->inputFiles;
2530    }
2531    public function setOutputBytes($outputBytes)
2532    {
2533      $this->outputBytes = $outputBytes;
2534    }
2535    public function getOutputBytes()
2536    {
2537      return $this->outputBytes;
2538    }
2539    public function setOutputRows($outputRows)
2540    {
2541      $this->outputRows = $outputRows;
2542    }
2543    public function getOutputRows()
2544    {
2545      return $this->outputRows;
2546    }
2547  }
2548  
2549  class Google_Service_Bigquery_JobStatistics4 extends Google_Collection
2550  {
2551    protected $collection_key = 'destinationUriFileCounts';
2552    protected $internal_gapi_mappings = array(
2553    );
2554    public $destinationUriFileCounts;
2555  
2556  
2557    public function setDestinationUriFileCounts($destinationUriFileCounts)
2558    {
2559      $this->destinationUriFileCounts = $destinationUriFileCounts;
2560    }
2561    public function getDestinationUriFileCounts()
2562    {
2563      return $this->destinationUriFileCounts;
2564    }
2565  }
2566  
2567  class Google_Service_Bigquery_JobStatus extends Google_Collection
2568  {
2569    protected $collection_key = 'errors';
2570    protected $internal_gapi_mappings = array(
2571    );
2572    protected $errorResultType = 'Google_Service_Bigquery_ErrorProto';
2573    protected $errorResultDataType = '';
2574    protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
2575    protected $errorsDataType = 'array';
2576    public $state;
2577  
2578  
2579    public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult)
2580    {
2581      $this->errorResult = $errorResult;
2582    }
2583    public function getErrorResult()
2584    {
2585      return $this->errorResult;
2586    }
2587    public function setErrors($errors)
2588    {
2589      $this->errors = $errors;
2590    }
2591    public function getErrors()
2592    {
2593      return $this->errors;
2594    }
2595    public function setState($state)
2596    {
2597      $this->state = $state;
2598    }
2599    public function getState()
2600    {
2601      return $this->state;
2602    }
2603  }
2604  
2605  class Google_Service_Bigquery_JsonObject extends Google_Model
2606  {
2607  }
2608  
2609  class Google_Service_Bigquery_ProjectList extends Google_Collection
2610  {
2611    protected $collection_key = 'projects';
2612    protected $internal_gapi_mappings = array(
2613    );
2614    public $etag;
2615    public $kind;
2616    public $nextPageToken;
2617    protected $projectsType = 'Google_Service_Bigquery_ProjectListProjects';
2618    protected $projectsDataType = 'array';
2619    public $totalItems;
2620  
2621  
2622    public function setEtag($etag)
2623    {
2624      $this->etag = $etag;
2625    }
2626    public function getEtag()
2627    {
2628      return $this->etag;
2629    }
2630    public function setKind($kind)
2631    {
2632      $this->kind = $kind;
2633    }
2634    public function getKind()
2635    {
2636      return $this->kind;
2637    }
2638    public function setNextPageToken($nextPageToken)
2639    {
2640      $this->nextPageToken = $nextPageToken;
2641    }
2642    public function getNextPageToken()
2643    {
2644      return $this->nextPageToken;
2645    }
2646    public function setProjects($projects)
2647    {
2648      $this->projects = $projects;
2649    }
2650    public function getProjects()
2651    {
2652      return $this->projects;
2653    }
2654    public function setTotalItems($totalItems)
2655    {
2656      $this->totalItems = $totalItems;
2657    }
2658    public function getTotalItems()
2659    {
2660      return $this->totalItems;
2661    }
2662  }
2663  
2664  class Google_Service_Bigquery_ProjectListProjects extends Google_Model
2665  {
2666    protected $internal_gapi_mappings = array(
2667    );
2668    public $friendlyName;
2669    public $id;
2670    public $kind;
2671    public $numericId;
2672    protected $projectReferenceType = 'Google_Service_Bigquery_ProjectReference';
2673    protected $projectReferenceDataType = '';
2674  
2675  
2676    public function setFriendlyName($friendlyName)
2677    {
2678      $this->friendlyName = $friendlyName;
2679    }
2680    public function getFriendlyName()
2681    {
2682      return $this->friendlyName;
2683    }
2684    public function setId($id)
2685    {
2686      $this->id = $id;
2687    }
2688    public function getId()
2689    {
2690      return $this->id;
2691    }
2692    public function setKind($kind)
2693    {
2694      $this->kind = $kind;
2695    }
2696    public function getKind()
2697    {
2698      return $this->kind;
2699    }
2700    public function setNumericId($numericId)
2701    {
2702      $this->numericId = $numericId;
2703    }
2704    public function getNumericId()
2705    {
2706      return $this->numericId;
2707    }
2708    public function setProjectReference(Google_Service_Bigquery_ProjectReference $projectReference)
2709    {
2710      $this->projectReference = $projectReference;
2711    }
2712    public function getProjectReference()
2713    {
2714      return $this->projectReference;
2715    }
2716  }
2717  
2718  class Google_Service_Bigquery_ProjectReference extends Google_Model
2719  {
2720    protected $internal_gapi_mappings = array(
2721    );
2722    public $projectId;
2723  
2724  
2725    public function setProjectId($projectId)
2726    {
2727      $this->projectId = $projectId;
2728    }
2729    public function getProjectId()
2730    {
2731      return $this->projectId;
2732    }
2733  }
2734  
2735  class Google_Service_Bigquery_QueryRequest extends Google_Model
2736  {
2737    protected $internal_gapi_mappings = array(
2738    );
2739    protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference';
2740    protected $defaultDatasetDataType = '';
2741    public $dryRun;
2742    public $kind;
2743    public $maxResults;
2744    public $preserveNulls;
2745    public $query;
2746    public $timeoutMs;
2747    public $useQueryCache;
2748  
2749  
2750    public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset)
2751    {
2752      $this->defaultDataset = $defaultDataset;
2753    }
2754    public function getDefaultDataset()
2755    {
2756      return $this->defaultDataset;
2757    }
2758    public function setDryRun($dryRun)
2759    {
2760      $this->dryRun = $dryRun;
2761    }
2762    public function getDryRun()
2763    {
2764      return $this->dryRun;
2765    }
2766    public function setKind($kind)
2767    {
2768      $this->kind = $kind;
2769    }
2770    public function getKind()
2771    {
2772      return $this->kind;
2773    }
2774    public function setMaxResults($maxResults)
2775    {
2776      $this->maxResults = $maxResults;
2777    }
2778    public function getMaxResults()
2779    {
2780      return $this->maxResults;
2781    }
2782    public function setPreserveNulls($preserveNulls)
2783    {
2784      $this->preserveNulls = $preserveNulls;
2785    }
2786    public function getPreserveNulls()
2787    {
2788      return $this->preserveNulls;
2789    }
2790    public function setQuery($query)
2791    {
2792      $this->query = $query;
2793    }
2794    public function getQuery()
2795    {
2796      return $this->query;
2797    }
2798    public function setTimeoutMs($timeoutMs)
2799    {
2800      $this->timeoutMs = $timeoutMs;
2801    }
2802    public function getTimeoutMs()
2803    {
2804      return $this->timeoutMs;
2805    }
2806    public function setUseQueryCache($useQueryCache)
2807    {
2808      $this->useQueryCache = $useQueryCache;
2809    }
2810    public function getUseQueryCache()
2811    {
2812      return $this->useQueryCache;
2813    }
2814  }
2815  
2816  class Google_Service_Bigquery_QueryResponse extends Google_Collection
2817  {
2818    protected $collection_key = 'rows';
2819    protected $internal_gapi_mappings = array(
2820    );
2821    public $cacheHit;
2822    protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
2823    protected $errorsDataType = 'array';
2824    public $jobComplete;
2825    protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
2826    protected $jobReferenceDataType = '';
2827    public $kind;
2828    public $pageToken;
2829    protected $rowsType = 'Google_Service_Bigquery_TableRow';
2830    protected $rowsDataType = 'array';
2831    protected $schemaType = 'Google_Service_Bigquery_TableSchema';
2832    protected $schemaDataType = '';
2833    public $totalBytesProcessed;
2834    public $totalRows;
2835  
2836  
2837    public function setCacheHit($cacheHit)
2838    {
2839      $this->cacheHit = $cacheHit;
2840    }
2841    public function getCacheHit()
2842    {
2843      return $this->cacheHit;
2844    }
2845    public function setErrors($errors)
2846    {
2847      $this->errors = $errors;
2848    }
2849    public function getErrors()
2850    {
2851      return $this->errors;
2852    }
2853    public function setJobComplete($jobComplete)
2854    {
2855      $this->jobComplete = $jobComplete;
2856    }
2857    public function getJobComplete()
2858    {
2859      return $this->jobComplete;
2860    }
2861    public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
2862    {
2863      $this->jobReference = $jobReference;
2864    }
2865    public function getJobReference()
2866    {
2867      return $this->jobReference;
2868    }
2869    public function setKind($kind)
2870    {
2871      $this->kind = $kind;
2872    }
2873    public function getKind()
2874    {
2875      return $this->kind;
2876    }
2877    public function setPageToken($pageToken)
2878    {
2879      $this->pageToken = $pageToken;
2880    }
2881    public function getPageToken()
2882    {
2883      return $this->pageToken;
2884    }
2885    public function setRows($rows)
2886    {
2887      $this->rows = $rows;
2888    }
2889    public function getRows()
2890    {
2891      return $this->rows;
2892    }
2893    public function setSchema(Google_Service_Bigquery_TableSchema $schema)
2894    {
2895      $this->schema = $schema;
2896    }
2897    public function getSchema()
2898    {
2899      return $this->schema;
2900    }
2901    public function setTotalBytesProcessed($totalBytesProcessed)
2902    {
2903      $this->totalBytesProcessed = $totalBytesProcessed;
2904    }
2905    public function getTotalBytesProcessed()
2906    {
2907      return $this->totalBytesProcessed;
2908    }
2909    public function setTotalRows($totalRows)
2910    {
2911      $this->totalRows = $totalRows;
2912    }
2913    public function getTotalRows()
2914    {
2915      return $this->totalRows;
2916    }
2917  }
2918  
2919  class Google_Service_Bigquery_Streamingbuffer extends Google_Model
2920  {
2921    protected $internal_gapi_mappings = array(
2922    );
2923    public $estimatedBytes;
2924    public $estimatedRows;
2925    public $oldestEntryTime;
2926  
2927  
2928    public function setEstimatedBytes($estimatedBytes)
2929    {
2930      $this->estimatedBytes = $estimatedBytes;
2931    }
2932    public function getEstimatedBytes()
2933    {
2934      return $this->estimatedBytes;
2935    }
2936    public function setEstimatedRows($estimatedRows)
2937    {
2938      $this->estimatedRows = $estimatedRows;
2939    }
2940    public function getEstimatedRows()
2941    {
2942      return $this->estimatedRows;
2943    }
2944    public function setOldestEntryTime($oldestEntryTime)
2945    {
2946      $this->oldestEntryTime = $oldestEntryTime;
2947    }
2948    public function getOldestEntryTime()
2949    {
2950      return $this->oldestEntryTime;
2951    }
2952  }
2953  
2954  class Google_Service_Bigquery_Table extends Google_Model
2955  {
2956    protected $internal_gapi_mappings = array(
2957    );
2958    public $creationTime;
2959    public $description;
2960    public $etag;
2961    public $expirationTime;
2962    protected $externalDataConfigurationType = 'Google_Service_Bigquery_ExternalDataConfiguration';
2963    protected $externalDataConfigurationDataType = '';
2964    public $friendlyName;
2965    public $id;
2966    public $kind;
2967    public $lastModifiedTime;
2968    public $location;
2969    public $numBytes;
2970    public $numRows;
2971    protected $schemaType = 'Google_Service_Bigquery_TableSchema';
2972    protected $schemaDataType = '';
2973    public $selfLink;
2974    protected $streamingBufferType = 'Google_Service_Bigquery_Streamingbuffer';
2975    protected $streamingBufferDataType = '';
2976    protected $tableReferenceType = 'Google_Service_Bigquery_TableReference';
2977    protected $tableReferenceDataType = '';
2978    public $type;
2979    protected $viewType = 'Google_Service_Bigquery_ViewDefinition';
2980    protected $viewDataType = '';
2981  
2982  
2983    public function setCreationTime($creationTime)
2984    {
2985      $this->creationTime = $creationTime;
2986    }
2987    public function getCreationTime()
2988    {
2989      return $this->creationTime;
2990    }
2991    public function setDescription($description)
2992    {
2993      $this->description = $description;
2994    }
2995    public function getDescription()
2996    {
2997      return $this->description;
2998    }
2999    public function setEtag($etag)
3000    {
3001      $this->etag = $etag;
3002    }
3003    public function getEtag()
3004    {
3005      return $this->etag;
3006    }
3007    public function setExpirationTime($expirationTime)
3008    {
3009      $this->expirationTime = $expirationTime;
3010    }
3011    public function getExpirationTime()
3012    {
3013      return $this->expirationTime;
3014    }
3015    public function setExternalDataConfiguration(Google_Service_Bigquery_ExternalDataConfiguration $externalDataConfiguration)
3016    {
3017      $this->externalDataConfiguration = $externalDataConfiguration;
3018    }
3019    public function getExternalDataConfiguration()
3020    {
3021      return $this->externalDataConfiguration;
3022    }
3023    public function setFriendlyName($friendlyName)
3024    {
3025      $this->friendlyName = $friendlyName;
3026    }
3027    public function getFriendlyName()
3028    {
3029      return $this->friendlyName;
3030    }
3031    public function setId($id)
3032    {
3033      $this->id = $id;
3034    }
3035    public function getId()
3036    {
3037      return $this->id;
3038    }
3039    public function setKind($kind)
3040    {
3041      $this->kind = $kind;
3042    }
3043    public function getKind()
3044    {
3045      return $this->kind;
3046    }
3047    public function setLastModifiedTime($lastModifiedTime)
3048    {
3049      $this->lastModifiedTime = $lastModifiedTime;
3050    }
3051    public function getLastModifiedTime()
3052    {
3053      return $this->lastModifiedTime;
3054    }
3055    public function setLocation($location)
3056    {
3057      $this->location = $location;
3058    }
3059    public function getLocation()
3060    {
3061      return $this->location;
3062    }
3063    public function setNumBytes($numBytes)
3064    {
3065      $this->numBytes = $numBytes;
3066    }
3067    public function getNumBytes()
3068    {
3069      return $this->numBytes;
3070    }
3071    public function setNumRows($numRows)
3072    {
3073      $this->numRows = $numRows;
3074    }
3075    public function getNumRows()
3076    {
3077      return $this->numRows;
3078    }
3079    public function setSchema(Google_Service_Bigquery_TableSchema $schema)
3080    {
3081      $this->schema = $schema;
3082    }
3083    public function getSchema()
3084    {
3085      return $this->schema;
3086    }
3087    public function setSelfLink($selfLink)
3088    {
3089      $this->selfLink = $selfLink;
3090    }
3091    public function getSelfLink()
3092    {
3093      return $this->selfLink;
3094    }
3095    public function setStreamingBuffer(Google_Service_Bigquery_Streamingbuffer $streamingBuffer)
3096    {
3097      $this->streamingBuffer = $streamingBuffer;
3098    }
3099    public function getStreamingBuffer()
3100    {
3101      return $this->streamingBuffer;
3102    }
3103    public function setTableReference(Google_Service_Bigquery_TableReference $tableReference)
3104    {
3105      $this->tableReference = $tableReference;
3106    }
3107    public function getTableReference()
3108    {
3109      return $this->tableReference;
3110    }
3111    public function setType($type)
3112    {
3113      $this->type = $type;
3114    }
3115    public function getType()
3116    {
3117      return $this->type;
3118    }
3119    public function setView(Google_Service_Bigquery_ViewDefinition $view)
3120    {
3121      $this->view = $view;
3122    }
3123    public function getView()
3124    {
3125      return $this->view;
3126    }
3127  }
3128  
3129  class Google_Service_Bigquery_TableCell extends Google_Model
3130  {
3131    protected $internal_gapi_mappings = array(
3132    );
3133    public $v;
3134  
3135  
3136    public function setV($v)
3137    {
3138      $this->v = $v;
3139    }
3140    public function getV()
3141    {
3142      return $this->v;
3143    }
3144  }
3145  
3146  class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection
3147  {
3148    protected $collection_key = 'rows';
3149    protected $internal_gapi_mappings = array(
3150    );
3151    public $ignoreUnknownValues;
3152    public $kind;
3153    protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows';
3154    protected $rowsDataType = 'array';
3155    public $skipInvalidRows;
3156  
3157  
3158    public function setIgnoreUnknownValues($ignoreUnknownValues)
3159    {
3160      $this->ignoreUnknownValues = $ignoreUnknownValues;
3161    }
3162    public function getIgnoreUnknownValues()
3163    {
3164      return $this->ignoreUnknownValues;
3165    }
3166    public function setKind($kind)
3167    {
3168      $this->kind = $kind;
3169    }
3170    public function getKind()
3171    {
3172      return $this->kind;
3173    }
3174    public function setRows($rows)
3175    {
3176      $this->rows = $rows;
3177    }
3178    public function getRows()
3179    {
3180      return $this->rows;
3181    }
3182    public function setSkipInvalidRows($skipInvalidRows)
3183    {
3184      $this->skipInvalidRows = $skipInvalidRows;
3185    }
3186    public function getSkipInvalidRows()
3187    {
3188      return $this->skipInvalidRows;
3189    }
3190  }
3191  
3192  class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model
3193  {
3194    protected $internal_gapi_mappings = array(
3195    );
3196    public $insertId;
3197    public $json;
3198  
3199  
3200    public function setInsertId($insertId)
3201    {
3202      $this->insertId = $insertId;
3203    }
3204    public function getInsertId()
3205    {
3206      return $this->insertId;
3207    }
3208    public function setJson($json)
3209    {
3210      $this->json = $json;
3211    }
3212    public function getJson()
3213    {
3214      return $this->json;
3215    }
3216  }
3217  
3218  class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection
3219  {
3220    protected $collection_key = 'insertErrors';
3221    protected $internal_gapi_mappings = array(
3222    );
3223    protected $insertErrorsType = 'Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors';
3224    protected $insertErrorsDataType = 'array';
3225    public $kind;
3226  
3227  
3228    public function setInsertErrors($insertErrors)
3229    {
3230      $this->insertErrors = $insertErrors;
3231    }
3232    public function getInsertErrors()
3233    {
3234      return $this->insertErrors;
3235    }
3236    public function setKind($kind)
3237    {
3238      $this->kind = $kind;
3239    }
3240    public function getKind()
3241    {
3242      return $this->kind;
3243    }
3244  }
3245  
3246  class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection
3247  {
3248    protected $collection_key = 'errors';
3249    protected $internal_gapi_mappings = array(
3250    );
3251    protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
3252    protected $errorsDataType = 'array';
3253    public $index;
3254  
3255  
3256    public function setErrors($errors)
3257    {
3258      $this->errors = $errors;
3259    }
3260    public function getErrors()
3261    {
3262      return $this->errors;
3263    }
3264    public function setIndex($index)
3265    {
3266      $this->index = $index;
3267    }
3268    public function getIndex()
3269    {
3270      return $this->index;
3271    }
3272  }
3273  
3274  class Google_Service_Bigquery_TableDataList extends Google_Collection
3275  {
3276    protected $collection_key = 'rows';
3277    protected $internal_gapi_mappings = array(
3278    );
3279    public $etag;
3280    public $kind;
3281    public $pageToken;
3282    protected $rowsType = 'Google_Service_Bigquery_TableRow';
3283    protected $rowsDataType = 'array';
3284    public $totalRows;
3285  
3286  
3287    public function setEtag($etag)
3288    {
3289      $this->etag = $etag;
3290    }
3291    public function getEtag()
3292    {
3293      return $this->etag;
3294    }
3295    public function setKind($kind)
3296    {
3297      $this->kind = $kind;
3298    }
3299    public function getKind()
3300    {
3301      return $this->kind;
3302    }
3303    public function setPageToken($pageToken)
3304    {
3305      $this->pageToken = $pageToken;
3306    }
3307    public function getPageToken()
3308    {
3309      return $this->pageToken;
3310    }
3311    public function setRows($rows)
3312    {
3313      $this->rows = $rows;
3314    }
3315    public function getRows()
3316    {
3317      return $this->rows;
3318    }
3319    public function setTotalRows($totalRows)
3320    {
3321      $this->totalRows = $totalRows;
3322    }
3323    public function getTotalRows()
3324    {
3325      return $this->totalRows;
3326    }
3327  }
3328  
3329  class Google_Service_Bigquery_TableFieldSchema extends Google_Collection
3330  {
3331    protected $collection_key = 'fields';
3332    protected $internal_gapi_mappings = array(
3333    );
3334    public $description;
3335    protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema';
3336    protected $fieldsDataType = 'array';
3337    public $mode;
3338    public $name;
3339    public $type;
3340  
3341  
3342    public function setDescription($description)
3343    {
3344      $this->description = $description;
3345    }
3346    public function getDescription()
3347    {
3348      return $this->description;
3349    }
3350    public function setFields($fields)
3351    {
3352      $this->fields = $fields;
3353    }
3354    public function getFields()
3355    {
3356      return $this->fields;
3357    }
3358    public function setMode($mode)
3359    {
3360      $this->mode = $mode;
3361    }
3362    public function getMode()
3363    {
3364      return $this->mode;
3365    }
3366    public function setName($name)
3367    {
3368      $this->name = $name;
3369    }
3370    public function getName()
3371    {
3372      return $this->name;
3373    }
3374    public function setType($type)
3375    {
3376      $this->type = $type;
3377    }
3378    public function getType()
3379    {
3380      return $this->type;
3381    }
3382  }
3383  
3384  class Google_Service_Bigquery_TableList extends Google_Collection
3385  {
3386    protected $collection_key = 'tables';
3387    protected $internal_gapi_mappings = array(
3388    );
3389    public $etag;
3390    public $kind;
3391    public $nextPageToken;
3392    protected $tablesType = 'Google_Service_Bigquery_TableListTables';
3393    protected $tablesDataType = 'array';
3394    public $totalItems;
3395  
3396  
3397    public function setEtag($etag)
3398    {
3399      $this->etag = $etag;
3400    }
3401    public function getEtag()
3402    {
3403      return $this->etag;
3404    }
3405    public function setKind($kind)
3406    {
3407      $this->kind = $kind;
3408    }
3409    public function getKind()
3410    {
3411      return $this->kind;
3412    }
3413    public function setNextPageToken($nextPageToken)
3414    {
3415      $this->nextPageToken = $nextPageToken;
3416    }
3417    public function getNextPageToken()
3418    {
3419      return $this->nextPageToken;
3420    }
3421    public function setTables($tables)
3422    {
3423      $this->tables = $tables;
3424    }
3425    public function getTables()
3426    {
3427      return $this->tables;
3428    }
3429    public function setTotalItems($totalItems)
3430    {
3431      $this->totalItems = $totalItems;
3432    }
3433    public function getTotalItems()
3434    {
3435      return $this->totalItems;
3436    }
3437  }
3438  
3439  class Google_Service_Bigquery_TableListTables extends Google_Model
3440  {
3441    protected $internal_gapi_mappings = array(
3442    );
3443    public $friendlyName;
3444    public $id;
3445    public $kind;
3446    protected $tableReferenceType = 'Google_Service_Bigquery_TableReference';
3447    protected $tableReferenceDataType = '';
3448    public $type;
3449  
3450  
3451    public function setFriendlyName($friendlyName)
3452    {
3453      $this->friendlyName = $friendlyName;
3454    }
3455    public function getFriendlyName()
3456    {
3457      return $this->friendlyName;
3458    }
3459    public function setId($id)
3460    {
3461      $this->id = $id;
3462    }
3463    public function getId()
3464    {
3465      return $this->id;
3466    }
3467    public function setKind($kind)
3468    {
3469      $this->kind = $kind;
3470    }
3471    public function getKind()
3472    {
3473      return $this->kind;
3474    }
3475    public function setTableReference(Google_Service_Bigquery_TableReference $tableReference)
3476    {
3477      $this->tableReference = $tableReference;
3478    }
3479    public function getTableReference()
3480    {
3481      return $this->tableReference;
3482    }
3483    public function setType($type)
3484    {
3485      $this->type = $type;
3486    }
3487    public function getType()
3488    {
3489      return $this->type;
3490    }
3491  }
3492  
3493  class Google_Service_Bigquery_TableReference extends Google_Model
3494  {
3495    protected $internal_gapi_mappings = array(
3496    );
3497    public $datasetId;
3498    public $projectId;
3499    public $tableId;
3500  
3501  
3502    public function setDatasetId($datasetId)
3503    {
3504      $this->datasetId = $datasetId;
3505    }
3506    public function getDatasetId()
3507    {
3508      return $this->datasetId;
3509    }
3510    public function setProjectId($projectId)
3511    {
3512      $this->projectId = $projectId;
3513    }
3514    public function getProjectId()
3515    {
3516      return $this->projectId;
3517    }
3518    public function setTableId($tableId)
3519    {
3520      $this->tableId = $tableId;
3521    }
3522    public function getTableId()
3523    {
3524      return $this->tableId;
3525    }
3526  }
3527  
3528  class Google_Service_Bigquery_TableRow extends Google_Collection
3529  {
3530    protected $collection_key = 'f';
3531    protected $internal_gapi_mappings = array(
3532    );
3533    protected $fType = 'Google_Service_Bigquery_TableCell';
3534    protected $fDataType = 'array';
3535  
3536  
3537    public function setF($f)
3538    {
3539      $this->f = $f;
3540    }
3541    public function getF()
3542    {
3543      return $this->f;
3544    }
3545  }
3546  
3547  class Google_Service_Bigquery_TableSchema extends Google_Collection
3548  {
3549    protected $collection_key = 'fields';
3550    protected $internal_gapi_mappings = array(
3551    );
3552    protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema';
3553    protected $fieldsDataType = 'array';
3554  
3555  
3556    public function setFields($fields)
3557    {
3558      $this->fields = $fields;
3559    }
3560    public function getFields()
3561    {
3562      return $this->fields;
3563    }
3564  }
3565  
3566  class Google_Service_Bigquery_UserDefinedFunctionResource extends Google_Model
3567  {
3568    protected $internal_gapi_mappings = array(
3569    );
3570    public $inlineCode;
3571    public $resourceUri;
3572  
3573  
3574    public function setInlineCode($inlineCode)
3575    {
3576      $this->inlineCode = $inlineCode;
3577    }
3578    public function getInlineCode()
3579    {
3580      return $this->inlineCode;
3581    }
3582    public function setResourceUri($resourceUri)
3583    {
3584      $this->resourceUri = $resourceUri;
3585    }
3586    public function getResourceUri()
3587    {
3588      return $this->resourceUri;
3589    }
3590  }
3591  
3592  class Google_Service_Bigquery_ViewDefinition extends Google_Model
3593  {
3594    protected $internal_gapi_mappings = array(
3595    );
3596    public $query;
3597  
3598  
3599    public function setQuery($query)
3600    {
3601      $this->query = $query;
3602    }
3603    public function getQuery()
3604    {
3605      return $this->query;
3606    }
3607  }