Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 - 1
<?php
2
/*
3
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
 * use this file except in compliance with the License. You may obtain a copy of
5
 * the License at
6
 *
7
 * http://www.apache.org/licenses/LICENSE-2.0
8
 *
9
 * Unless required by applicable law or agreed to in writing, software
10
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
 * License for the specific language governing permissions and limitations under
13
 * the License.
14
 */
15
 
16
 
17
  /**
18
   * The "tables" collection of methods.
19
   * Typical usage is:
20
   *  <code>
21
   *   $bigqueryService = new Google_BigqueryService(...);
22
   *   $tables = $bigqueryService->tables;
23
   *  </code>
24
   */
25
  class Google_TablesServiceResource extends Google_ServiceResource {
26
 
27
 
28
    /**
29
     * Creates a new, empty table in the dataset. (tables.insert)
30
     *
31
     * @param string $projectId Project ID of the new table
32
     * @param string $datasetId Dataset ID of the new table
33
     * @param Google_Table $postBody
34
     * @param array $optParams Optional parameters.
35
     * @return Google_Table
36
     */
37
    public function insert($projectId, $datasetId, Google_Table $postBody, $optParams = array()) {
38
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
39
      $params = array_merge($params, $optParams);
40
      $data = $this->__call('insert', array($params));
41
      if ($this->useObjects()) {
42
        return new Google_Table($data);
43
      } else {
44
        return $data;
45
      }
46
    }
47
    /**
48
     * Gets the specified table resource by table ID. This method does not return the data in the table,
49
     * it only returns the table resource, which describes the structure of this table. (tables.get)
50
     *
51
     * @param string $projectId Project ID of the requested table
52
     * @param string $datasetId Dataset ID of the requested table
53
     * @param string $tableId Table ID of the requested table
54
     * @param array $optParams Optional parameters.
55
     * @return Google_Table
56
     */
57
    public function get($projectId, $datasetId, $tableId, $optParams = array()) {
58
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
59
      $params = array_merge($params, $optParams);
60
      $data = $this->__call('get', array($params));
61
      if ($this->useObjects()) {
62
        return new Google_Table($data);
63
      } else {
64
        return $data;
65
      }
66
    }
67
    /**
68
     * Lists all tables in the specified dataset. (tables.list)
69
     *
70
     * @param string $projectId Project ID of the tables to list
71
     * @param string $datasetId Dataset ID of the tables to list
72
     * @param array $optParams Optional parameters.
73
     *
74
     * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
75
     * @opt_param string maxResults Maximum number of results to return
76
     * @return Google_TableList
77
     */
78
    public function listTables($projectId, $datasetId, $optParams = array()) {
79
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
80
      $params = array_merge($params, $optParams);
81
      $data = $this->__call('list', array($params));
82
      if ($this->useObjects()) {
83
        return new Google_TableList($data);
84
      } else {
85
        return $data;
86
      }
87
    }
88
    /**
89
     * Updates information in an existing table, specified by tableId. (tables.update)
90
     *
91
     * @param string $projectId Project ID of the table to update
92
     * @param string $datasetId Dataset ID of the table to update
93
     * @param string $tableId Table ID of the table to update
94
     * @param Google_Table $postBody
95
     * @param array $optParams Optional parameters.
96
     * @return Google_Table
97
     */
98
    public function update($projectId, $datasetId, $tableId, Google_Table $postBody, $optParams = array()) {
99
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
100
      $params = array_merge($params, $optParams);
101
      $data = $this->__call('update', array($params));
102
      if ($this->useObjects()) {
103
        return new Google_Table($data);
104
      } else {
105
        return $data;
106
      }
107
    }
108
    /**
109
     * Updates information in an existing table, specified by tableId. This method supports patch
110
     * semantics. (tables.patch)
111
     *
112
     * @param string $projectId Project ID of the table to update
113
     * @param string $datasetId Dataset ID of the table to update
114
     * @param string $tableId Table ID of the table to update
115
     * @param Google_Table $postBody
116
     * @param array $optParams Optional parameters.
117
     * @return Google_Table
118
     */
119
    public function patch($projectId, $datasetId, $tableId, Google_Table $postBody, $optParams = array()) {
120
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
121
      $params = array_merge($params, $optParams);
122
      $data = $this->__call('patch', array($params));
123
      if ($this->useObjects()) {
124
        return new Google_Table($data);
125
      } else {
126
        return $data;
127
      }
128
    }
129
    /**
130
     * Deletes the table specified by tableId from the dataset. If the table contains data, all the data
131
     * will be deleted. (tables.delete)
132
     *
133
     * @param string $projectId Project ID of the table to delete
134
     * @param string $datasetId Dataset ID of the table to delete
135
     * @param string $tableId Table ID of the table to delete
136
     * @param array $optParams Optional parameters.
137
     */
138
    public function delete($projectId, $datasetId, $tableId, $optParams = array()) {
139
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
140
      $params = array_merge($params, $optParams);
141
      $data = $this->__call('delete', array($params));
142
      return $data;
143
    }
144
  }
145
 
146
  /**
147
   * The "datasets" collection of methods.
148
   * Typical usage is:
149
   *  <code>
150
   *   $bigqueryService = new Google_BigqueryService(...);
151
   *   $datasets = $bigqueryService->datasets;
152
   *  </code>
153
   */
154
  class Google_DatasetsServiceResource extends Google_ServiceResource {
155
 
156
 
157
    /**
158
     * Creates a new empty dataset. (datasets.insert)
159
     *
160
     * @param string $projectId Project ID of the new dataset
161
     * @param Google_Dataset $postBody
162
     * @param array $optParams Optional parameters.
163
     * @return Google_Dataset
164
     */
165
    public function insert($projectId, Google_Dataset $postBody, $optParams = array()) {
166
      $params = array('projectId' => $projectId, 'postBody' => $postBody);
167
      $params = array_merge($params, $optParams);
168
      $data = $this->__call('insert', array($params));
169
      if ($this->useObjects()) {
170
        return new Google_Dataset($data);
171
      } else {
172
        return $data;
173
      }
174
    }
175
    /**
176
     * Returns the dataset specified by datasetID. (datasets.get)
177
     *
178
     * @param string $projectId Project ID of the requested dataset
179
     * @param string $datasetId Dataset ID of the requested dataset
180
     * @param array $optParams Optional parameters.
181
     * @return Google_Dataset
182
     */
183
    public function get($projectId, $datasetId, $optParams = array()) {
184
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
185
      $params = array_merge($params, $optParams);
186
      $data = $this->__call('get', array($params));
187
      if ($this->useObjects()) {
188
        return new Google_Dataset($data);
189
      } else {
190
        return $data;
191
      }
192
    }
193
    /**
194
     * Lists all the datasets in the specified project to which the caller has read access; however, a
195
     * project owner can list (but not necessarily get) all datasets in his project. (datasets.list)
196
     *
197
     * @param string $projectId Project ID of the datasets to be listed
198
     * @param array $optParams Optional parameters.
199
     *
200
     * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
201
     * @opt_param string maxResults The maximum number of results to return
202
     * @return Google_DatasetList
203
     */
204
    public function listDatasets($projectId, $optParams = array()) {
205
      $params = array('projectId' => $projectId);
206
      $params = array_merge($params, $optParams);
207
      $data = $this->__call('list', array($params));
208
      if ($this->useObjects()) {
209
        return new Google_DatasetList($data);
210
      } else {
211
        return $data;
212
      }
213
    }
214
    /**
215
     * Updates information in an existing dataset, specified by datasetId. Properties not included in
216
     * the submitted resource will not be changed. If you include the access property without any values
217
     * assigned, the request will fail as you must specify at least one owner for a dataset.
218
     * (datasets.update)
219
     *
220
     * @param string $projectId Project ID of the dataset being updated
221
     * @param string $datasetId Dataset ID of the dataset being updated
222
     * @param Google_Dataset $postBody
223
     * @param array $optParams Optional parameters.
224
     * @return Google_Dataset
225
     */
226
    public function update($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
227
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
228
      $params = array_merge($params, $optParams);
229
      $data = $this->__call('update', array($params));
230
      if ($this->useObjects()) {
231
        return new Google_Dataset($data);
232
      } else {
233
        return $data;
234
      }
235
    }
236
    /**
237
     * Updates information in an existing dataset, specified by datasetId. Properties not included in
238
     * the submitted resource will not be changed. If you include the access property without any values
239
     * assigned, the request will fail as you must specify at least one owner for a dataset. This method
240
     * supports patch semantics. (datasets.patch)
241
     *
242
     * @param string $projectId Project ID of the dataset being updated
243
     * @param string $datasetId Dataset ID of the dataset being updated
244
     * @param Google_Dataset $postBody
245
     * @param array $optParams Optional parameters.
246
     * @return Google_Dataset
247
     */
248
    public function patch($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
249
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
250
      $params = array_merge($params, $optParams);
251
      $data = $this->__call('patch', array($params));
252
      if ($this->useObjects()) {
253
        return new Google_Dataset($data);
254
      } else {
255
        return $data;
256
      }
257
    }
258
    /**
259
     * Deletes the dataset specified by datasetId value. Before you can delete a dataset, you must
260
     * delete all its tables, either manually or by specifying deleteContents. Immediately after
261
     * deletion, you can create another dataset with the same name. (datasets.delete)
262
     *
263
     * @param string $projectId Project ID of the dataset being deleted
264
     * @param string $datasetId Dataset ID of dataset being deleted
265
     * @param array $optParams Optional parameters.
266
     *
267
     * @opt_param bool deleteContents If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False
268
     */
269
    public function delete($projectId, $datasetId, $optParams = array()) {
270
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
271
      $params = array_merge($params, $optParams);
272
      $data = $this->__call('delete', array($params));
273
      return $data;
274
    }
275
  }
