PageRenderTime 45ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/Lib/google-api-php-client/contrib/Google_BigqueryService.php

https://bitbucket.org/addictionworldwide/google-bundle-for-symfony2
PHP | 1821 lines | 1503 code | 52 blank | 266 comment | 34 complexity | 52cdc203a5959b43c6a8a69b9cb16f45 MD5 | raw file
Possible License(s): Apache-2.0

Large files files are truncated, but you can click here to view the full file

  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. * The "tables" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $bigqueryService = new Google_BigqueryService(...);
  20. * $tables = $bigqueryService->tables;
  21. * </code>
  22. */
  23. class Google_TablesServiceResource extends Google_ServiceResource {
  24. /**
  25. * Creates a new, empty table in the dataset. (tables.insert)
  26. *
  27. * @param string $projectId Project ID of the new table
  28. * @param string $datasetId Dataset ID of the new table
  29. * @param Google_Table $postBody
  30. * @param array $optParams Optional parameters.
  31. * @return Google_Table
  32. */
  33. public function insert($projectId, $datasetId, Google_Table $postBody, $optParams = array()) {
  34. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
  35. $params = array_merge($params, $optParams);
  36. $data = $this->__call('insert', array($params));
  37. if ($this->useObjects()) {
  38. return new Google_Table($data);
  39. } else {
  40. return $data;
  41. }
  42. }
  43. /**
  44. * Gets the specified table resource by table ID. This method does not return the data in the table,
  45. * it only returns the table resource, which describes the structure of this table. (tables.get)
  46. *
  47. * @param string $projectId Project ID of the requested table
  48. * @param string $datasetId Dataset ID of the requested table
  49. * @param string $tableId Table ID of the requested table
  50. * @param array $optParams Optional parameters.
  51. * @return Google_Table
  52. */
  53. public function get($projectId, $datasetId, $tableId, $optParams = array()) {
  54. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
  55. $params = array_merge($params, $optParams);
  56. $data = $this->__call('get', array($params));
  57. if ($this->useObjects()) {
  58. return new Google_Table($data);
  59. } else {
  60. return $data;
  61. }
  62. }
  63. /**
  64. * Lists all tables in the specified dataset. (tables.list)
  65. *
  66. * @param string $projectId Project ID of the tables to list
  67. * @param string $datasetId Dataset ID of the tables to list
  68. * @param array $optParams Optional parameters.
  69. *
  70. * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
  71. * @opt_param string maxResults Maximum number of results to return
  72. * @return Google_TableList
  73. */
  74. public function listTables($projectId, $datasetId, $optParams = array()) {
  75. $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
  76. $params = array_merge($params, $optParams);
  77. $data = $this->__call('list', array($params));
  78. if ($this->useObjects()) {
  79. return new Google_TableList($data);
  80. } else {
  81. return $data;
  82. }
  83. }
  84. /**
  85. * Updates information in an existing table, specified by tableId. (tables.update)
  86. *
  87. * @param string $projectId Project ID of the table to update
  88. * @param string $datasetId Dataset ID of the table to update
  89. * @param string $tableId Table ID of the table to update
  90. * @param Google_Table $postBody
  91. * @param array $optParams Optional parameters.
  92. * @return Google_Table
  93. */
  94. public function update($projectId, $datasetId, $tableId, Google_Table $postBody, $optParams = array()) {
  95. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
  96. $params = array_merge($params, $optParams);
  97. $data = $this->__call('update', array($params));
  98. if ($this->useObjects()) {
  99. return new Google_Table($data);
  100. } else {
  101. return $data;
  102. }
  103. }
  104. /**
  105. * Updates information in an existing table, specified by tableId. This method supports patch
  106. * semantics. (tables.patch)
  107. *
  108. * @param string $projectId Project ID of the table to update
  109. * @param string $datasetId Dataset ID of the table to update
  110. * @param string $tableId Table ID of the table to update
  111. * @param Google_Table $postBody
  112. * @param array $optParams Optional parameters.
  113. * @return Google_Table
  114. */
  115. public function patch($projectId, $datasetId, $tableId, Google_Table $postBody, $optParams = array()) {
  116. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
  117. $params = array_merge($params, $optParams);
  118. $data = $this->__call('patch', array($params));
  119. if ($this->useObjects()) {
  120. return new Google_Table($data);
  121. } else {
  122. return $data;
  123. }
  124. }
  125. /**
  126. * Deletes the table specified by tableId from the dataset. If the table contains data, all the data
  127. * will be deleted. (tables.delete)
  128. *
  129. * @param string $projectId Project ID of the table to delete
  130. * @param string $datasetId Dataset ID of the table to delete
  131. * @param string $tableId Table ID of the table to delete
  132. * @param array $optParams Optional parameters.
  133. */
  134. public function delete($projectId, $datasetId, $tableId, $optParams = array()) {
  135. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
  136. $params = array_merge($params, $optParams);
  137. $data = $this->__call('delete', array($params));
  138. return $data;
  139. }
  140. }
  141. /**
  142. * The "datasets" collection of methods.
  143. * Typical usage is:
  144. * <code>
  145. * $bigqueryService = new Google_BigqueryService(...);
  146. * $datasets = $bigqueryService->datasets;
  147. * </code>
  148. */
  149. class Google_DatasetsServiceResource extends Google_ServiceResource {
  150. /**
  151. * Creates a new empty dataset. (datasets.insert)
  152. *
  153. * @param string $projectId Project ID of the new dataset
  154. * @param Google_Dataset $postBody
  155. * @param array $optParams Optional parameters.
  156. * @return Google_Dataset
  157. */
  158. public function insert($projectId, Google_Dataset $postBody, $optParams = array()) {
  159. $params = array('projectId' => $projectId, 'postBody' => $postBody);
  160. $params = array_merge($params, $optParams);
  161. $data = $this->__call('insert', array($params));
  162. if ($this->useObjects()) {
  163. return new Google_Dataset($data);
  164. } else {
  165. return $data;
  166. }
  167. }
  168. /**
  169. * Returns the dataset specified by datasetID. (datasets.get)
  170. *
  171. * @param string $projectId Project ID of the requested dataset
  172. * @param string $datasetId Dataset ID of the requested dataset
  173. * @param array $optParams Optional parameters.
  174. * @return Google_Dataset
  175. */
  176. public function get($projectId, $datasetId, $optParams = array()) {
  177. $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
  178. $params = array_merge($params, $optParams);
  179. $data = $this->__call('get', array($params));
  180. if ($this->useObjects()) {
  181. return new Google_Dataset($data);
  182. } else {
  183. return $data;
  184. }
  185. }
  186. /**
  187. * Lists all the datasets in the specified project to which the caller has read access; however, a
  188. * project owner can list (but not necessarily get) all datasets in his project. (datasets.list)
  189. *
  190. * @param string $projectId Project ID of the datasets to be listed
  191. * @param array $optParams Optional parameters.
  192. *
  193. * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
  194. * @opt_param string maxResults The maximum number of results to return
  195. * @return Google_DatasetList
  196. */
  197. public function listDatasets($projectId, $optParams = array()) {
  198. $params = array('projectId' => $projectId);
  199. $params = array_merge($params, $optParams);
  200. $data = $this->__call('list', array($params));
  201. if ($this->useObjects()) {
  202. return new Google_DatasetList($data);
  203. } else {
  204. return $data;
  205. }
  206. }
  207. /**
  208. * Updates information in an existing dataset, specified by datasetId. Properties not included in
  209. * the submitted resource will not be changed. If you include the access property without any values
  210. * assigned, the request will fail as you must specify at least one owner for a dataset.
  211. * (datasets.update)
  212. *
  213. * @param string $projectId Project ID of the dataset being updated
  214. * @param string $datasetId Dataset ID of the dataset being updated
  215. * @param Google_Dataset $postBody
  216. * @param array $optParams Optional parameters.
  217. * @return Google_Dataset
  218. */
  219. public function update($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
  220. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
  221. $params = array_merge($params, $optParams);
  222. $data = $this->__call('update', array($params));
  223. if ($this->useObjects()) {
  224. return new Google_Dataset($data);
  225. } else {
  226. return $data;
  227. }
  228. }
  229. /**
  230. * Updates information in an existing dataset, specified by datasetId. Properties not included in
  231. * the submitted resource will not be changed. If you include the access property without any values
  232. * assigned, the request will fail as you must specify at least one owner for a dataset. This method
  233. * supports patch semantics. (datasets.patch)
  234. *
  235. * @param string $projectId Project ID of the dataset being updated
  236. * @param string $datasetId Dataset ID of the dataset being updated
  237. * @param Google_Dataset $postBody
  238. * @param array $optParams Optional parameters.
  239. * @return Google_Dataset
  240. */
  241. public function patch($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
  242. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
  243. $params = array_merge($params, $optParams);
  244. $data = $this->__call('patch', array($params));
  245. if ($this->useObjects()) {
  246. return new Google_Dataset($data);
  247. } else {
  248. return $data;
  249. }
  250. }
  251. /**
  252. * Deletes the dataset specified by datasetId value. Before you can delete a dataset, you must
  253. * delete all its tables, either manually or by specifying deleteContents. Immediately after
  254. * deletion, you can create another dataset with the same name. (datasets.delete)
  255. *
  256. * @param string $projectId Project ID of the dataset being deleted
  257. * @param string $datasetId Dataset ID of dataset being deleted
  258. * @param array $optParams Optional parameters.
  259. *
  260. * @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
  261. */
  262. public function delete($projectId, $datasetId, $optParams = array()) {
  263. $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
  264. $params = array_merge($params, $optParams);
  265. $data = $this->__call('delete', array($params));
  266. return $data;
  267. }
  268. }
  269. /**
  270. * The "jobs" collection of methods.
  271. * Typical usage is:
  272. * <code>
  273. * $bigqueryService = new Google_BigqueryService(...);
  274. * $jobs = $bigqueryService->jobs;
  275. * </code>
  276. */
  277. class Google_JobsServiceResource extends Google_ServiceResource {
  278. /**
  279. * Starts a new asynchronous job. (jobs.insert)
  280. *
  281. * @param string $projectId Project ID of the project that will be billed for the job
  282. * @param Google_Job $postBody
  283. * @param array $optParams Optional parameters.
  284. * @return Google_Job
  285. */
  286. public function insert($projectId, Google_Job $postBody, $optParams = array()) {
  287. $params = array('projectId' => $projectId, 'postBody' => $postBody);
  288. $params = array_merge($params, $optParams);
  289. $data = $this->__call('insert', array($params));
  290. if ($this->useObjects()) {
  291. return new Google_Job($data);
  292. } else {
  293. return $data;
  294. }
  295. }
  296. /**
  297. * Runs a BigQuery SQL query synchronously and returns query results if the query completes within a
  298. * specified timeout. (jobs.query)
  299. *
  300. * @param string $projectId Project ID of the project billed for the query
  301. * @param Google_QueryRequest $postBody
  302. * @param array $optParams Optional parameters.
  303. * @return Google_QueryResponse
  304. */
  305. public function query($projectId, Google_QueryRequest $postBody, $optParams = array()) {
  306. $params = array('projectId' => $projectId, 'postBody' => $postBody);
  307. $params = array_merge($params, $optParams);
  308. $data = $this->__call('query', array($params));
  309. if ($this->useObjects()) {
  310. return new Google_QueryResponse($data);
  311. } else {
  312. return $data;
  313. }
  314. }
  315. /**
  316. * Lists all the Jobs in the specified project that were started by the user. (jobs.list)
  317. *
  318. * @param string $projectId Project ID of the jobs to list
  319. * @param array $optParams Optional parameters.
  320. *
  321. * @opt_param string projection Restrict information returned to a set of selected fields
  322. * @opt_param string stateFilter Filter for job state
  323. * @opt_param bool allUsers Whether to display jobs owned by all users in the project. Default false
  324. * @opt_param string maxResults Maximum number of results to return
  325. * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
  326. * @return Google_JobList
  327. */
  328. public function listJobs($projectId, $optParams = array()) {
  329. $params = array('projectId' => $projectId);
  330. $params = array_merge($params, $optParams);
  331. $data = $this->__call('list', array($params));
  332. if ($this->useObjects()) {
  333. return new Google_JobList($data);
  334. } else {
  335. return $data;
  336. }
  337. }
  338. /**
  339. * Retrieves the results of a query job. (jobs.getQueryResults)
  340. *
  341. * @param string $projectId Project ID of the query job
  342. * @param string $jobId Job ID of the query job
  343. * @param array $optParams Optional parameters.
  344. *
  345. * @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
  346. * @opt_param string startIndex Zero-based index of the starting row
  347. * @opt_param string maxResults Maximum number of results to read
  348. * @return Google_GetQueryResultsResponse
  349. */
  350. public function getQueryResults($projectId, $jobId, $optParams = array()) {
  351. $params = array('projectId' => $projectId, 'jobId' => $jobId);
  352. $params = array_merge($params, $optParams);
  353. $data = $this->__call('getQueryResults', array($params));
  354. if ($this->useObjects()) {
  355. return new Google_GetQueryResultsResponse($data);
  356. } else {
  357. return $data;
  358. }
  359. }
  360. /**
  361. * Retrieves the specified job by ID. (jobs.get)
  362. *
  363. * @param string $projectId Project ID of the requested job
  364. * @param string $jobId Job ID of the requested job
  365. * @param array $optParams Optional parameters.
  366. * @return Google_Job
  367. */
  368. public function get($projectId, $jobId, $optParams = array()) {
  369. $params = array('projectId' => $projectId, 'jobId' => $jobId);
  370. $params = array_merge($params, $optParams);
  371. $data = $this->__call('get', array($params));
  372. if ($this->useObjects()) {
  373. return new Google_Job($data);
  374. } else {
  375. return $data;
  376. }
  377. }
  378. }
  379. /**
  380. * The "tabledata" collection of methods.
  381. * Typical usage is:
  382. * <code>
  383. * $bigqueryService = new Google_BigqueryService(...);
  384. * $tabledata = $bigqueryService->tabledata;
  385. * </code>
  386. */
  387. class Google_TabledataServiceResource extends Google_ServiceResource {
  388. /**
  389. * Retrieves table data from a specified set of rows. (tabledata.list)
  390. *
  391. * @param string $projectId Project ID of the table to read
  392. * @param string $datasetId Dataset ID of the table to read
  393. * @param string $tableId Table ID of the table to read
  394. * @param array $optParams Optional parameters.
  395. *
  396. * @opt_param string maxResults Maximum number of results to return
  397. * @opt_param string pageToken Page token, returned by a previous call, identifying the result set
  398. * @opt_param string startIndex Zero-based index of the starting row to read
  399. * @return Google_TableDataList
  400. */
  401. public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) {
  402. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
  403. $params = array_merge($params, $optParams);
  404. $data = $this->__call('list', array($params));
  405. if ($this->useObjects()) {
  406. return new Google_TableDataList($data);
  407. } else {
  408. return $data;
  409. }
  410. }
  411. }
  412. /**
  413. * The "projects" collection of methods.
  414. * Typical usage is:
  415. * <code>
  416. * $bigqueryService = new Google_BigqueryService(...);
  417. * $projects = $bigqueryService->projects;
  418. * </code>
  419. */
  420. class Google_ProjectsServiceResource extends Google_ServiceResource {
  421. /**
  422. * Lists the projects to which you have at least read access. (projects.list)
  423. *
  424. * @param array $optParams Optional parameters.
  425. *
  426. * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
  427. * @opt_param string maxResults Maximum number of results to return
  428. * @return Google_ProjectList
  429. */
  430. public function listProjects($optParams = array()) {
  431. $params = array();
  432. $params = array_merge($params, $optParams);
  433. $data = $this->__call('list', array($params));
  434. if ($this->useObjects()) {
  435. return new Google_ProjectList($data);
  436. } else {
  437. return $data;
  438. }
  439. }
  440. }
  441. /**
  442. * Service definition for Google_Bigquery (v2).
  443. *
  444. * <p>
  445. * A data platform for customers to create, manage, share and query data.
  446. * </p>
  447. *
  448. * <p>
  449. * For more information about this service, see the
  450. * <a href="https://code.google.com/apis/bigquery/docs/v2/" target="_blank">API Documentation</a>
  451. * </p>
  452. *
  453. * @author Google, Inc.
  454. */
  455. class Google_BigqueryService extends Google_Service {
  456. public $tables;
  457. public $datasets;
  458. public $jobs;
  459. public $tabledata;
  460. public $projects;
  461. /**
  462. * Constructs the internal representation of the Bigquery service.
  463. *
  464. * @param Google_Client $client
  465. */
  466. public function __construct(Google_Client $client) {
  467. $this->servicePath = 'bigquery/v2/';
  468. $this->version = 'v2';
  469. $this->serviceName = 'bigquery';
  470. $client->addService($this->serviceName, $this->version);
  471. $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));
  472. $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));
  473. $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));
  474. $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));
  475. $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));
  476. }
  477. }
  478. class Google_Dataset extends Google_Model {
  479. public $kind;
  480. public $description;
  481. protected $__datasetReferenceType = 'Google_DatasetReference';
  482. protected $__datasetReferenceDataType = '';
  483. public $datasetReference;
  484. public $creationTime;
  485. protected $__accessType = 'Google_DatasetAccess';
  486. protected $__accessDataType = 'array';
  487. public $access;
  488. public $etag;
  489. public $friendlyName;
  490. public $lastModifiedTime;
  491. public $id;
  492. public $selfLink;
  493. public function setKind($kind) {
  494. $this->kind = $kind;
  495. }
  496. public function getKind() {
  497. return $this->kind;
  498. }
  499. public function setDescription($description) {
  500. $this->description = $description;
  501. }
  502. public function getDescription() {
  503. return $this->description;
  504. }
  505. public function setDatasetReference(Google_DatasetReference $datasetReference) {
  506. $this->datasetReference = $datasetReference;
  507. }
  508. public function getDatasetReference() {
  509. return $this->datasetReference;
  510. }
  511. public function setCreationTime($creationTime) {
  512. $this->creationTime = $creationTime;
  513. }
  514. public function getCreationTime() {
  515. return $this->creationTime;
  516. }
  517. public function setAccess(/* array(Google_DatasetAccess) */ $access) {
  518. $this->assertIsArray($access, 'Google_DatasetAccess', __METHOD__);
  519. $this->access = $access;
  520. }
  521. public function getAccess() {
  522. return $this->access;
  523. }
  524. public function setEtag($etag) {
  525. $this->etag = $etag;
  526. }
  527. public function getEtag() {
  528. return $this->etag;
  529. }
  530. public function setFriendlyName($friendlyName) {
  531. $this->friendlyName = $friendlyName;
  532. }
  533. public function getFriendlyName() {
  534. return $this->friendlyName;
  535. }
  536. public function setLastModifiedTime($lastModifiedTime) {
  537. $this->lastModifiedTime = $lastModifiedTime;
  538. }
  539. public function getLastModifiedTime() {
  540. return $this->lastModifiedTime;
  541. }
  542. public function setId($id) {
  543. $this->id = $id;
  544. }
  545. public function getId() {
  546. return $this->id;
  547. }
  548. public function setSelfLink($selfLink) {
  549. $this->selfLink = $selfLink;
  550. }
  551. public function getSelfLink() {
  552. return $this->selfLink;
  553. }
  554. }
  555. class Google_DatasetAccess extends Google_Model {
  556. public $specialGroup;
  557. public $domain;
  558. public $role;
  559. public $groupByEmail;
  560. public $userByEmail;
  561. public function setSpecialGroup($specialGroup) {
  562. $this->specialGroup = $specialGroup;
  563. }
  564. public function getSpecialGroup() {
  565. return $this->specialGroup;
  566. }
  567. public function setDomain($domain) {
  568. $this->domain = $domain;
  569. }
  570. public function getDomain() {
  571. return $this->domain;
  572. }
  573. public function setRole($role) {
  574. $this->role = $role;
  575. }
  576. public function getRole() {
  577. return $this->role;
  578. }
  579. public function setGroupByEmail($groupByEmail) {
  580. $this->groupByEmail = $groupByEmail;
  581. }
  582. public function getGroupByEmail() {
  583. return $this->groupByEmail;
  584. }
  585. public function setUserByEmail($userByEmail) {
  586. $this->userByEmail = $userByEmail;
  587. }
  588. public function getUserByEmail() {
  589. return $this->userByEmail;
  590. }
  591. }
  592. class Google_DatasetList extends Google_Model {
  593. public $nextPageToken;
  594. public $kind;
  595. protected $__datasetsType = 'Google_DatasetListDatasets';
  596. protected $__datasetsDataType = 'array';
  597. public $datasets;
  598. public $etag;
  599. public function setNextPageToken($nextPageToken) {
  600. $this->nextPageToken = $nextPageToken;
  601. }
  602. public function getNextPageToken() {
  603. return $this->nextPageToken;
  604. }
  605. public function setKind($kind) {
  606. $this->kind = $kind;
  607. }
  608. public function getKind() {
  609. return $this->kind;
  610. }
  611. public function setDatasets(/* array(Google_DatasetListDatasets) */ $datasets) {
  612. $this->assertIsArray($datasets, 'Google_DatasetListDatasets', __METHOD__);
  613. $this->datasets = $datasets;
  614. }
  615. public function getDatasets() {
  616. return $this->datasets;
  617. }
  618. public function setEtag($etag) {
  619. $this->etag = $etag;
  620. }
  621. public function getEtag() {
  622. return $this->etag;
  623. }
  624. }
  625. class Google_DatasetListDatasets extends Google_Model {
  626. public $friendlyName;
  627. public $kind;
  628. public $id;
  629. protected $__datasetReferenceType = 'Google_DatasetReference';
  630. protected $__datasetReferenceDataType = '';
  631. public $datasetReference;
  632. public function setFriendlyName($friendlyName) {
  633. $this->friendlyName = $friendlyName;
  634. }
  635. public function getFriendlyName() {
  636. return $this->friendlyName;
  637. }
  638. public function setKind($kind) {
  639. $this->kind = $kind;
  640. }
  641. public function getKind() {
  642. return $this->kind;
  643. }
  644. public function setId($id) {
  645. $this->id = $id;
  646. }
  647. public function getId() {
  648. return $this->id;
  649. }
  650. public function setDatasetReference(Google_DatasetReference $datasetReference) {
  651. $this->datasetReference = $datasetReference;
  652. }
  653. public function getDatasetReference() {
  654. return $this->datasetReference;
  655. }
  656. }
  657. class Google_DatasetReference extends Google_Model {
  658. public $projectId;
  659. public $datasetId;
  660. public function setProjectId($projectId) {
  661. $this->projectId = $projectId;
  662. }
  663. public function getProjectId() {
  664. return $this->projectId;
  665. }
  666. public function setDatasetId($datasetId) {
  667. $this->datasetId = $datasetId;
  668. }
  669. public function getDatasetId() {
  670. return $this->datasetId;
  671. }
  672. }
  673. class Google_ErrorProto extends Google_Model {
  674. public $debugInfo;
  675. public $message;
  676. public $reason;
  677. public $location;
  678. public function setDebugInfo($debugInfo) {
  679. $this->debugInfo = $debugInfo;
  680. }
  681. public function getDebugInfo() {
  682. return $this->debugInfo;
  683. }
  684. public function setMessage($message) {
  685. $this->message = $message;
  686. }
  687. public function getMessage() {
  688. return $this->message;
  689. }
  690. public function setReason($reason) {
  691. $this->reason = $reason;
  692. }
  693. public function getReason() {
  694. return $this->reason;
  695. }
  696. public function setLocation($location) {
  697. $this->location = $location;
  698. }
  699. public function getLocation() {
  700. return $this->location;
  701. }
  702. }
  703. class Google_GetQueryResultsResponse extends Google_Model {
  704. public $kind;
  705. protected $__rowsType = 'Google_TableRow';
  706. protected $__rowsDataType = 'array';
  707. public $rows;
  708. protected $__jobReferenceType = 'Google_JobReference';
  709. protected $__jobReferenceDataType = '';
  710. public $jobReference;
  711. public $jobComplete;
  712. public $totalRows;
  713. public $etag;
  714. protected $__schemaType = 'Google_TableSchema';
  715. protected $__schemaDataType = '';
  716. public $schema;
  717. public function setKind($kind) {
  718. $this->kind = $kind;
  719. }
  720. public function getKind() {
  721. return $this->kind;
  722. }
  723. public function setRows(/* array(Google_TableRow) */ $rows) {
  724. $this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
  725. $this->rows = $rows;
  726. }
  727. public function getRows() {
  728. return $this->rows;
  729. }
  730. public function setJobReference(Google_JobReference $jobReference) {
  731. $this->jobReference = $jobReference;
  732. }
  733. public function getJobReference() {
  734. return $this->jobReference;
  735. }
  736. public function setJobComplete($jobComplete) {
  737. $this->jobComplete = $jobComplete;
  738. }
  739. public function getJobComplete() {
  740. return $this->jobComplete;
  741. }
  742. public function setTotalRows($totalRows) {
  743. $this->totalRows = $totalRows;
  744. }
  745. public function getTotalRows() {
  746. return $this->totalRows;
  747. }
  748. public function setEtag($etag) {
  749. $this->etag = $etag;
  750. }
  751. public function getEtag() {
  752. return $this->etag;
  753. }
  754. public function setSchema(Google_TableSchema $schema) {
  755. $this->schema = $schema;
  756. }
  757. public function getSchema() {
  758. return $this->schema;
  759. }
  760. }
  761. class Google_Job extends Google_Model {
  762. protected $__statusType = 'Google_JobStatus';
  763. protected $__statusDataType = '';
  764. public $status;
  765. public $kind;
  766. protected $__statisticsType = 'Google_JobStatistics';
  767. protected $__statisticsDataType = '';
  768. public $statistics;
  769. protected $__jobReferenceType = 'Google_JobReference';
  770. protected $__jobReferenceDataType = '';
  771. public $jobReference;
  772. public $etag;
  773. protected $__configurationType = 'Google_JobConfiguration';
  774. protected $__configurationDataType = '';
  775. public $configuration;
  776. public $id;
  777. public $selfLink;
  778. public function setStatus(Google_JobStatus $status) {
  779. $this->status = $status;
  780. }
  781. public function getStatus() {
  782. return $this->status;
  783. }
  784. public function setKind($kind) {
  785. $this->kind = $kind;
  786. }
  787. public function getKind() {
  788. return $this->kind;
  789. }
  790. public function setStatistics(Google_JobStatistics $statistics) {
  791. $this->statistics = $statistics;
  792. }
  793. public function getStatistics() {
  794. return $this->statistics;
  795. }
  796. public function setJobReference(Google_JobReference $jobReference) {
  797. $this->jobReference = $jobReference;
  798. }
  799. public function getJobReference() {
  800. return $this->jobReference;
  801. }
  802. public function setEtag($etag) {
  803. $this->etag = $etag;
  804. }
  805. public function getEtag() {
  806. return $this->etag;
  807. }
  808. public function setConfiguration(Google_JobConfiguration $configuration) {
  809. $this->configuration = $configuration;
  810. }
  811. public function getConfiguration() {
  812. return $this->configuration;
  813. }
  814. public function setId($id) {
  815. $this->id = $id;
  816. }
  817. public function getId() {
  818. return $this->id;
  819. }
  820. public function setSelfLink($selfLink) {
  821. $this->selfLink = $selfLink;
  822. }
  823. public function getSelfLink() {
  824. return $this->selfLink;
  825. }
  826. }
  827. class Google_JobConfiguration extends Google_Model {
  828. protected $__loadType = 'Google_JobConfigurationLoad';
  829. protected $__loadDataType = '';
  830. public $load;
  831. protected $__linkType = 'Google_JobConfigurationLink';
  832. protected $__linkDataType = '';
  833. public $link;
  834. protected $__queryType = 'Google_JobConfigurationQuery';
  835. protected $__queryDataType = '';
  836. public $query;
  837. protected $__copyType = 'Google_JobConfigurationTableCopy';
  838. protected $__copyDataType = '';
  839. public $copy;
  840. protected $__extractType = 'Google_JobConfigurationExtract';
  841. protected $__extractDataType = '';
  842. public $extract;
  843. public $properties;
  844. public function setLoad(Google_JobConfigurationLoad $load) {
  845. $this->load = $load;
  846. }
  847. public function getLoad() {
  848. return $this->load;
  849. }
  850. public function setLink(Google_JobConfigurationLink $link) {
  851. $this->link = $link;
  852. }
  853. public function getLink() {
  854. return $this->link;
  855. }
  856. public function setQuery(Google_JobConfigurationQuery $query) {
  857. $this->query = $query;
  858. }
  859. public function getQuery() {
  860. return $this->query;
  861. }
  862. public function setCopy(Google_JobConfigurationTableCopy $copy) {
  863. $this->copy = $copy;
  864. }
  865. public function getCopy() {
  866. return $this->copy;
  867. }
  868. public function setExtract(Google_JobConfigurationExtract $extract) {
  869. $this->extract = $extract;
  870. }
  871. public function getExtract() {
  872. return $this->extract;
  873. }
  874. public function setProperties($properties) {
  875. $this->properties = $properties;
  876. }
  877. public function getProperties() {
  878. return $this->properties;
  879. }
  880. }
  881. class Google_JobConfigurationExtract extends Google_Model {
  882. public $destinationUri;
  883. public $fieldDelimiter;
  884. protected $__sourceTableType = 'Google_TableReference';
  885. protected $__sourceTableDataType = '';
  886. public $sourceTable;
  887. public $printHeader;
  888. public function setDestinationUri($destinationUri) {
  889. $this->destinationUri = $destinationUri;
  890. }
  891. public function getDestinationUri() {
  892. return $this->destinationUri;
  893. }
  894. public function setFieldDelimiter($fieldDelimiter) {
  895. $this->fieldDelimiter = $fieldDelimiter;
  896. }
  897. public function getFieldDelimiter() {
  898. return $this->fieldDelimiter;
  899. }
  900. public function setSourceTable(Google_TableReference $sourceTable) {
  901. $this->sourceTable = $sourceTable;
  902. }
  903. public function getSourceTable() {
  904. return $this->sourceTable;
  905. }
  906. public function setPrintHeader($printHeader) {
  907. $this->printHeader = $printHeader;
  908. }
  909. public function getPrintHeader() {
  910. return $this->printHeader;
  911. }
  912. }
  913. class Google_JobConfigurationLink extends Google_Model {
  914. public $createDisposition;
  915. public $writeDisposition;
  916. protected $__destinationTableType = 'Google_TableReference';
  917. protected $__destinationTableDataType = '';
  918. public $destinationTable;
  919. public $sourceUri;
  920. public function setCreateDisposition($createDisposition) {
  921. $this->createDisposition = $createDisposition;
  922. }
  923. public function getCreateDisposition() {
  924. return $this->createDisposition;
  925. }
  926. public function setWriteDisposition($writeDisposition) {
  927. $this->writeDisposition = $writeDisposition;
  928. }
  929. public function getWriteDisposition() {
  930. return $this->writeDisposition;
  931. }
  932. public function setDestinationTable(Google_TableReference $destinationTable) {
  933. $this->destinationTable = $destinationTable;
  934. }
  935. public function getDestinationTable() {
  936. return $this->destinationTable;
  937. }
  938. public function setSourceUri(/* array(Google_string) */ $sourceUri) {
  939. $this->assertIsArray($sourceUri, 'Google_string', __METHOD__);
  940. $this->sourceUri = $sourceUri;
  941. }
  942. public function getSourceUri() {
  943. return $this->sourceUri;
  944. }
  945. }
  946. class Google_JobConfigurationLoad extends Google_Model {
  947. public $encoding;
  948. public $fieldDelimiter;
  949. protected $__destinationTableType = 'Google_TableReference';
  950. protected $__destinationTableDataType = '';
  951. public $destinationTable;
  952. public $writeDisposition;
  953. public $maxBadRecords;
  954. public $skipLeadingRows;
  955. public $sourceUris;
  956. public $quote;
  957. public $createDisposition;
  958. public $schemaInlineFormat;
  959. public $schemaInline;
  960. protected $__schemaType = 'Google_TableSchema';
  961. protected $__schemaDataType = '';
  962. public $schema;
  963. public function setEncoding($encoding) {
  964. $this->encoding = $encoding;
  965. }
  966. public function getEncoding() {
  967. return $this->encoding;
  968. }
  969. public function setFieldDelimiter($fieldDelimiter) {
  970. $this->fieldDelimiter = $fieldDelimiter;
  971. }
  972. public function getFieldDelimiter() {
  973. return $this->fieldDelimiter;
  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 setWriteDisposition($writeDisposition) {
  982. $this->writeDisposition = $writeDisposition;
  983. }
  984. public function getWriteDisposition() {
  985. return $this->writeDisposition;
  986. }
  987. public function setMaxBadRecords($maxBadRecords) {
  988. $this->maxBadRecords = $maxBadRecords;
  989. }
  990. public function getMaxBadRecords() {
  991. return $this->maxBadRecords;
  992. }
  993. public function setSkipLeadingRows($skipLeadingRows) {
  994. $this->skipLeadingRows = $skipLeadingRows;
  995. }
  996. public function getSkipLeadingRows() {
  997. return $this->skipLeadingRows;
  998. }
  999. public function setSourceUris(/* array(Google_string) */ $sourceUris) {
  1000. $this->assertIsArray($sourceUris, 'Google_string', __METHOD__);
  1001. $this->sourceUris = $sourceUris;
  1002. }
  1003. public function getSourceUris() {
  1004. return $this->sourceUris;
  1005. }
  1006. public function setQuote($quote) {
  1007. $this->quote = $quote;
  1008. }
  1009. public function getQuote() {
  1010. return $this->quote;
  1011. }
  1012. public function setCreateDisposition($createDisposition) {
  1013. $this->createDisposition = $createDisposition;
  1014. }
  1015. public function getCreateDisposition() {
  1016. return $this->createDisposition;
  1017. }
  1018. public function setSchemaInlineFormat($schemaInlineFormat) {
  1019. $this->schemaInlineFormat = $schemaInlineFormat;
  1020. }
  1021. public function getSchemaInlineFormat() {
  1022. return $this->schemaInlineFormat;
  1023. }
  1024. public function setSchemaInline($schemaInline) {
  1025. $this->schemaInline = $schemaInline;
  1026. }
  1027. public function getSchemaInline() {
  1028. return $this->schemaInline;
  1029. }
  1030. public function setSchema(Google_TableSchema $schema) {
  1031. $this->schema = $schema;
  1032. }
  1033. public function getSchema() {
  1034. return $this->schema;
  1035. }
  1036. }
  1037. class Google_JobConfigurationQuery extends Google_Model {
  1038. protected $__defaultDatasetType = 'Google_DatasetReference';
  1039. protected $__defaultDatasetDataType = '';
  1040. public $defaultDataset;
  1041. protected $__destinationTableType = 'Google_TableReference';
  1042. protected $__destinationTableDataType = '';
  1043. public $destinationTable;
  1044. public $priority;
  1045. public $writeDisposition;
  1046. public $createDisposition;
  1047. public $query;
  1048. public function setDefaultDataset(Google_DatasetReference $defaultDataset) {
  1049. $this->defaultDataset = $defaultDataset;
  1050. }
  1051. public function getDefaultDataset() {
  1052. return $this->defaultDataset;
  1053. }
  1054. public function setDestinationTable(Google_TableReference $destinationTable) {
  1055. $this->destinationTable = $destinationTable;
  1056. }
  1057. public function getDestinationTable() {
  1058. return $this->destinationTable;
  1059. }
  1060. public function setPriority($priority) {
  1061. $this->priority = $priority;
  1062. }
  1063. public function getPriority() {
  1064. return $this->priority;
  1065. }
  1066. public function setWriteDisposition($writeDisposition) {
  1067. $this->writeDisposition = $writeDisposition;
  1068. }
  1069. public function getWriteDisposition() {
  1070. return $this->writeDisposition;
  1071. }
  1072. public function setCreateDisposition($createDisposition) {
  1073. $this->createDisposition = $createDisposition;
  1074. }
  1075. public function getCreateDisposition() {
  1076. return $this->createDisposition;
  1077. }
  1078. public function setQuery($query) {
  1079. $this->query = $query;
  1080. }
  1081. public function getQuery() {
  1082. return $this->query;
  1083. }
  1084. }
  1085. class Google_JobConfigurationTableCopy extends Google_Model {
  1086. public $createDisposition;
  1087. public $writeDisposition;
  1088. protected $__destinationTableType = 'Google_TableReference';
  1089. protected $__destinationTableDataType = '';
  1090. public $destinationTable;
  1091. protected $__sourceTableType = 'Google_TableReference';
  1092. protected $__sourceTableDataType = '';
  1093. public $sourceTable;
  1094. public function setCreateDisposition($createDisposition) {
  1095. $this->createDisposition = $createDisposition;
  1096. }
  1097. public function getCreateDisposition() {
  1098. return $this->createDisposition;
  1099. }
  1100. public function setWriteDisposition($writeDisposition) {
  1101. $this->writeDisposition = $writeDisposition;
  1102. }
  1103. public function getWriteDisposition() {
  1104. return $this->writeDisposition;
  1105. }
  1106. public function setDestinationTable(Google_TableReference $destinationTable) {
  1107. $this->destinationTable = $destinationTable;
  1108. }
  1109. public function getDestinationTable() {
  1110. return $this->destinationTable;
  1111. }
  1112. public function setSourceTable(Google_TableReference $sourceTable) {
  1113. $this->sourceTable = $sourceTable;
  1114. }
  1115. public function getSourceTable() {
  1116. return $this->sourceTable;
  1117. }
  1118. }
  1119. class Google_JobList extends Google_Model {
  1120. public $nextPageToken;
  1121. public $totalItems;
  1122. public $kind;
  1123. public $etag;
  1124. protected $__jobsType = 'Google_JobListJobs';
  1125. protected $__jobsDataType = 'array';
  1126. public $jobs;
  1127. public function setNextPageToken($nextPageToken) {
  1128. $this->nextPageToken = $nextPageToken;
  1129. }
  1130. public function getNextPageToken() {
  1131. return $this->nextPageToken;
  1132. }
  1133. public function setTotalItems($totalItems) {
  1134. $this->totalItems = $totalItems;
  1135. }
  1136. public function getTotalItems() {
  1137. return $this->totalItems;
  1138. }
  1139. public function setKind($kind) {
  1140. $this->kind = $kind;
  1141. }
  1142. public function getKind() {
  1143. return $this->kind;
  1144. }
  1145. public function setEtag($etag) {
  1146. $this->etag = $etag;
  1147. }
  1148. public function getEtag() {
  1149. return $this->etag;
  1150. }
  1151. public function setJobs(/* array(Google_JobListJobs) */ $jobs) {
  1152. $this->assertIsArray($jobs, 'Google_JobListJobs', __METHOD__);
  1153. $this->jobs = $jobs;
  1154. }
  1155. public function getJobs() {
  1156. return $this->jobs;
  1157. }
  1158. }
  1159. class Google_JobListJobs extends Google_Model {
  1160. protected $__statusType = 'Google_JobStatus';
  1161. protected $__statusDataType = '';
  1162. public $status;
  1163. public $kind;
  1164. protected $__statisticsType = 'Google_JobStatistics';
  1165. protected $__statisticsDataType = '';
  1166. public $statistics;
  1167. protected $__jobReferenceType = 'Google_JobReference';
  1168. protected $__jobReferenceDataType = '';
  1169. public $jobReference;
  1170. public $state;
  1171. protected $__configurationType = 'Google_JobConfiguration';
  1172. protected $__configurationDataType = '';
  1173. public $configuration;
  1174. public $id;
  1175. protected $__errorResultType = 'Google_ErrorProto';
  1176. protected $__errorResultDataType = '';
  1177. public $errorResult;
  1178. public function setStatus(Google_JobStatus $status) {
  1179. $this->status = $status;
  1180. }
  1181. public function getStatus() {
  1182. return $this->status;
  1183. }
  1184. public function setKind($kind) {
  1185. $this->kind = $kind;
  1186. }
  1187. public function getKind() {
  1188. return $this->kind;
  1189. }
  1190. public function setStatistics(Google_JobStatistics $statistics) {
  1191. $this->statistics = $statistics;
  1192. }
  1193. public function getStatistics() {
  1194. return $this->statistics;
  1195. }
  1196. public function setJobReference(Google_JobReference $jobReference) {
  1197. $this->jobReference = $jobReference;
  1198. }
  1199. public function getJobReference() {
  1200. return $this->jobReference;
  1201. }
  1202. public function setState($state) {
  1203. $this->state = $state;
  1204. }
  1205. public function getState() {
  1206. return $this->state;
  1207. }
  1208. public function setConfiguration(Google_JobConfiguration $configuration) {
  1209. $this->configuration = $configuration;
  1210. }
  1211. public function getConfiguration() {
  1212. return $this->configuration;
  1213. }
  1214. public function setId($id) {
  1215. $this->id = $id;
  1216. }
  1217. public function getId() {
  1218. return $this->id;
  1219. }
  1220. public function setErrorResult(Google_ErrorProto $errorResult) {
  1221. $this->errorResult = $errorResult;
  1222. }
  1223. public function getErrorResult() {
  1224. return $this->errorResult;
  1225. }
  1226. }
  1227. class Google_JobReference extends Google_Model {
  1228. public $projectId;
  1229. public $jobId;
  1230. public function setProjectId($projectId) {
  1231. $t

Large files files are truncated, but you can click here to view the full file