PageRenderTime 51ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/google/src/Google/Service/Bigquery.php

http://github.com/moodle/moodle
PHP | 3607 lines | 3106 code | 175 blank | 326 comment | 0 complexity | 1010f89f4043de70b9046e780dc3fd57 MD5 | raw file
Possible License(s): MIT, AGPL-3.0, MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, Apache-2.0, LGPL-2.1, BSD-3-Clause

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

  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Bigquery (v2).
  19. *
  20. * <p>
  21. * A data platform for customers to create, manage, share and query data.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://cloud.google.com/bigquery/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_Bigquery extends Google_Service
  31. {
  32. /** View and manage your data in Google BigQuery. */
  33. const BIGQUERY =
  34. "https://www.googleapis.com/auth/bigquery";
  35. /** Insert data into Google BigQuery. */
  36. const BIGQUERY_INSERTDATA =
  37. "https://www.googleapis.com/auth/bigquery.insertdata";
  38. /** View and manage your data across Google Cloud Platform services. */
  39. const CLOUD_PLATFORM =
  40. "https://www.googleapis.com/auth/cloud-platform";
  41. /** View your data across Google Cloud Platform services. */
  42. const CLOUD_PLATFORM_READ_ONLY =
  43. "https://www.googleapis.com/auth/cloud-platform.read-only";
  44. /** Manage your data and permissions in Google Cloud Storage. */
  45. const DEVSTORAGE_FULL_CONTROL =
  46. "https://www.googleapis.com/auth/devstorage.full_control";
  47. /** View your data in Google Cloud Storage. */
  48. const DEVSTORAGE_READ_ONLY =
  49. "https://www.googleapis.com/auth/devstorage.read_only";
  50. /** Manage your data in Google Cloud Storage. */
  51. const DEVSTORAGE_READ_WRITE =
  52. "https://www.googleapis.com/auth/devstorage.read_write";
  53. public $datasets;
  54. public $jobs;
  55. public $projects;
  56. public $tabledata;
  57. public $tables;
  58. /**
  59. * Constructs the internal representation of the Bigquery service.
  60. *
  61. * @param Google_Client $client
  62. */
  63. public function __construct(Google_Client $client)
  64. {
  65. parent::__construct($client);
  66. $this->rootUrl = 'https://www.googleapis.com/';
  67. $this->servicePath = 'bigquery/v2/';
  68. $this->version = 'v2';
  69. $this->serviceName = 'bigquery';
  70. $this->datasets = new Google_Service_Bigquery_Datasets_Resource(
  71. $this,
  72. $this->serviceName,
  73. 'datasets',
  74. array(
  75. 'methods' => array(
  76. 'delete' => array(
  77. 'path' => 'projects/{projectId}/datasets/{datasetId}',
  78. 'httpMethod' => 'DELETE',
  79. 'parameters' => array(
  80. 'projectId' => array(
  81. 'location' => 'path',
  82. 'type' => 'string',
  83. 'required' => true,
  84. ),
  85. 'datasetId' => array(
  86. 'location' => 'path',
  87. 'type' => 'string',
  88. 'required' => true,
  89. ),
  90. 'deleteContents' => array(
  91. 'location' => 'query',
  92. 'type' => 'boolean',
  93. ),
  94. ),
  95. ),'get' => array(
  96. 'path' => 'projects/{projectId}/datasets/{datasetId}',
  97. 'httpMethod' => 'GET',
  98. 'parameters' => array(
  99. 'projectId' => array(
  100. 'location' => 'path',
  101. 'type' => 'string',
  102. 'required' => true,
  103. ),
  104. 'datasetId' => array(
  105. 'location' => 'path',
  106. 'type' => 'string',
  107. 'required' => true,
  108. ),
  109. ),
  110. ),'insert' => array(
  111. 'path' => 'projects/{projectId}/datasets',
  112. 'httpMethod' => 'POST',
  113. 'parameters' => array(
  114. 'projectId' => array(
  115. 'location' => 'path',
  116. 'type' => 'string',
  117. 'required' => true,
  118. ),
  119. ),
  120. ),'list' => array(
  121. 'path' => 'projects/{projectId}/datasets',
  122. 'httpMethod' => 'GET',
  123. 'parameters' => array(
  124. 'projectId' => array(
  125. 'location' => 'path',
  126. 'type' => 'string',
  127. 'required' => true,
  128. ),
  129. 'pageToken' => array(
  130. 'location' => 'query',
  131. 'type' => 'string',
  132. ),
  133. 'all' => array(
  134. 'location' => 'query',
  135. 'type' => 'boolean',
  136. ),
  137. 'maxResults' => array(
  138. 'location' => 'query',
  139. 'type' => 'integer',
  140. ),
  141. ),
  142. ),'patch' => array(
  143. 'path' => 'projects/{projectId}/datasets/{datasetId}',
  144. 'httpMethod' => 'PATCH',
  145. 'parameters' => array(
  146. 'projectId' => array(
  147. 'location' => 'path',
  148. 'type' => 'string',
  149. 'required' => true,
  150. ),
  151. 'datasetId' => array(
  152. 'location' => 'path',
  153. 'type' => 'string',
  154. 'required' => true,
  155. ),
  156. ),
  157. ),'update' => array(
  158. 'path' => 'projects/{projectId}/datasets/{datasetId}',
  159. 'httpMethod' => 'PUT',
  160. 'parameters' => array(
  161. 'projectId' => array(
  162. 'location' => 'path',
  163. 'type' => 'string',
  164. 'required' => true,
  165. ),
  166. 'datasetId' => array(
  167. 'location' => 'path',
  168. 'type' => 'string',
  169. 'required' => true,
  170. ),
  171. ),
  172. ),
  173. )
  174. )
  175. );
  176. $this->jobs = new Google_Service_Bigquery_Jobs_Resource(
  177. $this,
  178. $this->serviceName,
  179. 'jobs',
  180. array(
  181. 'methods' => array(
  182. 'cancel' => array(
  183. 'path' => 'project/{projectId}/jobs/{jobId}/cancel',
  184. 'httpMethod' => 'POST',
  185. 'parameters' => array(
  186. 'projectId' => array(
  187. 'location' => 'path',
  188. 'type' => 'string',
  189. 'required' => true,
  190. ),
  191. 'jobId' => array(
  192. 'location' => 'path',
  193. 'type' => 'string',
  194. 'required' => true,
  195. ),
  196. ),
  197. ),'get' => array(
  198. 'path' => 'projects/{projectId}/jobs/{jobId}',
  199. 'httpMethod' => 'GET',
  200. 'parameters' => array(
  201. 'projectId' => array(
  202. 'location' => 'path',
  203. 'type' => 'string',
  204. 'required' => true,
  205. ),
  206. 'jobId' => array(
  207. 'location' => 'path',
  208. 'type' => 'string',
  209. 'required' => true,
  210. ),
  211. ),
  212. ),'getQueryResults' => array(
  213. 'path' => 'projects/{projectId}/queries/{jobId}',
  214. 'httpMethod' => 'GET',
  215. 'parameters' => array(
  216. 'projectId' => array(
  217. 'location' => 'path',
  218. 'type' => 'string',
  219. 'required' => true,
  220. ),
  221. 'jobId' => array(
  222. 'location' => 'path',
  223. 'type' => 'string',
  224. 'required' => true,
  225. ),
  226. 'timeoutMs' => array(
  227. 'location' => 'query',
  228. 'type' => 'integer',
  229. ),
  230. 'maxResults' => array(
  231. 'location' => 'query',
  232. 'type' => 'integer',
  233. ),
  234. 'pageToken' => array(
  235. 'location' => 'query',
  236. 'type' => 'string',
  237. ),
  238. 'startIndex' => array(
  239. 'location' => 'query',
  240. 'type' => 'string',
  241. ),
  242. ),
  243. ),'insert' => array(
  244. 'path' => 'projects/{projectId}/jobs',
  245. 'httpMethod' => 'POST',
  246. 'parameters' => array(
  247. 'projectId' => array(
  248. 'location' => 'path',
  249. 'type' => 'string',
  250. 'required' => true,
  251. ),
  252. ),
  253. ),'list' => array(
  254. 'path' => 'projects/{projectId}/jobs',
  255. 'httpMethod' => 'GET',
  256. 'parameters' => array(
  257. 'projectId' => array(
  258. 'location' => 'path',
  259. 'type' => 'string',
  260. 'required' => true,
  261. ),
  262. 'projection' => array(
  263. 'location' => 'query',
  264. 'type' => 'string',
  265. ),
  266. 'stateFilter' => array(
  267. 'location' => 'query',
  268. 'type' => 'string',
  269. 'repeated' => true,
  270. ),
  271. 'allUsers' => array(
  272. 'location' => 'query',
  273. 'type' => 'boolean',
  274. ),
  275. 'maxResults' => array(
  276. 'location' => 'query',
  277. 'type' => 'integer',
  278. ),
  279. 'pageToken' => array(
  280. 'location' => 'query',
  281. 'type' => 'string',
  282. ),
  283. ),
  284. ),'query' => array(
  285. 'path' => 'projects/{projectId}/queries',
  286. 'httpMethod' => 'POST',
  287. 'parameters' => array(
  288. 'projectId' => array(
  289. 'location' => 'path',
  290. 'type' => 'string',
  291. 'required' => true,
  292. ),
  293. ),
  294. ),
  295. )
  296. )
  297. );
  298. $this->projects = new Google_Service_Bigquery_Projects_Resource(
  299. $this,
  300. $this->serviceName,
  301. 'projects',
  302. array(
  303. 'methods' => array(
  304. 'list' => array(
  305. 'path' => 'projects',
  306. 'httpMethod' => 'GET',
  307. 'parameters' => array(
  308. 'pageToken' => array(
  309. 'location' => 'query',
  310. 'type' => 'string',
  311. ),
  312. 'maxResults' => array(
  313. 'location' => 'query',
  314. 'type' => 'integer',
  315. ),
  316. ),
  317. ),
  318. )
  319. )
  320. );
  321. $this->tabledata = new Google_Service_Bigquery_Tabledata_Resource(
  322. $this,
  323. $this->serviceName,
  324. 'tabledata',
  325. array(
  326. 'methods' => array(
  327. 'insertAll' => array(
  328. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll',
  329. 'httpMethod' => 'POST',
  330. 'parameters' => array(
  331. 'projectId' => array(
  332. 'location' => 'path',
  333. 'type' => 'string',
  334. 'required' => true,
  335. ),
  336. 'datasetId' => array(
  337. 'location' => 'path',
  338. 'type' => 'string',
  339. 'required' => true,
  340. ),
  341. 'tableId' => array(
  342. 'location' => 'path',
  343. 'type' => 'string',
  344. 'required' => true,
  345. ),
  346. ),
  347. ),'list' => array(
  348. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data',
  349. 'httpMethod' => 'GET',
  350. 'parameters' => array(
  351. 'projectId' => array(
  352. 'location' => 'path',
  353. 'type' => 'string',
  354. 'required' => true,
  355. ),
  356. 'datasetId' => array(
  357. 'location' => 'path',
  358. 'type' => 'string',
  359. 'required' => true,
  360. ),
  361. 'tableId' => array(
  362. 'location' => 'path',
  363. 'type' => 'string',
  364. 'required' => true,
  365. ),
  366. 'maxResults' => array(
  367. 'location' => 'query',
  368. 'type' => 'integer',
  369. ),
  370. 'pageToken' => array(
  371. 'location' => 'query',
  372. 'type' => 'string',
  373. ),
  374. 'startIndex' => array(
  375. 'location' => 'query',
  376. 'type' => 'string',
  377. ),
  378. ),
  379. ),
  380. )
  381. )
  382. );
  383. $this->tables = new Google_Service_Bigquery_Tables_Resource(
  384. $this,
  385. $this->serviceName,
  386. 'tables',
  387. array(
  388. 'methods' => array(
  389. 'delete' => array(
  390. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
  391. 'httpMethod' => 'DELETE',
  392. 'parameters' => array(
  393. 'projectId' => array(
  394. 'location' => 'path',
  395. 'type' => 'string',
  396. 'required' => true,
  397. ),
  398. 'datasetId' => array(
  399. 'location' => 'path',
  400. 'type' => 'string',
  401. 'required' => true,
  402. ),
  403. 'tableId' => array(
  404. 'location' => 'path',
  405. 'type' => 'string',
  406. 'required' => true,
  407. ),
  408. ),
  409. ),'get' => array(
  410. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
  411. 'httpMethod' => 'GET',
  412. 'parameters' => array(
  413. 'projectId' => array(
  414. 'location' => 'path',
  415. 'type' => 'string',
  416. 'required' => true,
  417. ),
  418. 'datasetId' => array(
  419. 'location' => 'path',
  420. 'type' => 'string',
  421. 'required' => true,
  422. ),
  423. 'tableId' => array(
  424. 'location' => 'path',
  425. 'type' => 'string',
  426. 'required' => true,
  427. ),
  428. ),
  429. ),'insert' => array(
  430. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables',
  431. 'httpMethod' => 'POST',
  432. 'parameters' => array(
  433. 'projectId' => array(
  434. 'location' => 'path',
  435. 'type' => 'string',
  436. 'required' => true,
  437. ),
  438. 'datasetId' => array(
  439. 'location' => 'path',
  440. 'type' => 'string',
  441. 'required' => true,
  442. ),
  443. ),
  444. ),'list' => array(
  445. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables',
  446. 'httpMethod' => 'GET',
  447. 'parameters' => array(
  448. 'projectId' => array(
  449. 'location' => 'path',
  450. 'type' => 'string',
  451. 'required' => true,
  452. ),
  453. 'datasetId' => array(
  454. 'location' => 'path',
  455. 'type' => 'string',
  456. 'required' => true,
  457. ),
  458. 'pageToken' => array(
  459. 'location' => 'query',
  460. 'type' => 'string',
  461. ),
  462. 'maxResults' => array(
  463. 'location' => 'query',
  464. 'type' => 'integer',
  465. ),
  466. ),
  467. ),'patch' => array(
  468. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
  469. 'httpMethod' => 'PATCH',
  470. 'parameters' => array(
  471. 'projectId' => array(
  472. 'location' => 'path',
  473. 'type' => 'string',
  474. 'required' => true,
  475. ),
  476. 'datasetId' => array(
  477. 'location' => 'path',
  478. 'type' => 'string',
  479. 'required' => true,
  480. ),
  481. 'tableId' => array(
  482. 'location' => 'path',
  483. 'type' => 'string',
  484. 'required' => true,
  485. ),
  486. ),
  487. ),'update' => array(
  488. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
  489. 'httpMethod' => 'PUT',
  490. 'parameters' => array(
  491. 'projectId' => array(
  492. 'location' => 'path',
  493. 'type' => 'string',
  494. 'required' => true,
  495. ),
  496. 'datasetId' => array(
  497. 'location' => 'path',
  498. 'type' => 'string',
  499. 'required' => true,
  500. ),
  501. 'tableId' => array(
  502. 'location' => 'path',
  503. 'type' => 'string',
  504. 'required' => true,
  505. ),
  506. ),
  507. ),
  508. )
  509. )
  510. );
  511. }
  512. }
  513. /**
  514. * The "datasets" collection of methods.
  515. * Typical usage is:
  516. * <code>
  517. * $bigqueryService = new Google_Service_Bigquery(...);
  518. * $datasets = $bigqueryService->datasets;
  519. * </code>
  520. */
  521. class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource
  522. {
  523. /**
  524. * Deletes the dataset specified by the datasetId value. Before you can delete a
  525. * dataset, you must delete all its tables, either manually or by specifying
  526. * deleteContents. Immediately after deletion, you can create another dataset
  527. * with the same name. (datasets.delete)
  528. *
  529. * @param string $projectId Project ID of the dataset being deleted
  530. * @param string $datasetId Dataset ID of dataset being deleted
  531. * @param array $optParams Optional parameters.
  532. *
  533. * @opt_param bool deleteContents If True, delete all the tables in the dataset.
  534. * If False and the dataset contains tables, the request will fail. Default is
  535. * False
  536. */
  537. public function delete($projectId, $datasetId, $optParams = array())
  538. {
  539. $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
  540. $params = array_merge($params, $optParams);
  541. return $this->call('delete', array($params));
  542. }
  543. /**
  544. * Returns the dataset specified by datasetID. (datasets.get)
  545. *
  546. * @param string $projectId Project ID of the requested dataset
  547. * @param string $datasetId Dataset ID of the requested dataset
  548. * @param array $optParams Optional parameters.
  549. * @return Google_Service_Bigquery_Dataset
  550. */
  551. public function get($projectId, $datasetId, $optParams = array())
  552. {
  553. $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
  554. $params = array_merge($params, $optParams);
  555. return $this->call('get', array($params), "Google_Service_Bigquery_Dataset");
  556. }
  557. /**
  558. * Creates a new empty dataset. (datasets.insert)
  559. *
  560. * @param string $projectId Project ID of the new dataset
  561. * @param Google_Dataset $postBody
  562. * @param array $optParams Optional parameters.
  563. * @return Google_Service_Bigquery_Dataset
  564. */
  565. public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
  566. {
  567. $params = array('projectId' => $projectId, 'postBody' => $postBody);
  568. $params = array_merge($params, $optParams);
  569. return $this->call('insert', array($params), "Google_Service_Bigquery_Dataset");
  570. }
  571. /**
  572. * Lists all datasets in the specified project to which you have been granted
  573. * the READER dataset role. (datasets.listDatasets)
  574. *
  575. * @param string $projectId Project ID of the datasets to be listed
  576. * @param array $optParams Optional parameters.
  577. *
  578. * @opt_param string pageToken Page token, returned by a previous call, to
  579. * request the next page of results
  580. * @opt_param bool all Whether to list all datasets, including hidden ones
  581. * @opt_param string maxResults The maximum number of results to return
  582. * @return Google_Service_Bigquery_DatasetList
  583. */
  584. public function listDatasets($projectId, $optParams = array())
  585. {
  586. $params = array('projectId' => $projectId);
  587. $params = array_merge($params, $optParams);
  588. return $this->call('list', array($params), "Google_Service_Bigquery_DatasetList");
  589. }
  590. /**
  591. * Updates information in an existing dataset. The update method replaces the
  592. * entire dataset resource, whereas the patch method only replaces fields that
  593. * are provided in the submitted dataset resource. This method supports patch
  594. * semantics. (datasets.patch)
  595. *
  596. * @param string $projectId Project ID of the dataset being updated
  597. * @param string $datasetId Dataset ID of the dataset being updated
  598. * @param Google_Dataset $postBody
  599. * @param array $optParams Optional parameters.
  600. * @return Google_Service_Bigquery_Dataset
  601. */
  602. public function patch($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
  603. {
  604. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
  605. $params = array_merge($params, $optParams);
  606. return $this->call('patch', array($params), "Google_Service_Bigquery_Dataset");
  607. }
  608. /**
  609. * Updates information in an existing dataset. The update method replaces the
  610. * entire dataset resource, whereas the patch method only replaces fields that
  611. * are provided in the submitted dataset resource. (datasets.update)
  612. *
  613. * @param string $projectId Project ID of the dataset being updated
  614. * @param string $datasetId Dataset ID of the dataset being updated
  615. * @param Google_Dataset $postBody
  616. * @param array $optParams Optional parameters.
  617. * @return Google_Service_Bigquery_Dataset
  618. */
  619. public function update($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
  620. {
  621. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
  622. $params = array_merge($params, $optParams);
  623. return $this->call('update', array($params), "Google_Service_Bigquery_Dataset");
  624. }
  625. }
  626. /**
  627. * The "jobs" collection of methods.
  628. * Typical usage is:
  629. * <code>
  630. * $bigqueryService = new Google_Service_Bigquery(...);
  631. * $jobs = $bigqueryService->jobs;
  632. * </code>
  633. */
  634. class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource
  635. {
  636. /**
  637. * Requests that a job be cancelled. This call will return immediately, and the
  638. * client will need to poll for the job status to see if the cancel completed
  639. * successfully. Cancelled jobs may still incur costs. (jobs.cancel)
  640. *
  641. * @param string $projectId Project ID of the job to cancel
  642. * @param string $jobId Job ID of the job to cancel
  643. * @param array $optParams Optional parameters.
  644. * @return Google_Service_Bigquery_JobCancelResponse
  645. */
  646. public function cancel($projectId, $jobId, $optParams = array())
  647. {
  648. $params = array('projectId' => $projectId, 'jobId' => $jobId);
  649. $params = array_merge($params, $optParams);
  650. return $this->call('cancel', array($params), "Google_Service_Bigquery_JobCancelResponse");
  651. }
  652. /**
  653. * Returns information about a specific job. Job information is available for a
  654. * six month period after creation. Requires that you're the person who ran the
  655. * job, or have the Is Owner project role. (jobs.get)
  656. *
  657. * @param string $projectId Project ID of the requested job
  658. * @param string $jobId Job ID of the requested job
  659. * @param array $optParams Optional parameters.
  660. * @return Google_Service_Bigquery_Job
  661. */
  662. public function get($projectId, $jobId, $optParams = array())
  663. {
  664. $params = array('projectId' => $projectId, 'jobId' => $jobId);
  665. $params = array_merge($params, $optParams);
  666. return $this->call('get', array($params), "Google_Service_Bigquery_Job");
  667. }
  668. /**
  669. * Retrieves the results of a query job. (jobs.getQueryResults)
  670. *
  671. * @param string $projectId Project ID of the query job
  672. * @param string $jobId Job ID of the query job
  673. * @param array $optParams Optional parameters.
  674. *
  675. * @opt_param string timeoutMs How long to wait for the query to complete, in
  676. * milliseconds, before returning. Default is 10 seconds. If the timeout passes
  677. * before the job completes, the 'jobComplete' field in the response will be
  678. * false
  679. * @opt_param string maxResults Maximum number of results to read
  680. * @opt_param string pageToken Page token, returned by a previous call, to
  681. * request the next page of results
  682. * @opt_param string startIndex Zero-based index of the starting row
  683. * @return Google_Service_Bigquery_GetQueryResultsResponse
  684. */
  685. public function getQueryResults($projectId, $jobId, $optParams = array())
  686. {
  687. $params = array('projectId' => $projectId, 'jobId' => $jobId);
  688. $params = array_merge($params, $optParams);
  689. return $this->call('getQueryResults', array($params), "Google_Service_Bigquery_GetQueryResultsResponse");
  690. }
  691. /**
  692. * Starts a new asynchronous job. Requires the Can View project role.
  693. * (jobs.insert)
  694. *
  695. * @param string $projectId Project ID of the project that will be billed for
  696. * the job
  697. * @param Google_Job $postBody
  698. * @param array $optParams Optional parameters.
  699. * @return Google_Service_Bigquery_Job
  700. */
  701. public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optParams = array())
  702. {
  703. $params = array('projectId' => $projectId, 'postBody' => $postBody);
  704. $params = array_merge($params, $optParams);
  705. return $this->call('insert', array($params), "Google_Service_Bigquery_Job");
  706. }
  707. /**
  708. * Lists all jobs that you started in the specified project. Job information is
  709. * available for a six month period after creation. The job list is sorted in
  710. * reverse chronological order, by job creation time. Requires the Can View
  711. * project role, or the Is Owner project role if you set the allUsers property.
  712. * (jobs.listJobs)
  713. *
  714. * @param string $projectId Project ID of the jobs to list
  715. * @param array $optParams Optional parameters.
  716. *
  717. * @opt_param string projection Restrict information returned to a set of
  718. * selected fields
  719. * @opt_param string stateFilter Filter for job state
  720. * @opt_param bool allUsers Whether to display jobs owned by all users in the
  721. * project. Default false
  722. * @opt_param string maxResults Maximum number of results to return
  723. * @opt_param string pageToken Page token, returned by a previous call, to
  724. * request the next page of results
  725. * @return Google_Service_Bigquery_JobList
  726. */
  727. public function listJobs($projectId, $optParams = array())
  728. {
  729. $params = array('projectId' => $projectId);
  730. $params = array_merge($params, $optParams);
  731. return $this->call('list', array($params), "Google_Service_Bigquery_JobList");
  732. }
  733. /**
  734. * Runs a BigQuery SQL query synchronously and returns query results if the
  735. * query completes within a specified timeout. (jobs.query)
  736. *
  737. * @param string $projectId Project ID of the project billed for the query
  738. * @param Google_QueryRequest $postBody
  739. * @param array $optParams Optional parameters.
  740. * @return Google_Service_Bigquery_QueryResponse
  741. */
  742. public function query($projectId, Google_Service_Bigquery_QueryRequest $postBody, $optParams = array())
  743. {
  744. $params = array('projectId' => $projectId, 'postBody' => $postBody);
  745. $params = array_merge($params, $optParams);
  746. return $this->call('query', array($params), "Google_Service_Bigquery_QueryResponse");
  747. }
  748. }
  749. /**
  750. * The "projects" collection of methods.
  751. * Typical usage is:
  752. * <code>
  753. * $bigqueryService = new Google_Service_Bigquery(...);
  754. * $projects = $bigqueryService->projects;
  755. * </code>
  756. */
  757. class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource
  758. {
  759. /**
  760. * Lists all projects to which you have been granted any project role.
  761. * (projects.listProjects)
  762. *
  763. * @param array $optParams Optional parameters.
  764. *
  765. * @opt_param string pageToken Page token, returned by a previous call, to
  766. * request the next page of results
  767. * @opt_param string maxResults Maximum number of results to return
  768. * @return Google_Service_Bigquery_ProjectList
  769. */
  770. public function listProjects($optParams = array())
  771. {
  772. $params = array();
  773. $params = array_merge($params, $optParams);
  774. return $this->call('list', array($params), "Google_Service_Bigquery_ProjectList");
  775. }
  776. }
  777. /**
  778. * The "tabledata" collection of methods.
  779. * Typical usage is:
  780. * <code>
  781. * $bigqueryService = new Google_Service_Bigquery(...);
  782. * $tabledata = $bigqueryService->tabledata;
  783. * </code>
  784. */
  785. class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource
  786. {
  787. /**
  788. * Streams data into BigQuery one record at a time without needing to run a load
  789. * job. Requires the WRITER dataset role. (tabledata.insertAll)
  790. *
  791. * @param string $projectId Project ID of the destination table.
  792. * @param string $datasetId Dataset ID of the destination table.
  793. * @param string $tableId Table ID of the destination table.
  794. * @param Google_TableDataInsertAllRequest $postBody
  795. * @param array $optParams Optional parameters.
  796. * @return Google_Service_Bigquery_TableDataInsertAllResponse
  797. */
  798. public function insertAll($projectId, $datasetId, $tableId, Google_Service_Bigquery_TableDataInsertAllRequest $postBody, $optParams = array())
  799. {
  800. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
  801. $params = array_merge($params, $optParams);
  802. return $this->call('insertAll', array($params), "Google_Service_Bigquery_TableDataInsertAllResponse");
  803. }
  804. /**
  805. * Retrieves table data from a specified set of rows. Requires the READER
  806. * dataset role. (tabledata.listTabledata)
  807. *
  808. * @param string $projectId Project ID of the table to read
  809. * @param string $datasetId Dataset ID of the table to read
  810. * @param string $tableId Table ID of the table to read
  811. * @param array $optParams Optional parameters.
  812. *
  813. * @opt_param string maxResults Maximum number of results to return
  814. * @opt_param string pageToken Page token, returned by a previous call,
  815. * identifying the result set
  816. * @opt_param string startIndex Zero-based index of the starting row to read
  817. * @return Google_Service_Bigquery_TableDataList
  818. */
  819. public function listTabledata($projectId, $datasetId, $tableId, $optParams = array())
  820. {
  821. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
  822. $params = array_merge($params, $optParams);
  823. return $this->call('list', array($params), "Google_Service_Bigquery_TableDataList");
  824. }
  825. }
  826. /**
  827. * The "tables" collection of methods.
  828. * Typical usage is:
  829. * <code>
  830. * $bigqueryService = new Google_Service_Bigquery(...);
  831. * $tables = $bigqueryService->tables;
  832. * </code>
  833. */
  834. class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource
  835. {
  836. /**
  837. * Deletes the table specified by tableId from the dataset. If the table
  838. * contains data, all the data will be deleted. (tables.delete)
  839. *
  840. * @param string $projectId Project ID of the table to delete
  841. * @param string $datasetId Dataset ID of the table to delete
  842. * @param string $tableId Table ID of the table to delete
  843. * @param array $optParams Optional parameters.
  844. */
  845. public function delete($projectId, $datasetId, $tableId, $optParams = array())
  846. {
  847. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
  848. $params = array_merge($params, $optParams);
  849. return $this->call('delete', array($params));
  850. }
  851. /**
  852. * Gets the specified table resource by table ID. This method does not return
  853. * the data in the table, it only returns the table resource, which describes
  854. * the structure of this table. (tables.get)
  855. *
  856. * @param string $projectId Project ID of the requested table
  857. * @param string $datasetId Dataset ID of the requested table
  858. * @param string $tableId Table ID of the requested table
  859. * @param array $optParams Optional parameters.
  860. * @return Google_Service_Bigquery_Table
  861. */
  862. public function get($projectId, $datasetId, $tableId, $optParams = array())
  863. {
  864. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
  865. $params = array_merge($params, $optParams);
  866. return $this->call('get', array($params), "Google_Service_Bigquery_Table");
  867. }
  868. /**
  869. * Creates a new, empty table in the dataset. (tables.insert)
  870. *
  871. * @param string $projectId Project ID of the new table
  872. * @param string $datasetId Dataset ID of the new table
  873. * @param Google_Table $postBody
  874. * @param array $optParams Optional parameters.
  875. * @return Google_Service_Bigquery_Table
  876. */
  877. public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $postBody, $optParams = array())
  878. {
  879. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
  880. $params = array_merge($params, $optParams);
  881. return $this->call('insert', array($params), "Google_Service_Bigquery_Table");
  882. }
  883. /**
  884. * Lists all tables in the specified dataset. Requires the READER dataset role.
  885. * (tables.listTables)
  886. *
  887. * @param string $projectId Project ID of the tables to list
  888. * @param string $datasetId Dataset ID of the tables to list
  889. * @param array $optParams Optional parameters.
  890. *
  891. * @opt_param string pageToken Page token, returned by a previous call, to
  892. * request the next page of results
  893. * @opt_param string maxResults Maximum number of results to return
  894. * @return Google_Service_Bigquery_TableList
  895. */
  896. public function listTables($projectId, $datasetId, $optParams = array())
  897. {
  898. $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
  899. $params = array_merge($params, $optParams);
  900. return $this->call('list', array($params), "Google_Service_Bigquery_TableList");
  901. }
  902. /**
  903. * Updates information in an existing table. The update method replaces the
  904. * entire table resource, whereas the patch method only replaces fields that are
  905. * provided in the submitted table resource. This method supports patch
  906. * semantics. (tables.patch)
  907. *
  908. * @param string $projectId Project ID of the table to update
  909. * @param string $datasetId Dataset ID of the table to update
  910. * @param string $tableId Table ID of the table to update
  911. * @param Google_Table $postBody
  912. * @param array $optParams Optional parameters.
  913. * @return Google_Service_Bigquery_Table
  914. */
  915. public function patch($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array())
  916. {
  917. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
  918. $params = array_merge($params, $optParams);
  919. return $this->call('patch', array($params), "Google_Service_Bigquery_Table");
  920. }
  921. /**
  922. * Updates information in an existing table. The update method replaces the
  923. * entire table resource, whereas the patch method only replaces fields that are
  924. * provided in the submitted table resource. (tables.update)
  925. *
  926. * @param string $projectId Project ID of the table to update
  927. * @param string $datasetId Dataset ID of the table to update
  928. * @param string $tableId Table ID of the table to update
  929. * @param Google_Table $postBody
  930. * @param array $optParams Optional parameters.
  931. * @return Google_Service_Bigquery_Table
  932. */
  933. public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array())
  934. {
  935. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
  936. $params = array_merge($params, $optParams);
  937. return $this->call('update', array($params), "Google_Service_Bigquery_Table");
  938. }
  939. }
  940. class Google_Service_Bigquery_CsvOptions extends Google_Model
  941. {
  942. protected $internal_gapi_mappings = array(
  943. );
  944. public $allowJaggedRows;
  945. public $allowQuotedNewlines;
  946. public $encoding;
  947. public $fieldDelimiter;
  948. public $quote;
  949. public $skipLeadingRows;
  950. public function setAllowJaggedRows($allowJaggedRows)
  951. {
  952. $this->allowJaggedRows = $allowJaggedRows;
  953. }
  954. public function getAllowJaggedRows()
  955. {
  956. return $this->allowJaggedRows;
  957. }
  958. public function setAllowQuotedNewlines($allowQuotedNewlines)
  959. {
  960. $this->allowQuotedNewlines = $allowQuotedNewlines;
  961. }
  962. public function getAllowQuotedNewlines()
  963. {
  964. return $this->allowQuotedNewlines;
  965. }
  966. public function setEncoding($encoding)
  967. {
  968. $this->encoding = $encoding;
  969. }
  970. public function getEncoding()
  971. {
  972. return $this->encoding;
  973. }
  974. public function setFieldDelimiter($fieldDelimiter)
  975. {
  976. $this->fieldDelimiter = $fieldDelimiter;
  977. }
  978. public function getFieldDelimiter()
  979. {
  980. return $this->fieldDelimiter;
  981. }
  982. public function setQuote($quote)
  983. {
  984. $this->quote = $quote;
  985. }
  986. public function getQuote()
  987. {
  988. return $this->quote;
  989. }
  990. public function setSkipLeadingRows($skipLeadingRows)
  991. {
  992. $this->skipLeadingRows = $skipLeadingRows;
  993. }
  994. public function getSkipLeadingRows()
  995. {
  996. return $this->skipLeadingRows;
  997. }
  998. }
  999. class Google_Service_Bigquery_Dataset extends Google_Collection
  1000. {
  1001. protected $collection_key = 'access';
  1002. protected $internal_gapi_mappings = array(
  1003. );
  1004. protected $accessType = 'Google_Service_Bigquery_DatasetAccess';
  1005. protected $accessDataType = 'array';
  1006. public $creationTime;
  1007. protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference';
  1008. protected $datasetReferenceDataType = '';
  1009. public $defaultTableExpirationMs;
  1010. public $description;
  1011. public $etag;
  1012. public $friendlyName;
  1013. public $id;
  1014. public $kind;
  1015. public $lastModifiedTime;
  1016. public $location;
  1017. public $selfLink;
  1018. public function setAccess($access)
  1019. {
  1020. $this->access = $access;
  1021. }
  1022. public function getAccess()
  1023. {
  1024. return $this->access;
  1025. }
  1026. public function setCreationTime($creationTime)
  1027. {
  1028. $this->creationTime = $creationTime;
  1029. }
  1030. public function getCreationTime()
  1031. {
  1032. return $this->creationTime;
  1033. }
  1034. public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference)
  1035. {
  1036. $this->datasetReference = $datasetReference;
  1037. }
  1038. public function getDatasetReference()
  1039. {
  1040. return $this->datasetReference;
  1041. }
  1042. public function setDefaultTableExpirationMs($defaultTableExpirationMs)
  1043. {
  1044. $this->defaultTableExpirationMs = $defaultTableExpirationMs;
  1045. }
  1046. public function getDefaultTableExpirationMs()
  1047. {
  1048. return $this->defaultTableExpirationMs;
  1049. }
  1050. public function setDescription($description)
  1051. {
  1052. $this->description = $description;
  1053. }
  1054. public function getDescription()
  1055. {
  1056. return $this->description;
  1057. }
  1058. public function setEtag($etag)
  1059. {
  1060. $this->etag = $etag;
  1061. }
  1062. public function getEtag()
  1063. {
  1064. return $this->etag;
  1065. }
  1066. public function setFriendlyName($friendlyName)
  1067. {
  1068. $this->friendlyName = $friendlyName;
  1069. }
  1070. public function getFriendlyName()
  1071. {
  1072. return $this->friendlyName;
  1073. }
  1074. public function setId($id)
  1075. {
  1076. $this->id = $id;
  1077. }
  1078. public function getId()
  1079. {
  1080. return $this->id;
  1081. }
  1082. public function setKind($kind)
  1083. {
  1084. $this->kind = $kind;
  1085. }
  1086. public function getKind()
  1087. {
  1088. return $this->kind;
  1089. }
  1090. public function setLastModifiedTime($lastModifiedTime)
  1091. {
  1092. $this->lastModifiedTime = $lastModifiedTime;
  1093. }
  1094. public function getLastModifiedTime()
  1095. {
  1096. return $this->lastModifiedTime;
  1097. }
  1098. public function setLocation($location)
  1099. {
  1100. $this->location = $location;
  1101. }
  1102. public function getLocation()
  1103. {
  1104. return $this->location;
  1105. }
  1106. public function setSelfLink($selfLink)
  1107. {
  1108. $this->selfLink = $selfLink;
  1109. }
  1110. public function getSelfLink()
  1111. {
  1112. return $this->selfLink;
  1113. }
  1114. }
  1115. class Google_Service_Bigquery_DatasetAccess extends Google_Model
  1116. {
  1117. protected $internal_gapi_mappings = array(
  1118. );
  1119. public $domain;
  1120. public $groupByEmail;
  1121. public $role;
  1122. public $specialGroup;
  1123. public $userByEmail;
  1124. protected $viewType = 'Google_Service_Bigquery_TableReference';
  1125. protected $viewDataType = '';
  1126. public function setDomain($domain)
  1127. {
  1128. $this->domain = $domain;
  1129. }
  1130. public function getDomain()
  1131. {
  1132. return $this->domain;
  1133. }
  1134. public function setGroupByEmail($groupByEmail)
  1135. {
  1136. $this->groupByEmail = $groupByEmail;
  1137. }
  1138. public function getGroupByEmail()
  1139. {
  1140. return $this->groupByEmail;
  1141. }
  1142. public function setRole($role)
  1143. {
  1144. $this->role = $role;
  1145. }
  1146. public function getRole()
  1147. {
  1148. return $this->role;
  1149. }
  1150. public function setSpecialGroup($specialGroup)
  1151. {
  1152. $this->specialGroup = $specialGroup;
  1153. }
  1154. public function getSpecialGroup()
  1155. {
  1156. return $this->specialGroup;
  1157. }
  1158. public function setUserByEmail($userByEmail)
  1159. {
  1160. $this->userByEmail = $userByEmail;
  1161. }
  1162. public function getUserByEmail()
  1163. {
  1164. return $this->userByEmail;
  1165. }
  1166. public function setView(Google_Service_Bigquery_TableReference $view)
  1167. {
  1168. $this->view = $view;
  1169. }
  1170. public function getView()
  1171. {
  1172. return $this->view;
  1173. }
  1174. }
  1175. class Google_Service_Bigquery_DatasetList extends Google_Collection
  1176. {
  1177. protected $collection_key = 'datasets';
  1178. protected $internal_gapi_mappings = array(
  1179. );
  1180. protected $datasetsType = 'Google_Service_Bigquery_DatasetListDatasets';
  1181. protected $datasetsDataType = 'array';
  1182. public $etag;
  1183. public $kind;
  1184. public $nextPageToken;
  1185. public function setDatasets($datasets)
  1186. {
  1187. $this->datasets = $datasets;
  1188. }
  1189. public function getDatasets()
  1190. {
  1191. return $this->datasets;
  1192. }
  1193. public function setEtag($etag)
  1194. {
  1195. $this->etag = $etag;
  1196. }
  1197. public function getEtag()
  1198. {
  1199. return $this->etag;
  1200. }
  1201. public function setKind($kind)
  1202. {
  1203. $this->kind = $kind;
  1204. }
  1205. public function getKind()
  1206. {
  1207. return $this->kind;
  1208. }
  1209. public function setNextPageToken($nextPageToken)
  1210. {
  1211. $this->nextPageToken = $nextPageToken;
  1212. }
  1213. public function getNextPageToken()
  1214. {
  1215. return $this->nextPageToken;
  1216. }
  1217. }
  1218. class Google_Service_Bigquery_DatasetListDatasets extends Google_Model
  1219. {
  1220. protected $internal_gapi_mappings = array(
  1221. );
  1222. protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference';
  1223. protected $datasetReferenceDataType = '';
  1224. public $friendlyName;
  1225. public $id;
  1226. public $kind;
  1227. public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference)
  1228. {
  1229. $this->datasetReference = $datasetReference;
  1230. }
  1231. public function getDatasetReference()
  1232. {
  1233. return $this->datasetReference;
  1234. }
  1235. public function setFriendlyName($friendlyName)
  1236. {
  1237. $this->friendlyName = $friendlyName;
  1238. }
  1239. public function getFriendlyName()
  1240. {
  1241. return $this->friendlyName;
  1242. }
  1243. public function setId($id)
  1244. {
  1245. $this->id = $id;
  1246. }
  1247. public function getId()
  1248. {
  1249. return $this->id;
  1250. }
  1251. public function setKind($kind)
  1252. {
  1253. $this->kind = $kind;
  1254. }
  1255. public function getKind()
  1256. {
  1257. return $this->kind;
  1258. }
  1259. }
  1260. class Google_Service_Bigquery_DatasetReference extends Google_Model
  1261. {
  1262. protected $internal_gapi_mappings = array(
  1263. );
  1264. public $datasetId;
  1265. public $projectId;
  1266. public function setDatasetId($datasetId)
  1267. {
  1268. $this->datasetId = $datasetId;
  1269. }
  1270. public function getDatasetId()
  1271. {
  1272. return $this->datasetId;
  1273. }
  1274. public function setProjectId($projectId)
  1275. {
  1276. $this->projectId = $projectId;
  1277. }
  1278. public function getProjectId()
  1279. {
  1280. return $this->projectId;
  1281. }
  1282. }
  1283. class Google_Service_Bigquery_ErrorProto extends Google_Model
  1284. {
  1285. protected $internal_gapi_mappings = array(
  1286. );
  1287. public $debugInfo;
  1288. public $location;
  1289. public $message;
  1290. public $reason;
  1291. public function setDebugInfo($debugInfo)
  1292. {
  1293. $this->debugInfo = $debugInfo;
  1294. }
  1295. public function getDebugInfo()
  1296. {
  1297. return $this->debugInfo;
  1298. }
  1299. public function setLocation($location)
  1300. {
  1301. $this->location = $location;
  1302. }
  1303. public function getLocation()
  1304. {
  1305. return $this->location;
  1306. }
  1307. public function setMessage($message)
  1308. {
  1309. $this->message = $message;
  1310. }
  1311. public function getMessage()
  1312. {
  1313. return $this->message;
  1314. }
  1315. public function setReason($reason)
  1316. {
  1317. $this->reason = $reason;
  1318. }
  1319. public function getReason()
  1320. {
  1321. return $this->reason;
  1322. }
  1323. }
  1324. class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collection
  1325. {
  1326. protected $collection_key = 'sourceUris';
  1327. protected $internal_gapi_mappings = array(
  1328. );
  1329. public $compression;
  1330. protected $csvOptionsType = 'Google_Service_Bigquery_CsvOptions';
  1331. protected $csvOptionsDataType = '';
  1332. public $ignoreUnknownValues;
  1333. public $maxBadRecords;
  1334. protected $schemaType = 'Google_Service_Bigquery_TableSchema';
  1335. protected $schemaDataType = '';
  1336. public $sourceFormat;
  1337. public $sourceUris;
  1338. public function setCompression($compression)
  1339. {
  1340. $this->compression = $compression;
  1341. }
  1342. public function getCompression()
  1343. {
  1344. return $this->compression;
  1345. }
  1346. public function setCsvOptions(Google_Service_Bigquery_CsvOptions $csvOptions)
  1347. {
  1348. $this->csvOptions = $csvOptions;
  1349. }
  1350. public function getCsvOptions()
  1351. {
  1352. return $this->csvOptions;
  1353. }
  1354. public function setIgnoreUnknownValues($ignoreUnknownValues)
  1355. {
  1356. $this->ignoreUnknownValues = $ignoreUnknownValues;
  1357. }
  1358. public function getIgnoreUnknownValues()
  1359. {
  1360. return $this->ignoreUnknownValues;
  1361. }
  1362. public function setMaxBadRecords($maxBadRecords)
  1363. {
  1364. $this->maxBadRecords = $maxBadRecords;
  1365. }
  1366. public function getMaxBadRecords()
  1367. {
  1368. return $this->maxBadRecords;
  1369. }
  1370. public function setSchema(Google_Service_Bigquery_TableSchema $schema)
  1371. {
  1372. $this->schema = $schema;
  1373. }
  1374. public function getSchema()
  1375. {
  1376. return $this->schema;
  1377. }
  1378. public function setSourceFormat($sourceFormat)
  1379. {
  1380. $this->sourceFormat = $sourceFormat;
  1381. }
  1382. public function getSourceFormat()
  1383. {
  1384. return $this->sourceFormat;
  1385. }
  1386. public function setSourceUris($sourceUris)
  1387. {
  1388. $this->sourceUris = $sourceUris;
  1389. }
  1390. public function getSourceUris()
  1391. {
  1392. return $this->sourceUris;
  1393. }
  1394. }
  1395. class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection
  1396. {
  1397. protected $collection_key = 'rows';
  1398. protected $internal_gapi_mappings = array(
  1399. );
  1400. public $cacheHit;
  1401. protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
  1402. protected $errorsDataType = 'array';
  1403. public $etag;
  1404. public $jobComplete;
  1405. protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
  1406. protected $jobReferenceDataType = '';
  1407. public $kind;
  1408. public $pageToken;
  1409. protected $rowsType = 'Google_Service_Bigquery_TableRow';
  1410. protected $rowsDataType = 'array';
  1411. protected $schemaType = 'Google_Service_Bigquery_TableSchema';
  1412. protected $schemaDataType = '';
  1413. public $totalBytesProcessed;
  1414. public $totalRows;
  1415. public function setCacheHit($cacheHit)
  1416. {
  1417. $this->cacheHit = $cacheHit;
  1418. }
  1419. public function getCacheHit()
  1420. {
  1421. return $this->cacheHit;
  1422. }
  1423. public function setErrors($errors)
  1424. {
  1425. $this->errors = $errors;
  1426. }
  1427. public function getErrors()
  1428. {
  1429. return $this->errors;
  1430. }
  1431. public function setEtag($etag)
  1432. {
  1433. $this->etag = $etag;
  1434. }
  1435. public function getEtag()
  1436. {
  1437. return $this->etag;
  1438. }
  1439. public function setJobComplete($jobComplete)
  1440. {
  1441. $this->jobComplete = $jobComplete;
  1442. }
  1443. public function getJobComplete()
  1444. {
  1445. return $this->jobComplete;
  1446. }
  1447. public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
  1448. {
  1449. $this->jobReference = $jobReference;
  1450. }
  1451. public function getJobReference()
  1452. {
  1453. return $this->jobReference;
  1454. }
  1455. public function setKind($kind)
  1456. {
  1457. $this->kind = $kind;
  1458. }
  1459. public function getKind()
  1460. {
  1461. return $this->kind;
  1462. }
  1463. public function setPageToken($pageToken)
  1464. {
  1465. $this->pageToken = $pageToken;
  1466. }
  1467. public function getPageToken()
  1468. {
  1469. return $this->pageToken;
  1470. }
  1471. public function setRows($rows)
  1472. {
  1473. $this->rows = $rows;
  1474. }
  1475. public function getRows()
  1476. {
  1477. return $this->rows;
  1478. }
  1479. public function setSchema(Google_Service_Bigquery_TableSchema $schema)
  1480. {
  1481. $this->schema = $schema;
  1482. }
  1483. public function getSchema()
  1484. {
  1485. return $this->schema;
  1486. }
  1487. public function setTotalBytesProcessed($totalBytesProcessed)
  1488. {
  1489. $this->totalBytesProcessed = $totalBytesProcessed;
  1490. }
  1491. public function getTotalBytesProcessed()
  1492. {
  1493. return $this->totalBytesProcessed;
  1494. }
  1495. public function setTotalRows($totalRows)
  1496. {
  1497. $this->totalRows = $totalRows;
  1498. }
  1499. public function getTotalRows()
  1500. {
  1501. return $this->totalRows;
  1502. }
  1503. }
  1504. class Google_Service_Bigquery_Job extends Google_Model
  1505. {
  1506. protected $internal_gapi_mappings = array(
  1507. "userEmail" => "user_email",
  1508. );
  1509. protected $configurationType = 'Google_Service_Bigquery_JobConfiguration';
  1510. protected $configurationDataType = '';
  1511. public $etag;
  1512. public $id;
  1513. protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
  1514. protected $jobReferenceDataType = '';
  1515. public $kind;
  1516. public $selfLink;
  1517. protected $statisticsType = 'Google_Service_Bigquery_JobStatistics';
  1518. protected $statisticsDataType = '';
  1519. protected $statusType = 'Google_Service_Bigquery_JobStatus';
  1520. protected $statusDataType = '';
  1521. public $userEmail;
  1522. public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration)
  1523. {
  1524. $this->configuration = $configuration;
  1525. }
  1526. public function getConfiguration()
  1527. {
  1528. return $this->configuration;
  1529. }
  1530. public function setEtag($etag)
  1531. {
  1532. $this->etag = $etag;
  1533. }
  1534. public function getEtag()
  1535. {
  1536. return $this->etag;
  1537. }
  1538. public function setId($id)
  1539. {
  1540. $this->id = $id;
  1541. }
  1542. public function g

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