276
 
277
  /**
278
   * The "jobs" collection of methods.
279
   * Typical usage is:
280
   *  <code>
281
   *   $bigqueryService = new Google_BigqueryService(...);
282
   *   $jobs = $bigqueryService->jobs;
283
   *  </code>
284
   */
285
  class Google_JobsServiceResource extends Google_ServiceResource {
286
 
287
 
288
    /**
289
     * Starts a new asynchronous job. (jobs.insert)
290
     *
291
     * @param string $projectId Project ID of the project that will be billed for the job
292
     * @param Google_Job $postBody
293
     * @param array $optParams Optional parameters.
294
     * @return Google_Job
295
     */
296
    public function insert($projectId, Google_Job $postBody, $optParams = array()) {
297
      $params = array('projectId' => $projectId, 'postBody' => $postBody);
298
      $params = array_merge($params, $optParams);
299
      $data = $this->__call('insert', array($params));
300
      if ($this->useObjects()) {
301
        return new Google_Job($data);
302
      } else {
303
        return $data;
304
      }
305
    }
306
    /**
307
     * Runs a BigQuery SQL query synchronously and returns query results if the query completes within a
308
     * specified timeout. (jobs.query)
309
     *
310
     * @param string $projectId Project ID of the project billed for the query
311
     * @param Google_QueryRequest $postBody
312
     * @param array $optParams Optional parameters.
313
     * @return Google_QueryResponse
314
     */
315
    public function query($projectId, Google_QueryRequest $postBody, $optParams = array()) {
316
      $params = array('projectId' => $projectId, 'postBody' => $postBody);
317
      $params = array_merge($params, $optParams);
318
      $data = $this->__call('query', array($params));
319
      if ($this->useObjects()) {
320
        return new Google_QueryResponse($data);
321
      } else {
322
        return $data;
323
      }
324
    }
325
    /**
326
     * Lists all the Jobs in the specified project that were started by the user. (jobs.list)
327
     *
328
     * @param string $projectId Project ID of the jobs to list
329
     * @param array $optParams Optional parameters.
330
     *
331
     * @opt_param string projection Restrict information returned to a set of selected fields
332
     * @opt_param string stateFilter Filter for job state
333
     * @opt_param bool allUsers Whether to display jobs owned by all users in the project. Default false
334
     * @opt_param string maxResults Maximum number of results to return
335
     * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
336
     * @return Google_JobList
337
     */
338
    public function listJobs($projectId, $optParams = array()) {
339
      $params = array('projectId' => $projectId);
340
      $params = array_merge($params, $optParams);
341
      $data = $this->__call('list', array($params));
342
      if ($this->useObjects()) {
343
        return new Google_JobList($data);
344
      } else {
345
        return $data;
346
      }
347
    }
348
    /**
349
     * Retrieves the results of a query job. (jobs.getQueryResults)
350
     *
351
     * @param string $projectId Project ID of the query job
352
     * @param string $jobId Job ID of the query job
353
     * @param array $optParams Optional parameters.
354
     *
355
     * @opt_param string timeoutMs How long to wait for the query to complete, in milliseconds, before returning. Default is to return immediately. If the timeout passes before the job completes, the request will fail with a TIMEOUT error
356
     * @opt_param string startIndex Zero-based index of the starting row
357
     * @opt_param string maxResults Maximum number of results to read
358
     * @return Google_GetQueryResultsResponse
359
     */
360
    public function getQueryResults($projectId, $jobId, $optParams = array()) {
361
      $params = array('projectId' => $projectId, 'jobId' => $jobId);
362
      $params = array_merge($params, $optParams);
363
      $data = $this->__call('getQueryResults', array($params));
364
      if ($this->useObjects()) {
365
        return new Google_GetQueryResultsResponse($data);
366
      } else {
367
        return $data;
368
      }
369
    }
370
    /**
371
     * Retrieves the specified job by ID. (jobs.get)
372
     *
373
     * @param string $projectId Project ID of the requested job
374
     * @param string $jobId Job ID of the requested job
375
     * @param array $optParams Optional parameters.
376
     * @return Google_Job
377
     */
378
    public function get($projectId, $jobId, $optParams = array()) {
379
      $params = array('projectId' => $projectId, 'jobId' => $jobId);
380
      $params = array_merge($params, $optParams);
381
      $data = $this->__call('get', array($params));
382
      if ($this->useObjects()) {
383
        return new Google_Job($data);
384
      } else {
385
        return $data;
386
      }
387
    }
388
  }
389
 
390
  /**
391
   * The "tabledata" collection of methods.
392
   * Typical usage is:
393
   *  <code>
394
   *   $bigqueryService = new Google_BigqueryService(...);
395
   *   $tabledata = $bigqueryService->tabledata;
396
   *  </code>
397
   */
398
  class Google_TabledataServiceResource extends Google_ServiceResource {
399
 
400
 
401
    /**
402
     * Retrieves table data from a specified set of rows. (tabledata.list)
403
     *
404
     * @param string $projectId Project ID of the table to read
405
     * @param string $datasetId Dataset ID of the table to read
406
     * @param string $tableId Table ID of the table to read
407
     * @param array $optParams Optional parameters.
408
     *
409
     * @opt_param string maxResults Maximum number of results to return
410
     * @opt_param string pageToken Page token, returned by a previous call, identifying the result set
411
     * @opt_param string startIndex Zero-based index of the starting row to read
412
     * @return Google_TableDataList
413
     */
414
    public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) {
415
      $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
416
      $params = array_merge($params, $optParams);
417
      $data = $this->__call('list', array($params));
418
      if ($this->useObjects()) {
419
        return new Google_TableDataList($data);
420
      } else {
421
        return $data;
422
      }
423
    }
424
  }
425
 
426
  /**
427
   * The "projects" collection of methods.
428
   * Typical usage is:
429
   *  <code>
430
   *   $bigqueryService = new Google_BigqueryService(...);
431
   *   $projects = $bigqueryService->projects;
432
   *  </code>
433
   */
434
  class Google_ProjectsServiceResource extends Google_ServiceResource {
435
 
436
 
437
    /**
438
     * Lists the projects to which you have at least read access. (projects.list)
439
     *
440
     * @param array $optParams Optional parameters.
441
     *
442
     * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
443
     * @opt_param string maxResults Maximum number of results to return
444
     * @return Google_ProjectList
445
     */
446
    public function listProjects($optParams = array()) {
447
      $params = array();
448
      $params = array_merge($params, $optParams);
449
      $data = $this->__call('list', array($params));
450
      if ($this->useObjects()) {
451
        return new Google_ProjectList($data);
452
      } else {
453
        return $data;
454
      }
455
    }
456
  }
