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