457
 
458
/**
459
 * Service definition for Google_Bigquery (v2).
460
 *
461
 * <p>
462
 * A data platform for customers to create, manage, share and query data.
463
 * </p>
464
 *
465
 * <p>
466
 * For more information about this service, see the
467
 * <a href="https://code.google.com/apis/bigquery/docs/v2/" target="_blank">API Documentation</a>
468
 * </p>
469
 *
470
 * @author Google, Inc.
471
 */
472
class Google_BigqueryService extends Google_Service {
473
  public $tables;
474
  public $datasets;
475
  public $jobs;
476
  public $tabledata;
477
  public $projects;
478
  /**
479
   * Constructs the internal representation of the Bigquery service.
480
   *
481
   * @param Google_Client $client
482
   */
483
  public function __construct(Google_Client $client) {
484
    $this->servicePath = 'bigquery/v2/';
485
    $this->version = 'v2';
486
    $this->serviceName = 'bigquery';
487
 
488
    $client->addService($this->serviceName, $this->version);
489
    $this->tables = new Google_TablesServiceResource($this, $this->serviceName, 'tables', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "POST", "path": "projects/{projectId}/datasets/{datasetId}/tables", "id": "bigquery.tables.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tables.get", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "response": {"$ref": "Table"}}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "datasetId": {"required": true, "type": "string", "location": "path"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tables.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables", "response": {"$ref": "TableList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PUT", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PATCH", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.delete", "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
490
    $this->datasets = new Google_DatasetsServiceResource($this, $this->serviceName, 'datasets', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "POST", "path": "projects/{projectId}/datasets", "id": "bigquery.datasets.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.datasets.get", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}", "response": {"$ref": "Dataset"}}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.datasets.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets", "response": {"$ref": "DatasetList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "PUT", "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "PATCH", "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.delete", "parameters": {"deleteContents": {"type": "boolean", "location": "query"}, "datasetId": {"required": true, "type": "string", "location": "path"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
491
    $this->jobs = new Google_JobsServiceResource($this, $this->serviceName, 'jobs', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "request": {"$ref": "Job"}, "mediaUpload": {"protocols": {"simple": {"path": "/upload/bigquery/v2/projects/{projectId}/jobs", "multipart": true}, "resumable": {"path": "/resumable/upload/bigquery/v2/projects/{projectId}/jobs", "multipart": true}}, "accept": ["application/octet-stream"]}, "response": {"$ref": "Job"}, "httpMethod": "POST", "path": "projects/{projectId}/jobs", "id": "bigquery.jobs.insert"}, "query": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "QueryRequest"}, "response": {"$ref": "QueryResponse"}, "httpMethod": "POST", "path": "projects/{projectId}/queries", "id": "bigquery.jobs.query"}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projection": {"enum": ["full", "minimal"], "type": "string", "location": "query"}, "stateFilter": {"repeated": true, "enum": ["done", "pending", "running"], "type": "string", "location": "query"}, "projectId": {"required": true, "type": "string", "location": "path"}, "allUsers": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}}, "id": "bigquery.jobs.list", "httpMethod": "GET", "path": "projects/{projectId}/jobs", "response": {"$ref": "JobList"}}, "getQueryResults": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"timeoutMs": {"type": "integer", "location": "query", "format": "uint32"}, "projectId": {"required": true, "type": "string", "location": "path"}, "startIndex": {"type": "string", "location": "query", "format": "uint64"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "jobId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.jobs.getQueryResults", "httpMethod": "GET", "path": "projects/{projectId}/queries/{jobId}", "response": {"$ref": "GetQueryResultsResponse"}}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "jobId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.jobs.get", "httpMethod": "GET", "path": "projects/{projectId}/jobs/{jobId}", "response": {"$ref": "Job"}}}}', true));
492
    $this->tabledata = new Google_TabledataServiceResource($this, $this->serviceName, 'tabledata', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "startIndex": {"type": "string", "location": "query", "format": "uint64"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tabledata.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data", "response": {"$ref": "TableDataList"}}}}', true));
493
    $this->projects = new Google_ProjectsServiceResource($this, $this->serviceName, 'projects', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "ProjectList"}, "httpMethod": "GET", "path": "projects", "id": "bigquery.projects.list"}}}', true));
494
 
495
  }
496
}
497
 
498
class Google_Dataset extends Google_Model {
499
  public $kind;
500
  public $description;
501
  protected $__datasetReferenceType = 'Google_DatasetReference';
502
  protected $__datasetReferenceDataType = '';
503
  public $datasetReference;
504
  public $creationTime;
505
  protected $__accessType = 'Google_DatasetAccess';
506
  protected $__accessDataType = 'array';
507
  public $access;
508
  public $etag;
509
  public $friendlyName;
510
  public $lastModifiedTime;
511
  public $id;
512
  public $selfLink;
513
  public function setKind($kind) {
514
    $this->kind = $kind;
515
  }
516
  public function getKind() {
517
    return $this->kind;
518
  }
519
  public function setDescription($description) {
520
    $this->description = $description;
521
  }
522
  public function getDescription() {
523
    return $this->description;
524
  }
525
  public function setDatasetReference(Google_DatasetReference $datasetReference) {
526
    $this->datasetReference = $datasetReference;
527
  }
528
  public function getDatasetReference() {
529
    return $this->datasetReference;
530
  }
531
  public function setCreationTime($creationTime) {
532
    $this->creationTime = $creationTime;
533
  }
534
  public function getCreationTime() {
535
    return $this->creationTime;
536
  }
537
  public function setAccess(/* array(Google_DatasetAccess) */ $access) {
538
    $this->assertIsArray($access, 'Google_DatasetAccess', __METHOD__);
539
    $this->access = $access;
540
  }
541
  public function getAccess() {
542
    return $this->access;
543
  }
544
  public function setEtag($etag) {
545
    $this->etag = $etag;
546
  }
547
  public function getEtag() {
548
    return $this->etag;
549
  }
550
  public function setFriendlyName($friendlyName) {
551
    $this->friendlyName = $friendlyName;
552
  }
553
  public function getFriendlyName() {
554
    return $this->friendlyName;
555
  }
556
  public function setLastModifiedTime($lastModifiedTime) {
557
    $this->lastModifiedTime = $lastModifiedTime;
558
  }
559
  public function getLastModifiedTime() {
560
    return $this->lastModifiedTime;
561
  }
562
  public function setId($id) {
563
    $this->id = $id;
564
  }
565
  public function getId() {
566
    return $this->id;
567
  }
568
  public function setSelfLink($selfLink) {
569
    $this->selfLink = $selfLink;
570
  }
571
  public function getSelfLink() {
572
    return $this->selfLink;
573
  }
574
}
575
 
576
class Google_DatasetAccess extends Google_Model {
577
  public $specialGroup;
578
  public $domain;
579
  public $role;
580
  public $groupByEmail;
581
  public $userByEmail;
582
  public function setSpecialGroup($specialGroup) {
583
    $this->specialGroup = $specialGroup;
584
  }
585
  public function getSpecialGroup() {
586
    return $this->specialGroup;
587
  }
588
  public function setDomain($domain) {
589
    $this->domain = $domain;
590
  }
591
  public function getDomain() {
592
    return $this->domain;
593
  }
594
  public function setRole($role) {
595
    $this->role = $role;
596
  }
597
  public function getRole() {
598
    return $this->role;
599
  }
600
  public function setGroupByEmail($groupByEmail) {
601
    $this->groupByEmail = $groupByEmail;
602
  }
603
  public function getGroupByEmail() {
604
    return $this->groupByEmail;
605
  }
606
  public function setUserByEmail($userByEmail) {
607
    $this->userByEmail = $userByEmail;
608
  }
609
  public function getUserByEmail() {
610
    return $this->userByEmail;
611
  }
612
}
613
 
614
class Google_DatasetList extends Google_Model {
615
  public $nextPageToken;
616
  public $kind;
617
  protected $__datasetsType = 'Google_DatasetListDatasets';
618
  protected $__datasetsDataType = 'array';
619
  public $datasets;
620
  public $etag;
621
  public function setNextPageToken($nextPageToken) {
622
    $this->nextPageToken = $nextPageToken;
623
  }
624
  public function getNextPageToken() {
625
    return $this->nextPageToken;
626
  }
627
  public function setKind($kind) {
628
    $this->kind = $kind;
629
  }
630
  public function getKind() {
631
    return $this->kind;
632
  }
633
  public function setDatasets(/* array(Google_DatasetListDatasets) */ $datasets) {
634
    $this->assertIsArray($datasets, 'Google_DatasetListDatasets', __METHOD__);
635
    $this->datasets = $datasets;
636
  }
637
  public function getDatasets() {
638
    return $this->datasets;
639
  }
640
  public function setEtag($etag) {
641
    $this->etag = $etag;
642
  }
643
  public function getEtag() {
644
    return $this->etag;
645
  }
646
}
647
 
648
class Google_DatasetListDatasets extends Google_Model {
649
  public $friendlyName;
650
  public $kind;
651
  public $id;
652
  protected $__datasetReferenceType = 'Google_DatasetReference';
653
  protected $__datasetReferenceDataType = '';
654
  public $datasetReference;
655
  public function setFriendlyName($friendlyName) {
656
    $this->friendlyName = $friendlyName;
657
  }
658
  public function getFriendlyName() {
659
    return $this->friendlyName;
660
  }
661
  public function setKind($kind) {
662
    $this->kind = $kind;
663
  }
664
  public function getKind() {
665
    return $this->kind;
666
  }
667
  public function setId($id) {
668
    $this->id = $id;
669
  }
670
  public function getId() {
671
    return $this->id;
672
  }
673
  public function setDatasetReference(Google_DatasetReference $datasetReference) {
674
    $this->datasetReference = $datasetReference;
675
  }
676
  public function getDatasetReference() {
677
    return $this->datasetReference;
678
  }
679
}
680
 
681
class Google_DatasetReference extends Google_Model {
682
  public $projectId;
683
  public $datasetId;
684
  public function setProjectId($projectId) {
685
    $this->projectId = $projectId;
686
  }
687
  public function getProjectId() {
688
    return $this->projectId;
689
  }
690
  public function setDatasetId($datasetId) {
691
    $this->datasetId = $datasetId;
692
  }
693
  public function getDatasetId() {
694
    return $this->datasetId;
695
  }
696
}
697
 
698
class Google_ErrorProto extends Google_Model {
699
  public $debugInfo;
700
  public $message;
701
  public $reason;
702
  public $location;
703
  public function setDebugInfo($debugInfo) {
704
    $this->debugInfo = $debugInfo;
705
  }
706
  public function getDebugInfo() {
707
    return $this->debugInfo;
708
  }
709
  public function setMessage($message) {
710
    $this->message = $message;
711
  }
712
  public function getMessage() {
713
    return $this->message;
714
  }
715
  public function setReason($reason) {
716
    $this->reason = $reason;
717
  }
718
  public function getReason() {
719
    return $this->reason;
720
  }
721
  public function setLocation($location) {
722
    $this->location = $location;
723
  }
724
  public function getLocation() {
725
    return $this->location;
726
  }
727
}
728
 
729
class Google_GetQueryResultsResponse extends Google_Model {
730
  public $kind;
731
  protected $__rowsType = 'Google_TableRow';
732
  protected $__rowsDataType = 'array';
733
  public $rows;
734
  protected $__jobReferenceType = 'Google_JobReference';
735
  protected $__jobReferenceDataType = '';
736
  public $jobReference;
737
  public $jobComplete;
738
  public $totalRows;
739
  public $etag;
740
  protected $__schemaType = 'Google_TableSchema';
741
  protected $__schemaDataType = '';
742
  public $schema;
743
  public function setKind($kind) {
744
    $this->kind = $kind;
745
  }
746
  public function getKind() {
747
    return $this->kind;
748
  }
749
  public function setRows(/* array(Google_TableRow) */ $rows) {
750
    $this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
751
    $this->rows = $rows;
752
  }
753
  public function getRows() {
754
    return $this->rows;
755
  }
756
  public function setJobReference(Google_JobReference $jobReference) {
757
    $this->jobReference = $jobReference;
758
  }
759
  public function getJobReference() {
760
    return $this->jobReference;
761
  }
762
  public function setJobComplete($jobComplete) {
763
    $this->jobComplete = $jobComplete;
764
  }
765
  public function getJobComplete() {
766
    return $this->jobComplete;
767
  }
768
  public function setTotalRows($totalRows) {
769
    $this->totalRows = $totalRows;
770
  }
771
  public function getTotalRows() {
772
    return $this->totalRows;
773
  }
774
  public function setEtag($etag) {
775
    $this->etag = $etag;
776
  }
777
  public function getEtag() {
778
    return $this->etag;
779
  }
780
  public function setSchema(Google_TableSchema $schema) {
781
    $this->schema = $schema;
782
  }
783
  public function getSchema() {
784
    return $this->schema;
785
  }
786
}
787
 
788
class Google_Job extends Google_Model {
789
  protected $__statusType = 'Google_JobStatus';
790
  protected $__statusDataType = '';
791
  public $status;
792
  public $kind;
793
  protected $__statisticsType = 'Google_JobStatistics';
794
  protected $__statisticsDataType = '';
795
  public $statistics;
796
  protected $__jobReferenceType = 'Google_JobReference';
797
  protected $__jobReferenceDataType = '';
798
  public $jobReference;
799
  public $etag;
800
  protected $__configurationType = 'Google_JobConfiguration';
801
  protected $__configurationDataType = '';
802
  public $configuration;
803
  public $id;
804
  public $selfLink;
805
  public function setStatus(Google_JobStatus $status) {
806
    $this->status = $status;
807
  }
808
  public function getStatus() {
809
    return $this->status;
810
  }
811
  public function setKind($kind) {
812
    $this->kind = $kind;
813
  }
814
  public function getKind() {
815
    return $this->kind;
816
  }
817
  public function setStatistics(Google_JobStatistics $statistics) {
818
    $this->statistics = $statistics;
819
  }
820
  public function getStatistics() {
821
    return $this->statistics;
822
  }
823
  public function setJobReference(Google_JobReference $jobReference) {
824
    $this->jobReference = $jobReference;
825
  }
826
  public function getJobReference() {
827
    return $this->jobReference;
828
  }
829
  public function setEtag($etag) {
830
    $this->etag = $etag;
831
  }
832
  public function getEtag() {
833
    return $this->etag;
834
  }
835
  public function setConfiguration(Google_JobConfiguration $configuration) {
836
    $this->configuration = $configuration;
837
  }
838
  public function getConfiguration() {
839
    return $this->configuration;
840
  }
841
  public function setId($id) {
842
    $this->id = $id;
843
  }
844
  public function getId() {
845
    return $this->id;
846
  }
847
  public function setSelfLink($selfLink) {
848
    $this->selfLink = $selfLink;
849
  }
850
  public function getSelfLink() {
851
    return $this->selfLink;
852
  }
853
}
854
 
855
class Google_JobConfiguration extends Google_Model {
856
  protected $__loadType = 'Google_JobConfigurationLoad';
857
  protected $__loadDataType = '';
858
  public $load;
859
  protected $__linkType = 'Google_JobConfigurationLink';
860
  protected $__linkDataType = '';
861
  public $link;
862
  protected $__queryType = 'Google_JobConfigurationQuery';
863
  protected $__queryDataType = '';
864
  public $query;
865
  protected $__copyType = 'Google_JobConfigurationTableCopy';
866
  protected $__copyDataType = '';
867
  public $copy;
868
  protected $__extractType = 'Google_JobConfigurationExtract';
869
  protected $__extractDataType = '';
870
  public $extract;
871
  public $properties;
872
  public function setLoad(Google_JobConfigurationLoad $load) {
873
    $this->load = $load;
874
  }
875
  public function getLoad() {
876
    return $this->load;
877
  }
878
  public function setLink(Google_JobConfigurationLink $link) {
879
    $this->link = $link;
880
  }
881
  public function getLink() {
882
    return $this->link;
883
  }
884
  public function setQuery(Google_JobConfigurationQuery $query) {
885
    $this->query = $query;
886
  }
887
  public function getQuery() {
888
    return $this->query;
889
  }
890
  public function setCopy(Google_JobConfigurationTableCopy $copy) {
891
    $this->copy = $copy;
892
  }
893
  public function getCopy() {
894
    return $this->copy;
895
  }
896
  public function setExtract(Google_JobConfigurationExtract $extract) {
897
    $this->extract = $extract;
898
  }
899
  public function getExtract() {
900
    return $this->extract;
901
  }
902
  public function setProperties($properties) {
903
    $this->properties = $properties;
904
  }
905
  public function getProperties() {
906
    return $this->properties;
907
  }
908
}
909
 
910
class Google_JobConfigurationExtract extends Google_Model {
911
  public $destinationUri;
912
  public $fieldDelimiter;
913
  protected $__sourceTableType = 'Google_TableReference';
914
  protected $__sourceTableDataType = '';
915
  public $sourceTable;
916
  public $printHeader;
917
  public function setDestinationUri($destinationUri) {
918
    $this->destinationUri = $destinationUri;
919
  }
920
  public function getDestinationUri() {
921
    return $this->destinationUri;
922
  }
923
  public function setFieldDelimiter($fieldDelimiter) {
924
    $this->fieldDelimiter = $fieldDelimiter;
925
  }
926
  public function getFieldDelimiter() {
927
    return $this->fieldDelimiter;
928
  }
929
  public function setSourceTable(Google_TableReference $sourceTable) {
930
    $this->sourceTable = $sourceTable;
931
  }
932
  public function getSourceTable() {
933
    return $this->sourceTable;
934
  }
935
  public function setPrintHeader($printHeader) {
936
    $this->printHeader = $printHeader;
937
  }
938
  public function getPrintHeader() {
939
    return $this->printHeader;
940
  }
941
}
942
 
943
class Google_JobConfigurationLink extends Google_Model {
944
  public $createDisposition;
945
  public $writeDisposition;
946
  protected $__destinationTableType = 'Google_TableReference';
947
  protected $__destinationTableDataType = '';
948
  public $destinationTable;
949
  public $sourceUri;
950
  public function setCreateDisposition($createDisposition) {
951
    $this->createDisposition = $createDisposition;
952
  }
953
  public function getCreateDisposition() {
954
    return $this->createDisposition;
955
  }
956
  public function setWriteDisposition($writeDisposition) {
957
    $this->writeDisposition = $writeDisposition;
958
  }
959
  public function getWriteDisposition() {
960
    return $this->writeDisposition;
961
  }
962
  public function setDestinationTable(Google_TableReference $destinationTable) {
963
    $this->destinationTable = $destinationTable;
964
  }
965
  public function getDestinationTable() {
966
    return $this->destinationTable;
967
  }
968
  public function setSourceUri(/* array(Google_string) */ $sourceUri) {
969
    $this->assertIsArray($sourceUri, 'Google_string', __METHOD__);
970
    $this->sourceUri = $sourceUri;
971
  }
972
  public function getSourceUri() {
973
    return $this->sourceUri;
974
  }
975
}
976
 
977
class Google_JobConfigurationLoad extends Google_Model {
978
  public $encoding;
979
  public $fieldDelimiter;
980
  protected $__destinationTableType = 'Google_TableReference';
981
  protected $__destinationTableDataType = '';
982
  public $destinationTable;
983
  public $writeDisposition;
984
  public $maxBadRecords;
985
  public $skipLeadingRows;
986
  public $sourceUris;
987
  public $quote;
988
  public $createDisposition;
989
  public $schemaInlineFormat;
990
  public $schemaInline;
991
  protected $__schemaType = 'Google_TableSchema';
992
  protected $__schemaDataType = '';
993
  public $schema;
994
  public function setEncoding($encoding) {
995
    $this->encoding = $encoding;
996
  }
997
  public function getEncoding() {
998
    return $this->encoding;
999
  }
1000
  public function setFieldDelimiter($fieldDelimiter) {
1001
    $this->fieldDelimiter = $fieldDelimiter;
1002
  }
1003
  public function getFieldDelimiter() {
1004
    return $this->fieldDelimiter;
1005
  }
1006
  public function setDestinationTable(Google_TableReference $destinationTable) {
1007
    $this->destinationTable = $destinationTable;
1008
  }
1009
  public function getDestinationTable() {
1010
    return $this->destinationTable;
1011
  }
1012
  public function setWriteDisposition($writeDisposition) {
1013
    $this->writeDisposition = $writeDisposition;
1014
  }
1015
  public function getWriteDisposition() {
1016
    return $this->writeDisposition;
1017
  }
1018
  public function setMaxBadRecords($maxBadRecords) {
1019
    $this->maxBadRecords = $maxBadRecords;
1020
  }
1021
  public function getMaxBadRecords() {
1022
    return $this->maxBadRecords;
1023
  }
1024
  public function setSkipLeadingRows($skipLeadingRows) {
1025
    $this->skipLeadingRows = $skipLeadingRows;
1026
  }
1027
  public function getSkipLeadingRows() {
1028
    return $this->skipLeadingRows;
1029
  }
1030
  public function setSourceUris(/* array(Google_string) */ $sourceUris) {
1031
    $this->assertIsArray($sourceUris, 'Google_string', __METHOD__);
1032
    $this->sourceUris = $sourceUris;
1033
  }
1034
  public function getSourceUris() {
1035
    return $this->sourceUris;
1036
  }
1037
  public function setQuote($quote) {
1038
    $this->quote = $quote;
1039
  }
1040
  public function getQuote() {
1041
    return $this->quote;
1042
  }
1043
  public function setCreateDisposition($createDisposition) {
1044
    $this->createDisposition = $createDisposition;
1045
  }
1046
  public function getCreateDisposition() {
1047
    return $this->createDisposition;
1048
  }
1049
  public function setSchemaInlineFormat($schemaInlineFormat) {
1050
    $this->schemaInlineFormat = $schemaInlineFormat;
1051
  }
1052
  public function getSchemaInlineFormat() {
1053
    return $this->schemaInlineFormat;
1054
  }
1055
  public function setSchemaInline($schemaInline) {
1056
    $this->schemaInline = $schemaInline;
1057
  }
1058
  public function getSchemaInline() {
1059
    return $this->schemaInline;
1060
  }
1061
  public function setSchema(Google_TableSchema $schema) {
1062
    $this->schema = $schema;
1063
  }
1064
  public function getSchema() {
1065
    return $this->schema;
1066
  }
1067
}
1068
 
1069
class Google_JobConfigurationQuery extends Google_Model {
1070
  protected $__defaultDatasetType = 'Google_DatasetReference';
1071
  protected $__defaultDatasetDataType = '';
1072
  public $defaultDataset;
1073
  protected $__destinationTableType = 'Google_TableReference';
1074
  protected $__destinationTableDataType = '';
1075
  public $destinationTable;
1076
  public $priority;
1077
  public $writeDisposition;
1078
  public $createDisposition;
1079
  public $query;
1080
  public function setDefaultDataset(Google_DatasetReference $defaultDataset) {
1081
    $this->defaultDataset = $defaultDataset;
1082
  }
1083
  public function getDefaultDataset() {
1084
    return $this->defaultDataset;
1085
  }
1086
  public function setDestinationTable(Google_TableReference $destinationTable) {
1087
    $this->destinationTable = $destinationTable;
1088
  }
1089
  public function getDestinationTable() {
1090
    return $this->destinationTable;
1091
  }
1092
  public function setPriority($priority) {
1093
    $this->priority = $priority;
1094
  }
1095
  public function getPriority() {
1096
    return $this->priority;
1097
  }
1098
  public function setWriteDisposition($writeDisposition) {
1099
    $this->writeDisposition = $writeDisposition;
1100
  }
1101
  public function getWriteDisposition() {
1102
    return $this->writeDisposition;
1103
  }
1104
  public function setCreateDisposition($createDisposition) {
1105
    $this->createDisposition = $createDisposition;
1106
  }
1107
  public function getCreateDisposition() {
1108
    return $this->createDisposition;
1109
  }
1110
  public function setQuery($query) {
1111
    $this->query = $query;
1112
  }
1113
  public function getQuery() {
1114
    return $this->query;
1115
  }
1116
}
1117
 
1118
class Google_JobConfigurationTableCopy extends Google_Model {
1119
  public $createDisposition;
1120
  public $writeDisposition;
1121
  protected $__destinationTableType = 'Google_TableReference';
1122
  protected $__destinationTableDataType = '';
1123
  public $destinationTable;
1124
  protected $__sourceTableType = 'Google_TableReference';
1125
  protected $__sourceTableDataType = '';
1126
  public $sourceTable;
1127
  public function setCreateDisposition($createDisposition) {
1128
    $this->createDisposition = $createDisposition;
1129
  }
1130
  public function getCreateDisposition() {
1131
    return $this->createDisposition;
1132
  }
1133
  public function setWriteDisposition($writeDisposition) {
1134
    $this->writeDisposition = $writeDisposition;
1135
  }
1136
  public function getWriteDisposition() {
1137
    return $this->writeDisposition;
1138
  }
1139
  public function setDestinationTable(Google_TableReference $destinationTable) {
1140
    $this->destinationTable = $destinationTable;
1141
  }
1142
  public function getDestinationTable() {
1143
    return $this->destinationTable;
1144
  }
1145
  public function setSourceTable(Google_TableReference $sourceTable) {
1146
    $this->sourceTable = $sourceTable;
1147
  }
1148
  public function getSourceTable() {
1149
    return $this->sourceTable;
1150
  }
1151
}
1152
 
1153
class Google_JobList extends Google_Model {
1154
  public $nextPageToken;
1155
  public $totalItems;
1156
  public $kind;
1157
  public $etag;
1158
  protected $__jobsType = 'Google_JobListJobs';
1159
  protected $__jobsDataType = 'array';
1160
  public $jobs;
1161
  public function setNextPageToken($nextPageToken) {
1162
    $this->nextPageToken = $nextPageToken;
1163
  }
1164
  public function getNextPageToken() {
1165
    return $this->nextPageToken;
1166
  }
1167
  public function setTotalItems($totalItems) {
1168
    $this->totalItems = $totalItems;
1169
  }
1170
  public function getTotalItems() {
1171
    return $this->totalItems;
1172
  }
1173
  public function setKind($kind) {
1174
    $this->kind = $kind;
1175
  }
1176
  public function getKind() {
1177
    return $this->kind;
1178
  }
1179
  public function setEtag($etag) {
1180
    $this->etag = $etag;
1181
  }
1182
  public function getEtag() {
1183
    return $this->etag;
1184
  }
1185
  public function setJobs(/* array(Google_JobListJobs) */ $jobs) {
1186
    $this->assertIsArray($jobs, 'Google_JobListJobs', __METHOD__);
1187
    $this->jobs = $jobs;
1188
  }
1189
  public function getJobs() {
1190
    return $this->jobs;
1191
  }
1192
}
1193
 
1194
class Google_JobListJobs extends Google_Model {
1195
  protected $__statusType = 'Google_JobStatus';
1196
  protected $__statusDataType = '';
1197
  public $status;
1198
  public $kind;
1199
  protected $__statisticsType = 'Google_JobStatistics';
1200
  protected $__statisticsDataType = '';
1201
  public $statistics;
1202
  protected $__jobReferenceType = 'Google_JobReference';
1203
  protected $__jobReferenceDataType = '';
1204
  public $jobReference;
1205
  public $state;
1206
  protected $__configurationType = 'Google_JobConfiguration';
1207
  protected $__configurationDataType = '';
1208
  public $configuration;
1209
  public $id;
1210
  protected $__errorResultType = 'Google_ErrorProto';
1211
  protected $__errorResultDataType = '';
1212
  public $errorResult;
1213
  public function setStatus(Google_JobStatus $status) {
1214
    $this->status = $status;
1215
  }
1216
  public function getStatus() {
1217
    return $this->status;
1218
  }
1219
  public function setKind($kind) {
1220
    $this->kind = $kind;
1221
  }
1222
  public function getKind() {
1223
    return $this->kind;
1224
  }
1225
  public function setStatistics(Google_JobStatistics $statistics) {
1226
    $this->statistics = $statistics;
1227
  }
1228
  public function getStatistics() {
1229
    return $this->statistics;
1230
  }
1231
  public function setJobReference(Google_JobReference $jobReference) {
1232
    $this->jobReference = $jobReference;
1233
  }
1234
  public function getJobReference() {
1235
    return $this->jobReference;
1236
  }
1237
  public function setState($state) {
1238
    $this->state = $state;
1239
  }
1240
  public function getState() {
1241
    return $this->state;
1242
  }
1243
  public function setConfiguration(Google_JobConfiguration $configuration) {
1244
    $this->configuration = $configuration;
1245
  }
1246
  public function getConfiguration() {
1247
    return $this->configuration;
1248
  }
1249
  public function setId($id) {
1250
    $this->id = $id;
1251
  }
1252
  public function getId() {
1253
    return $this->id;
1254
  }
1255
  public function setErrorResult(Google_ErrorProto $errorResult) {
1256
    $this->errorResult = $errorResult;
1257
  }
1258
  public function getErrorResult() {
1259
    return $this->errorResult;
1260
  }
1261
}
1262
 
1263
class Google_JobReference extends Google_Model {
1264
  public $projectId;
1265
  public $jobId;
1266
  public function setProjectId($projectId) {
1267
    $this->projectId = $projectId;
1268
  }
1269
  public function getProjectId() {
1270
    return $this->projectId;
1271
  }
1272
  public function setJobId($jobId) {
1273
    $this->jobId = $jobId;
1274
  }
1275
  public function getJobId() {
1276
    return $this->jobId;
1277
  }
1278
}
1279
 
1280
class Google_JobStatistics extends Google_Model {
1281
  public $endTime;
1282
  public $totalBytesProcessed;
1283
  public $startTime;
1284
  public function setEndTime($endTime) {
1285
    $this->endTime = $endTime;
1286
  }
1287
  public function getEndTime() {
1288
    return $this->endTime;
1289
  }
1290
  public function setTotalBytesProcessed($totalBytesProcessed) {
1291
    $this->totalBytesProcessed = $totalBytesProcessed;
1292
  }
1293
  public function getTotalBytesProcessed() {
1294
    return $this->totalBytesProcessed;
1295
  }
1296
  public function setStartTime($startTime) {
1297
    $this->startTime = $startTime;
1298
  }
1299
  public function getStartTime() {
1300
    return $this->startTime;
1301
  }
1302
}
1303
 
1304
class Google_JobStatus extends Google_Model {
1305
  public $state;
1306
  protected $__errorsType = 'Google_ErrorProto';
1307
  protected $__errorsDataType = 'array';
1308
  public $errors;
1309
  protected $__errorResultType = 'Google_ErrorProto';
1310
  protected $__errorResultDataType = '';
1311
  public $errorResult;
1312
  public function setState($state) {
1313
    $this->state = $state;
1314
  }
1315
  public function getState() {
1316
    return $this->state;
1317
  }
1318
  public function setErrors(/* array(Google_ErrorProto) */ $errors) {
1319
    $this->assertIsArray($errors, 'Google_ErrorProto', __METHOD__);
1320
    $this->errors = $errors;
1321
  }
1322
  public function getErrors() {
1323
    return $this->errors;
1324
  }
1325
  public function setErrorResult(Google_ErrorProto $errorResult) {
1326
    $this->errorResult = $errorResult;
1327
  }
1328
  public function getErrorResult() {
1329
    return $this->errorResult;
1330
  }
1331
}
1332
 
1333
class Google_ProjectList extends Google_Model {
1334
  public $nextPageToken;
1335
  public $totalItems;
1336
  public $kind;
1337
  public $etag;
1338
  protected $__projectsType = 'Google_ProjectListProjects';
1339
  protected $__projectsDataType = 'array';
1340
  public $projects;
1341
  public function setNextPageToken($nextPageToken) {
1342
    $this->nextPageToken = $nextPageToken;
1343
  }
1344
  public function getNextPageToken() {
1345
    return $this->nextPageToken;
1346
  }
1347
  public function setTotalItems($totalItems) {
1348
    $this->totalItems = $totalItems;
1349
  }
1350
  public function getTotalItems() {
1351
    return $this->totalItems;
1352
  }
1353
  public function setKind($kind) {
1354
    $this->kind = $kind;
1355
  }
1356
  public function getKind() {
1357
    return $this->kind;
1358
  }
1359
  public function setEtag($etag) {
1360
    $this->etag = $etag;
1361
  }
1362
  public function getEtag() {
1363
    return $this->etag;
1364
  }
1365
  public function setProjects(/* array(Google_ProjectListProjects) */ $projects) {
1366
    $this->assertIsArray($projects, 'Google_ProjectListProjects', __METHOD__);
1367
    $this->projects = $projects;
1368
  }
1369
  public function getProjects() {
1370
    return $this->projects;
1371
  }
1372
}
1373
 
1374
class Google_ProjectListProjects extends Google_Model {
1375
  public $friendlyName;
1376
  public $kind;
1377
  public $id;
1378
  protected $__projectReferenceType = 'Google_ProjectReference';
1379
  protected $__projectReferenceDataType = '';
1380
  public $projectReference;
1381
  public function setFriendlyName($friendlyName) {
1382
    $this->friendlyName = $friendlyName;
1383
  }
1384
  public function getFriendlyName() {
1385
    return $this->friendlyName;
1386
  }
1387
  public function setKind($kind) {
1388
    $this->kind = $kind;
1389
  }
1390
  public function getKind() {
1391
    return $this->kind;
1392
  }
1393
  public function setId($id) {
1394
    $this->id = $id;
1395
  }
1396
  public function getId() {
1397
    return $this->id;
1398
  }
1399
  public function setProjectReference(Google_ProjectReference $projectReference) {
1400
    $this->projectReference = $projectReference;
1401
  }
1402
  public function getProjectReference() {
1403
    return $this->projectReference;
1404
  }
1405
}
1406
 
1407
class Google_ProjectReference extends Google_Model {
1408
  public $projectId;
1409
  public function setProjectId($projectId) {
1410
    $this->projectId = $projectId;
1411
  }
1412
  public function getProjectId() {
1413
    return $this->projectId;
1414
  }
1415
}
1416
 
1417
class Google_QueryRequest extends Google_Model {
1418
  public $timeoutMs;
1419
  public $kind;
1420
  public $dryRun;
1421
  protected $__defaultDatasetType = 'Google_DatasetReference';
1422
  protected $__defaultDatasetDataType = '';
1423
  public $defaultDataset;
1424
  public $maxResults;
1425
  public $query;
1426
  public function setTimeoutMs($timeoutMs) {
1427
    $this->timeoutMs = $timeoutMs;
1428
  }
1429
  public function getTimeoutMs() {
1430
    return $this->timeoutMs;
1431
  }
1432
  public function setKind($kind) {
1433
    $this->kind = $kind;
1434
  }
1435
  public function getKind() {
1436
    return $this->kind;
1437
  }
1438
  public function setDryRun($dryRun) {
1439
    $this->dryRun = $dryRun;
1440
  }
1441
  public function getDryRun() {
1442
    return $this->dryRun;
1443
  }
1444
  public function setDefaultDataset(Google_DatasetReference $defaultDataset) {
1445
    $this->defaultDataset = $defaultDataset;
1446
  }
1447
  public function getDefaultDataset() {
1448
    return $this->defaultDataset;
1449
  }
1450
  public function setMaxResults($maxResults) {
1451
    $this->maxResults = $maxResults;
1452
  }
1453
  public function getMaxResults() {
1454
    return $this->maxResults;
1455
  }
1456
  public function setQuery($query) {
1457
    $this->query = $query;
1458
  }
1459
  public function getQuery() {
1460
    return $this->query;
1461
  }
1462
}
1463
 
1464
class Google_QueryResponse extends Google_Model {
1465
  public $kind;
1466
  protected $__rowsType = 'Google_TableRow';
1467
  protected $__rowsDataType = 'array';
1468
  public $rows;
1469
  protected $__jobReferenceType = 'Google_JobReference';
1470
  protected $__jobReferenceDataType = '';
1471
  public $jobReference;
1472
  public $jobComplete;
1473
  public $totalRows;
1474
  protected $__schemaType = 'Google_TableSchema';
1475
  protected $__schemaDataType = '';
1476
  public $schema;
1477
  public function setKind($kind) {
1478
    $this->kind = $kind;
1479
  }
1480
  public function getKind() {
1481
    return $this->kind;
1482
  }
1483
  public function setRows(/* array(Google_TableRow) */ $rows) {
1484
    $this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
1485
    $this->rows = $rows;
1486
  }
1487
  public function getRows() {
1488
    return $this->rows;
1489
  }
1490
  public function setJobReference(Google_JobReference $jobReference) {
1491
    $this->jobReference = $jobReference;
1492
  }
1493
  public function getJobReference() {
1494
    return $this->jobReference;
1495
  }
1496
  public function setJobComplete($jobComplete) {
1497
    $this->jobComplete = $jobComplete;
1498
  }
1499
  public function getJobComplete() {
1500
    return $this->jobComplete;
1501
  }
1502
  public function setTotalRows($totalRows) {
1503
    $this->totalRows = $totalRows;
1504
  }
1505
  public function getTotalRows() {
1506
    return $this->totalRows;
1507
  }
1508
  public function setSchema(Google_TableSchema $schema) {
1509
    $this->schema = $schema;
1510
  }
1511
  public function getSchema() {
1512
    return $this->schema;
1513
  }
1514
}
1515
 
1516
class Google_Table extends Google_Model {
1517
  public $kind;
1518
  public $lastModifiedTime;
1519
  public $description;
1520
  public $creationTime;
1521
  protected $__tableReferenceType = 'Google_TableReference';
1522
  protected $__tableReferenceDataType = '';
1523
  public $tableReference;
1524
  public $numRows;
1525
  public $numBytes;
1526
  public $etag;
1527
  public $friendlyName;
1528
  public $expirationTime;
1529
  public $id;
1530
  public $selfLink;
1531
  protected $__schemaType = 'Google_TableSchema';
1532
  protected $__schemaDataType = '';
1533
  public $schema;
1534
  public function setKind($kind) {
1535
    $this->kind = $kind;
1536
  }
1537
  public function getKind() {
1538
    return $this->kind;
1539
  }
1540
  public function setLastModifiedTime($lastModifiedTime) {
1541
    $this->lastModifiedTime = $lastModifiedTime;
1542
  }
1543
  public function getLastModifiedTime() {
1544
    return $this->lastModifiedTime;
1545
  }
1546
  public function setDescription($description) {
1547
    $this->description = $description;
1548
  }
1549
  public function getDescription() {
1550
    return $this->description;
1551
  }
1552
  public function setCreationTime($creationTime) {
1553
    $this->creationTime = $creationTime;
1554
  }
1555
  public function getCreationTime() {
1556
    return $this->creationTime;
1557
  }
1558
  public function setTableReference(Google_TableReference $tableReference) {
1559
    $this->tableReference = $tableReference;
1560
  }
1561
  public function getTableReference() {
1562
    return $this->tableReference;
1563
  }
1564
  public function setNumRows($numRows) {
1565
    $this->numRows = $numRows;
1566
  }
1567
  public function getNumRows() {
1568
    return $this->numRows;
1569
  }
1570
  public function setNumBytes($numBytes) {
1571
    $this->numBytes = $numBytes;
1572
  }
1573
  public function getNumBytes() {
1574
    return $this->numBytes;
1575
  }
1576
  public function setEtag($etag) {
1577
    $this->etag = $etag;
1578
  }
1579
  public function getEtag() {
1580
    return $this->etag;
1581
  }
1582
  public function setFriendlyName($friendlyName) {
1583
    $this->friendlyName = $friendlyName;
1584
  }
1585
  public function getFriendlyName() {
1586
    return $this->friendlyName;
1587
  }
1588
  public function setExpirationTime($expirationTime) {
1589
    $this->expirationTime = $expirationTime;
1590
  }
1591
  public function getExpirationTime() {
1592
    return $this->expirationTime;
1593
  }
1594
  public function setId($id) {
1595
    $this->id = $id;
1596
  }
1597
  public function getId() {
1598
    return $this->id;
1599
  }
1600
  public function setSelfLink($selfLink) {
1601
    $this->selfLink = $selfLink;
1602
  }
1603
  public function getSelfLink() {
1604
    return $this->selfLink;
1605
  }
1606
  public function setSchema(Google_TableSchema $schema) {
1607
    $this->schema = $schema;
1608
  }
1609
  public function getSchema() {
1610
    return $this->schema;
1611
  }
1612
}
1613
 
1614
class Google_TableDataList extends Google_Model {
1615
  public $pageToken;
1616
  public $kind;
1617
  public $etag;
1618
  protected $__rowsType = 'Google_TableRow';
1619
  protected $__rowsDataType = 'array';
1620
  public $rows;
1621
  public $totalRows;
1622
  public function setPageToken($pageToken) {
1623
    $this->pageToken = $pageToken;
1624
  }
1625
  public function getPageToken() {
1626
    return $this->pageToken;
1627
  }
1628
  public function setKind($kind) {
1629
    $this->kind = $kind;
1630
  }
1631
  public function getKind() {
1632
    return $this->kind;
1633
  }
1634
  public function setEtag($etag) {
1635
    $this->etag = $etag;
1636
  }
1637
  public function getEtag() {
1638
    return $this->etag;
1639
  }
1640
  public function setRows(/* array(Google_TableRow) */ $rows) {
1641
    $this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
1642
    $this->rows = $rows;
1643
  }
1644
  public function getRows() {
1645
    return $this->rows;
1646
  }
1647
  public function setTotalRows($totalRows) {
1648
    $this->totalRows = $totalRows;
1649
  }
1650
  public function getTotalRows() {
1651
    return $this->totalRows;
1652
  }
1653
}
1654
 
1655
class Google_TableFieldSchema extends Google_Model {
1656
  protected $__fieldsType = 'Google_TableFieldSchema';
1657
  protected $__fieldsDataType = 'array';
1658
  public $fields;
1659
  public $type;
1660
  public $mode;
1661
  public $name;
1662
  public function setFields(/* array(Google_TableFieldSchema) */ $fields) {
1663
    $this->assertIsArray($fields, 'Google_TableFieldSchema', __METHOD__);
1664
    $this->fields = $fields;
1665
  }
1666
  public function getFields() {
1667
    return $this->fields;
1668
  }
1669
  public function setType($type) {
1670
    $this->type = $type;
1671
  }
1672
  public function getType() {
1673
    return $this->type;
1674
  }
1675
  public function setMode($mode) {
1676
    $this->mode = $mode;
1677
  }
1678
  public function getMode() {
1679
    return $this->mode;
1680
  }
1681
  public function setName($name) {
1682
    $this->name = $name;
1683
  }
1684
  public function getName() {
1685
    return $this->name;
1686
  }
1687
}
1688
 
1689
class Google_TableList extends Google_Model {
1690
  public $nextPageToken;
1691
  protected $__tablesType = 'Google_TableListTables';
1692
  protected $__tablesDataType = 'array';
1693
  public $tables;
1694
  public $kind;
1695
  public $etag;
1696
  public $totalItems;
1697
  public function setNextPageToken($nextPageToken) {
1698
    $this->nextPageToken = $nextPageToken;
1699
  }
1700
  public function getNextPageToken() {
1701
    return $this->nextPageToken;
1702
  }
1703
  public function setTables(/* array(Google_TableListTables) */ $tables) {
1704
    $this->assertIsArray($tables, 'Google_TableListTables', __METHOD__);
1705
    $this->tables = $tables;
1706
  }
1707
  public function getTables() {
1708
    return $this->tables;
1709
  }
1710
  public function setKind($kind) {
1711
    $this->kind = $kind;
1712
  }
1713
  public function getKind() {
1714
    return $this->kind;
1715
  }
1716
  public function setEtag($etag) {
1717
    $this->etag = $etag;
1718
  }
1719
  public function getEtag() {
1720
    return $this->etag;
1721
  }
1722
  public function setTotalItems($totalItems) {
1723
    $this->totalItems = $totalItems;
1724
  }
1725
  public function getTotalItems() {
1726
    return $this->totalItems;
1727
  }
1728
}
1729
 
1730
class Google_TableListTables extends Google_Model {
1731
  public $friendlyName;
1732
  public $kind;
1733
  public $id;
1734
  protected $__tableReferenceType = 'Google_TableReference';
1735
  protected $__tableReferenceDataType = '';
1736
  public $tableReference;
1737
  public function setFriendlyName($friendlyName) {
1738
    $this->friendlyName = $friendlyName;
1739
  }
1740
  public function getFriendlyName() {
1741
    return $this->friendlyName;
1742
  }
1743
  public function setKind($kind) {
1744
    $this->kind = $kind;
1745
  }
1746
  public function getKind() {
1747
    return $this->kind;
1748
  }
1749
  public function setId($id) {
1750
    $this->id = $id;
1751
  }
1752
  public function getId() {
1753
    return $this->id;
1754
  }
1755
  public function setTableReference(Google_TableReference $tableReference) {
1756
    $this->tableReference = $tableReference;
1757
  }
1758
  public function getTableReference() {
1759
    return $this->tableReference;
1760
  }
1761
}
1762
 
1763
class Google_TableReference extends Google_Model {
1764
  public $projectId;
1765
  public $tableId;
1766
  public $datasetId;
1767
  public function setProjectId($projectId) {
1768
    $this->projectId = $projectId;
1769
  }
1770
  public function getProjectId() {
1771
    return $this->projectId;
1772
  }
1773
  public function setTableId($tableId) {
1774
    $this->tableId = $tableId;
1775
  }
1776
  public function getTableId() {
1777
    return $this->tableId;
1778
  }
1779
  public function setDatasetId($datasetId) {
1780
    $this->datasetId = $datasetId;
1781
  }
1782
  public function getDatasetId() {
1783
    return $this->datasetId;
1784
  }
1785
}
1786
 
1787
class Google_TableRow extends Google_Model {
1788
  protected $__fType = 'Google_TableRowF';
1789
  protected $__fDataType = 'array';
1790
  public $f;
1791
  public function setF(/* array(Google_TableRowF) */ $f) {
1792
    $this->assertIsArray($f, 'Google_TableRowF', __METHOD__);
1793
    $this->f = $f;
1794
  }
1795
  public function getF() {
1796
    return $this->f;
1797
  }
1798
}
1799
 
1800
class Google_TableRowF extends Google_Model {
1801
  public $v;
1802
  public function setV($v) {
1803
    $this->v = $v;
1804
  }
1805
  public function getV() {
1806
    return $this->v;
1807
  }
1808
}
1809
 
1810
class Google_TableSchema extends Google_Model {
1811
  protected $__fieldsType = 'Google_TableFieldSchema';
1812
  protected $__fieldsDataType = 'array';
1813
  public $fields;
1814
  public function setFields(/* array(Google_TableFieldSchema) */ $fields) {
1815
    $this->assertIsArray($fields, 'Google_TableFieldSchema', __METHOD__);
1816
    $this->fields = $fields;
1817
  }
1818
  public function getFields() {
1819
    return $this->fields;
1820
  }
1821
}