PageRenderTime 56ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 1ms

/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
  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 getId()
  1543. {
  1544. return $this->id;
  1545. }
  1546. public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
  1547. {
  1548. $this->jobReference = $jobReference;
  1549. }
  1550. public function getJobReference()
  1551. {
  1552. return $this->jobReference;
  1553. }
  1554. public function setKind($kind)
  1555. {
  1556. $this->kind = $kind;
  1557. }
  1558. public function getKind()
  1559. {
  1560. return $this->kind;
  1561. }
  1562. public function setSelfLink($selfLink)
  1563. {
  1564. $this->selfLink = $selfLink;
  1565. }
  1566. public function getSelfLink()
  1567. {
  1568. return $this->selfLink;
  1569. }
  1570. public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics)
  1571. {
  1572. $this->statistics = $statistics;
  1573. }
  1574. public function getStatistics()
  1575. {
  1576. return $this->statistics;
  1577. }
  1578. public function setStatus(Google_Service_Bigquery_JobStatus $status)
  1579. {
  1580. $this->status = $status;
  1581. }
  1582. public function getStatus()
  1583. {
  1584. return $this->status;
  1585. }
  1586. public function setUserEmail($userEmail)
  1587. {
  1588. $this->userEmail = $userEmail;
  1589. }
  1590. public function getUserEmail()
  1591. {
  1592. return $this->userEmail;
  1593. }
  1594. }
  1595. class Google_Service_Bigquery_JobCancelResponse extends Google_Model
  1596. {
  1597. protected $internal_gapi_mappings = array(
  1598. );
  1599. protected $jobType = 'Google_Service_Bigquery_Job';
  1600. protected $jobDataType = '';
  1601. public $kind;
  1602. public function setJob(Google_Service_Bigquery_Job $job)
  1603. {
  1604. $this->job = $job;
  1605. }
  1606. public function getJob()
  1607. {
  1608. return $this->job;
  1609. }
  1610. public function setKind($kind)
  1611. {
  1612. $this->kind = $kind;
  1613. }
  1614. public function getKind()
  1615. {
  1616. return $this->kind;
  1617. }
  1618. }
  1619. class Google_Service_Bigquery_JobConfiguration extends Google_Model
  1620. {
  1621. protected $internal_gapi_mappings = array(
  1622. );
  1623. protected $copyType = 'Google_Service_Bigquery_JobConfigurationTableCopy';
  1624. protected $copyDataType = '';
  1625. public $dryRun;
  1626. protected $extractType = 'Google_Service_Bigquery_JobConfigurationExtract';
  1627. protected $extractDataType = '';
  1628. protected $linkType = 'Google_Service_Bigquery_JobConfigurationLink';
  1629. protected $linkDataType = '';
  1630. protected $loadType = 'Google_Service_Bigquery_JobConfigurationLoad';
  1631. protected $loadDataType = '';
  1632. protected $queryType = 'Google_Service_Bigquery_JobConfigurationQuery';
  1633. protected $queryDataType = '';
  1634. public function setCopy(Google_Service_Bigquery_JobConfigurationTableCopy $copy)
  1635. {
  1636. $this->copy = $copy;
  1637. }
  1638. public function getCopy()
  1639. {
  1640. return $this->copy;
  1641. }
  1642. public function setDryRun($dryRun)
  1643. {
  1644. $this->dryRun = $dryRun;
  1645. }
  1646. public function getDryRun()
  1647. {
  1648. return $this->dryRun;
  1649. }
  1650. public function setExtract(Google_Service_Bigquery_JobConfigurationExtract $extract)
  1651. {
  1652. $this->extract = $extract;
  1653. }
  1654. public function getExtract()
  1655. {
  1656. return $this->extract;
  1657. }
  1658. public function setLink(Google_Service_Bigquery_JobConfigurationLink $link)
  1659. {
  1660. $this->link = $link;
  1661. }
  1662. public function getLink()
  1663. {
  1664. return $this->link;
  1665. }
  1666. public function setLoad(Google_Service_Bigquery_JobConfigurationLoad $load)
  1667. {
  1668. $this->load = $load;
  1669. }
  1670. public function getLoad()
  1671. {
  1672. return $this->load;
  1673. }
  1674. public function setQuery(Google_Service_Bigquery_JobConfigurationQuery $query)
  1675. {
  1676. $this->query = $query;
  1677. }
  1678. public function getQuery()
  1679. {
  1680. return $this->query;
  1681. }
  1682. }
  1683. class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection
  1684. {
  1685. protected $collection_key = 'destinationUris';
  1686. protected $internal_gapi_mappings = array(
  1687. );
  1688. public $compression;
  1689. public $destinationFormat;
  1690. public $destinationUri;
  1691. public $destinationUris;
  1692. public $fieldDelimiter;
  1693. public $printHeader;
  1694. protected $sourceTableType = 'Google_Service_Bigquery_TableReference';
  1695. protected $sourceTableDataType = '';
  1696. public function setCompression($compression)
  1697. {
  1698. $this->compression = $compression;
  1699. }
  1700. public function getCompression()
  1701. {
  1702. return $this->compression;
  1703. }
  1704. public function setDestinationFormat($destinationFormat)
  1705. {
  1706. $this->destinationFormat = $destinationFormat;
  1707. }
  1708. public function getDestinationFormat()
  1709. {
  1710. return $this->destinationFormat;
  1711. }
  1712. public function setDestinationUri($destinationUri)
  1713. {
  1714. $this->destinationUri = $destinationUri;
  1715. }
  1716. public function getDestinationUri()
  1717. {
  1718. return $this->destinationUri;
  1719. }
  1720. public function setDestinationUris($destinationUris)
  1721. {
  1722. $this->destinationUris = $destinationUris;
  1723. }
  1724. public function getDestinationUris()
  1725. {
  1726. return $this->destinationUris;
  1727. }
  1728. public function setFieldDelimiter($fieldDelimiter)
  1729. {
  1730. $this->fieldDelimiter = $fieldDelimiter;
  1731. }
  1732. public function getFieldDelimiter()
  1733. {
  1734. return $this->fieldDelimiter;
  1735. }
  1736. public function setPrintHeader($printHeader)
  1737. {
  1738. $this->printHeader = $printHeader;
  1739. }
  1740. public function getPrintHeader()
  1741. {
  1742. return $this->printHeader;
  1743. }
  1744. public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable)
  1745. {
  1746. $this->sourceTable = $sourceTable;
  1747. }
  1748. public function getSourceTable()
  1749. {
  1750. return $this->sourceTable;
  1751. }
  1752. }
  1753. class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection
  1754. {
  1755. protected $collection_key = 'sourceUri';
  1756. protected $internal_gapi_mappings = array(
  1757. );
  1758. public $createDisposition;
  1759. protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
  1760. protected $destinationTableDataType = '';
  1761. public $sourceUri;
  1762. public $writeDisposition;
  1763. public function setCreateDisposition($createDisposition)
  1764. {
  1765. $this->createDisposition = $createDisposition;
  1766. }
  1767. public function getCreateDisposition()
  1768. {
  1769. return $this->createDisposition;
  1770. }
  1771. public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
  1772. {
  1773. $this->destinationTable = $destinationTable;
  1774. }
  1775. public function getDestinationTable()
  1776. {
  1777. return $this->destinationTable;
  1778. }
  1779. public function setSourceUri($sourceUri)
  1780. {
  1781. $this->sourceUri = $sourceUri;
  1782. }
  1783. public function getSourceUri()
  1784. {
  1785. return $this->sourceUri;
  1786. }
  1787. public function setWriteDisposition($writeDisposition)
  1788. {
  1789. $this->writeDisposition = $writeDisposition;
  1790. }
  1791. public function getWriteDisposition()
  1792. {
  1793. return $this->writeDisposition;
  1794. }
  1795. }
  1796. class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection
  1797. {
  1798. protected $collection_key = 'sourceUris';
  1799. protected $internal_gapi_mappings = array(
  1800. );
  1801. public $allowJaggedRows;
  1802. public $allowQuotedNewlines;
  1803. public $createDisposition;
  1804. protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
  1805. protected $destinationTableDataType = '';
  1806. public $encoding;
  1807. public $fieldDelimiter;
  1808. public $ignoreUnknownValues;
  1809. public $maxBadRecords;
  1810. public $projectionFields;
  1811. public $quote;
  1812. protected $schemaType = 'Google_Service_Bigquery_TableSchema';
  1813. protected $schemaDataType = '';
  1814. public $schemaInline;
  1815. public $schemaInlineFormat;
  1816. public $skipLeadingRows;
  1817. public $sourceFormat;
  1818. public $sourceUris;
  1819. public $writeDisposition;
  1820. public function setAllowJaggedRows($allowJaggedRows)
  1821. {
  1822. $this->allowJaggedRows = $allowJaggedRows;
  1823. }
  1824. public function getAllowJaggedRows()
  1825. {
  1826. return $this->allowJaggedRows;
  1827. }
  1828. public function setAllowQuotedNewlines($allowQuotedNewlines)
  1829. {
  1830. $this->allowQuotedNewlines = $allowQuotedNewlines;
  1831. }
  1832. public function getAllowQuotedNewlines()
  1833. {
  1834. return $this->allowQuotedNewlines;
  1835. }
  1836. public function setCreateDisposition($createDisposition)
  1837. {
  1838. $this->createDisposition = $createDisposition;
  1839. }
  1840. public function getCreateDisposition()
  1841. {
  1842. return $this->createDisposition;
  1843. }
  1844. public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
  1845. {
  1846. $this->destinationTable = $destinationTable;
  1847. }
  1848. public function getDestinationTable()
  1849. {
  1850. return $this->destinationTable;
  1851. }
  1852. public function setEncoding($encoding)
  1853. {
  1854. $this->encoding = $encoding;
  1855. }
  1856. public function getEncoding()
  1857. {
  1858. return $this->encoding;
  1859. }
  1860. public function setFieldDelimiter($fieldDelimiter)
  1861. {
  1862. $this->fieldDelimiter = $fieldDelimiter;
  1863. }
  1864. public function getFieldDelimiter()
  1865. {
  1866. return $this->fieldDelimiter;
  1867. }
  1868. public function setIgnoreUnknownValues($ignoreUnknownValues)
  1869. {
  1870. $this->ignoreUnknownValues = $ignoreUnknownValues;
  1871. }
  1872. public function getIgnoreUnknownValues()
  1873. {
  1874. return $this->ignoreUnknownValues;
  1875. }
  1876. public function setMaxBadRecords($maxBadRecords)
  1877. {
  1878. $this->maxBadRecords = $maxBadRecords;
  1879. }
  1880. public function getMaxBadRecords()
  1881. {
  1882. return $this->maxBadRecords;
  1883. }
  1884. public function setProjectionFields($projectionFields)
  1885. {
  1886. $this->projectionFields = $projectionFields;
  1887. }
  1888. public function getProjectionFields()
  1889. {
  1890. return $this->projectionFields;
  1891. }
  1892. public function setQuote($quote)
  1893. {
  1894. $this->quote = $quote;
  1895. }
  1896. public function getQuote()
  1897. {
  1898. return $this->quote;
  1899. }
  1900. public function setSchema(Google_Service_Bigquery_TableSchema $schema)
  1901. {
  1902. $this->schema = $schema;
  1903. }
  1904. public function getSchema()
  1905. {
  1906. return $this->schema;
  1907. }
  1908. public function setSchemaInline($schemaInline)
  1909. {
  1910. $this->schemaInline = $schemaInline;
  1911. }
  1912. public function getSchemaInline()
  1913. {
  1914. return $this->schemaInline;
  1915. }
  1916. public function setSchemaInlineFormat($schemaInlineFormat)
  1917. {
  1918. $this->schemaInlineFormat = $schemaInlineFormat;
  1919. }
  1920. public function getSchemaInlineFormat()
  1921. {
  1922. return $this->schemaInlineFormat;
  1923. }
  1924. public function setSkipLeadingRows($skipLeadingRows)
  1925. {
  1926. $this->skipLeadingRows = $skipLeadingRows;
  1927. }
  1928. public function getSkipLeadingRows()
  1929. {
  1930. return $this->skipLeadingRows;
  1931. }
  1932. public function setSourceFormat($sourceFormat)
  1933. {
  1934. $this->sourceFormat = $sourceFormat;
  1935. }
  1936. public function getSourceFormat()
  1937. {
  1938. return $this->sourceFormat;
  1939. }
  1940. public function setSourceUris($sourceUris)
  1941. {
  1942. $this->sourceUris = $sourceUris;
  1943. }
  1944. public function getSourceUris()
  1945. {
  1946. return $this->sourceUris;
  1947. }
  1948. public function setWriteDisposition($writeDisposition)
  1949. {
  1950. $this->writeDisposition = $writeDisposition;
  1951. }
  1952. public function getWriteDisposition()
  1953. {
  1954. return $this->writeDisposition;
  1955. }
  1956. }
  1957. class Google_Service_Bigquery_JobConfigurationQuery extends Google_Collection
  1958. {
  1959. protected $collection_key = 'userDefinedFunctionResources';
  1960. protected $internal_gapi_mappings = array(
  1961. );
  1962. public $allowLargeResults;
  1963. public $createDisposition;
  1964. protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference';
  1965. protected $defaultDatasetDataType = '';
  1966. protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
  1967. protected $destinationTableDataType = '';
  1968. public $flattenResults;
  1969. public $preserveNulls;
  1970. public $priority;
  1971. public $query;
  1972. protected $tableDefinitionsType = 'Google_Service_Bigquery_ExternalDataConfiguration';
  1973. protected $tableDefinitionsDataType = 'map';
  1974. public $useQueryCache;
  1975. protected $userDefinedFunctionResourcesType = 'Google_Service_Bigquery_UserDefinedFunctionResource';
  1976. protected $userDefinedFunctionResourcesDataType = 'array';
  1977. public $writeDisposition;
  1978. public function setAllowLargeResults($allowLargeResults)
  1979. {
  1980. $this->allowLargeResults = $allowLargeResults;
  1981. }
  1982. public function getAllowLargeResults()
  1983. {
  1984. return $this->allowLargeResults;
  1985. }
  1986. public function setCreateDisposition($createDisposition)
  1987. {
  1988. $this->createDisposition = $createDisposition;
  1989. }
  1990. public function getCreateDisposition()
  1991. {
  1992. return $this->createDisposition;
  1993. }
  1994. public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset)
  1995. {
  1996. $this->defaultDataset = $defaultDataset;
  1997. }
  1998. public function getDefaultDataset()
  1999. {
  2000. return $this->defaultDataset;
  2001. }
  2002. public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
  2003. {
  2004. $this->destinationTable = $destinationTable;
  2005. }
  2006. public function getDestinationTable()
  2007. {
  2008. return $this->destinationTable;
  2009. }
  2010. public function setFlattenResults($flattenResults)
  2011. {
  2012. $this->flattenResults = $flattenResults;
  2013. }
  2014. public function getFlattenResults()
  2015. {
  2016. return $this->flattenResults;
  2017. }
  2018. public function setPreserveNulls($preserveNulls)
  2019. {
  2020. $this->preserveNulls = $preserveNulls;
  2021. }
  2022. public function getPreserveNulls()
  2023. {
  2024. return $this->preserveNulls;
  2025. }
  2026. public function setPriority($priority)
  2027. {
  2028. $this->priority = $priority;
  2029. }
  2030. public function getPriority()
  2031. {
  2032. return $this->priority;
  2033. }
  2034. public function setQuery($query)
  2035. {
  2036. $this->query = $query;
  2037. }
  2038. public function getQuery()
  2039. {
  2040. return $this->query;
  2041. }
  2042. public function setTableDefinitions($tableDefinitions)
  2043. {
  2044. $this->tableDefinitions = $tableDefinitions;
  2045. }
  2046. public function getTableDefinitions()
  2047. {
  2048. return $this->tableDefinitions;
  2049. }
  2050. public function setUseQueryCache($useQueryCache)
  2051. {
  2052. $this->useQueryCache = $useQueryCache;
  2053. }
  2054. public function getUseQueryCache()
  2055. {
  2056. return $this->useQueryCache;
  2057. }
  2058. public function setUserDefinedFunctionResources($userDefinedFunctionResources)
  2059. {
  2060. $this->userDefinedFunctionResources = $userDefinedFunctionResources;
  2061. }
  2062. public function getUserDefinedFunctionResources()
  2063. {
  2064. return $this->userDefinedFunctionResources;
  2065. }
  2066. public function setWriteDisposition($writeDisposition)
  2067. {
  2068. $this->writeDisposition = $writeDisposition;
  2069. }
  2070. public function getWriteDisposition()
  2071. {
  2072. return $this->writeDisposition;
  2073. }
  2074. }
  2075. class Google_Service_Bigquery_JobConfigurationQueryTableDefinitions extends Google_Model
  2076. {
  2077. }
  2078. class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection
  2079. {
  2080. protected $collection_key = 'sourceTables';
  2081. protected $internal_gapi_mappings = array(
  2082. );
  2083. public $createDisposition;
  2084. protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
  2085. protected $destinationTableDataType = '';
  2086. protected $sourceTableType = 'Google_Service_Bigquery_TableReference';
  2087. protected $sourceTableDataType = '';
  2088. protected $sourceTablesType = 'Google_Service_Bigquery_TableReference';
  2089. protected $sourceTablesDataType = 'array';
  2090. public $writeDisposition;
  2091. public function setCreateDisposition($createDisposition)
  2092. {
  2093. $this->createDisposition = $createDisposition;
  2094. }
  2095. public function getCreateDisposition()
  2096. {
  2097. return $this->createDisposition;
  2098. }
  2099. public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
  2100. {
  2101. $this->destinationTable = $destinationTable;
  2102. }
  2103. public function getDestinationTable()
  2104. {
  2105. return $this->destinationTable;
  2106. }
  2107. public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable)
  2108. {
  2109. $this->sourceTable = $sourceTable;
  2110. }
  2111. public function getSourceTable()
  2112. {
  2113. return $this->sourceTable;
  2114. }
  2115. public function setSourceTables($sourceTables)
  2116. {
  2117. $this->sourceTables = $sourceTables;
  2118. }
  2119. public function getSourceTables()
  2120. {
  2121. return $this->sourceTables;
  2122. }
  2123. public function setWriteDisposition($writeDisposition)
  2124. {
  2125. $this->writeDisposition = $writeDisposition;
  2126. }
  2127. public function getWriteDisposition()
  2128. {
  2129. return $this->writeDisposition;
  2130. }
  2131. }
  2132. class Google_Service_Bigquery_JobList extends Google_Collection
  2133. {
  2134. protected $collection_key = 'jobs';
  2135. protected $internal_gapi_mappings = array(
  2136. );
  2137. public $etag;
  2138. protected $jobsType = 'Google_Service_Bigquery_JobListJobs';
  2139. protected $jobsDataType = 'array';
  2140. public $kind;
  2141. public $nextPageToken;
  2142. public function setEtag($etag)
  2143. {
  2144. $this->etag = $etag;
  2145. }
  2146. public function getEtag()
  2147. {
  2148. return $this->etag;
  2149. }
  2150. public function setJobs($jobs)
  2151. {
  2152. $this->jobs = $jobs;
  2153. }
  2154. public function getJobs()
  2155. {
  2156. return $this->jobs;
  2157. }
  2158. public function setKind($kind)
  2159. {
  2160. $this->kind = $kind;
  2161. }
  2162. public function getKind()
  2163. {
  2164. return $this->kind;
  2165. }
  2166. public function setNextPageToken($nextPageToken)
  2167. {
  2168. $this->nextPageToken = $nextPageToken;
  2169. }
  2170. public function getNextPageToken()
  2171. {
  2172. return $this->nextPageToken;
  2173. }
  2174. }
  2175. class Google_Service_Bigquery_JobListJobs extends Google_Model
  2176. {
  2177. protected $internal_gapi_mappings = array(
  2178. "userEmail" => "user_email",
  2179. );
  2180. protected $configurationType = 'Google_Service_Bigquery_JobConfiguration';
  2181. protected $configurationDataType = '';
  2182. protected $errorResultType = 'Google_Service_Bigquery_ErrorProto';
  2183. protected $errorResultDataType = '';
  2184. public $id;
  2185. protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
  2186. protected $jobReferenceDataType = '';
  2187. public $kind;
  2188. public $state;
  2189. protected $statisticsType = 'Google_Service_Bigquery_JobStatistics';
  2190. protected $statisticsDataType = '';
  2191. protected $statusType = 'Google_Service_Bigquery_JobStatus';
  2192. protected $statusDataType = '';
  2193. public $userEmail;
  2194. public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration)
  2195. {
  2196. $this->configuration = $configuration;
  2197. }
  2198. public function getConfiguration()
  2199. {
  2200. return $this->configuration;
  2201. }
  2202. public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult)
  2203. {
  2204. $this->errorResult = $errorResult;
  2205. }
  2206. public function getErrorResult()
  2207. {
  2208. return $this->errorResult;
  2209. }
  2210. public function setId($id)
  2211. {
  2212. $this->id = $id;
  2213. }
  2214. public function getId()
  2215. {
  2216. return $this->id;
  2217. }
  2218. public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
  2219. {
  2220. $this->jobReference = $jobReference;
  2221. }
  2222. public function getJobReference()
  2223. {
  2224. return $this->jobReference;
  2225. }
  2226. public function setKind($kind)
  2227. {
  2228. $this->kind = $kind;
  2229. }
  2230. public function getKind()
  2231. {
  2232. return $this->kind;
  2233. }
  2234. public function setState($state)
  2235. {
  2236. $this->state = $state;
  2237. }
  2238. public function getState()
  2239. {
  2240. return $this->state;
  2241. }
  2242. public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics)
  2243. {
  2244. $this->statistics = $statistics;
  2245. }
  2246. public function getStatistics()
  2247. {
  2248. return $this->statistics;
  2249. }
  2250. public function setStatus(Google_Service_Bigquery_JobStatus $status)
  2251. {
  2252. $this->status = $status;
  2253. }
  2254. public function getStatus()
  2255. {
  2256. return $this->status;
  2257. }
  2258. public function setUserEmail($userEmail)
  2259. {
  2260. $this->userEmail = $userEmail;
  2261. }
  2262. public function getUserEmail()
  2263. {
  2264. return $this->userEmail;
  2265. }
  2266. }
  2267. class Google_Service_Bigquery_JobReference extends Google_Model
  2268. {
  2269. protected $internal_gapi_mappings = array(
  2270. );
  2271. public $jobId;
  2272. public $projectId;
  2273. public function setJobId($jobId)
  2274. {
  2275. $this->jobId = $jobId;
  2276. }
  2277. public function getJobId()
  2278. {
  2279. return $this->jobId;
  2280. }
  2281. public function setProjectId($projectId)
  2282. {
  2283. $this->projectId = $projectId;
  2284. }
  2285. public function getProjectId()
  2286. {
  2287. return $this->projectId;
  2288. }
  2289. }
  2290. class Google_Service_Bigquery_JobStatistics extends Google_Model
  2291. {
  2292. protected $internal_gapi_mappings = array(
  2293. );
  2294. public $creationTime;
  2295. public $endTime;
  2296. protected $extractType = 'Google_Service_Bigquery_JobStatistics4';
  2297. protected $extractDataType = '';
  2298. protected $loadType = 'Google_Service_Bigquery_JobStatistics3';
  2299. protected $loadDataType = '';
  2300. protected $queryType = 'Google_Service_Bigquery_JobStatistics2';
  2301. protected $queryDataType = '';
  2302. public $startTime;
  2303. public $totalBytesProcessed;
  2304. public function setCreationTime($creationTime)
  2305. {
  2306. $this->creationTime = $creationTime;
  2307. }
  2308. public function getCreationTime()
  2309. {
  2310. return $this->creationTime;
  2311. }
  2312. public function setEndTime($endTime)
  2313. {
  2314. $this->endTime = $endTime;
  2315. }
  2316. public function getEndTime()
  2317. {
  2318. return $this->endTime;
  2319. }
  2320. public function setExtract(Google_Service_Bigquery_JobStatistics4 $extract)
  2321. {
  2322. $this->extract = $extract;
  2323. }
  2324. public function getExtract()
  2325. {
  2326. return $this->extract;
  2327. }
  2328. public function setLoad(Google_Service_Bigquery_JobStatistics3 $load)
  2329. {
  2330. $this->load = $load;
  2331. }
  2332. public function getLoad()
  2333. {
  2334. return $this->load;
  2335. }
  2336. public function setQuery(Google_Service_Bigquery_JobStatistics2 $query)
  2337. {
  2338. $this->query = $query;
  2339. }
  2340. public function getQuery()
  2341. {
  2342. return $this->query;
  2343. }
  2344. public function setStartTime($startTime)
  2345. {
  2346. $this->startTime = $startTime;
  2347. }
  2348. public function getStartTime()
  2349. {
  2350. return $this->startTime;
  2351. }
  2352. public function setTotalBytesProcessed($totalBytesProcessed)
  2353. {
  2354. $this->totalBytesProcessed = $totalBytesProcessed;
  2355. }
  2356. public function getTotalBytesProcessed()
  2357. {
  2358. return $this->totalBytesProcessed;
  2359. }
  2360. }
  2361. class Google_Service_Bigquery_JobStatistics2 extends Google_Model
  2362. {
  2363. protected $internal_gapi_mappings = array(
  2364. );
  2365. public $billingTier;
  2366. public $cacheHit;
  2367. public $totalBytesBilled;
  2368. public $totalBytesProcessed;
  2369. public function setBillingTier($billingTier)
  2370. {
  2371. $this->billingTier = $billingTier;
  2372. }
  2373. public function getBillingTier()
  2374. {
  2375. return $this->billingTier;
  2376. }
  2377. public function setCacheHit($cacheHit)
  2378. {
  2379. $this->cacheHit = $cacheHit;
  2380. }
  2381. public function getCacheHit()
  2382. {
  2383. return $this->cacheHit;
  2384. }
  2385. public function setTotalBytesBilled($totalBytesBilled)
  2386. {
  2387. $this->totalBytesBilled = $totalBytesBilled;
  2388. }
  2389. public function getTotalBytesBilled()
  2390. {
  2391. return $this->totalBytesBilled;
  2392. }
  2393. public function setTotalBytesProcessed($totalBytesProcessed)
  2394. {
  2395. $this->totalBytesProcessed = $totalBytesProcessed;
  2396. }
  2397. public function getTotalBytesProcessed()
  2398. {
  2399. return $this->totalBytesProcessed;
  2400. }
  2401. }
  2402. class Google_Service_Bigquery_JobStatistics3 extends Google_Model
  2403. {
  2404. protected $internal_gapi_mappings = array(
  2405. );
  2406. public $inputFileBytes;
  2407. public $inputFiles;
  2408. public $outputBytes;
  2409. public $outputRows;
  2410. public function setInputFileBytes($inputFileBytes)
  2411. {
  2412. $this->inputFileBytes = $inputFileBytes;
  2413. }
  2414. public function getInputFileBytes()
  2415. {
  2416. return $this->inputFileBytes;
  2417. }
  2418. public function setInputFiles($inputFiles)
  2419. {
  2420. $this->inputFiles = $inputFiles;
  2421. }
  2422. public function getInputFiles()
  2423. {
  2424. return $this->inputFiles;
  2425. }
  2426. public function setOutputBytes($outputBytes)
  2427. {
  2428. $this->outputBytes = $outputBytes;
  2429. }
  2430. public function getOutputBytes()
  2431. {
  2432. return $this->outputBytes;
  2433. }
  2434. public function setOutputRows($outputRows)
  2435. {
  2436. $this->outputRows = $outputRows;
  2437. }
  2438. public function getOutputRows()
  2439. {
  2440. return $this->outputRows;
  2441. }
  2442. }
  2443. class Google_Service_Bigquery_JobStatistics4 extends Google_Collection
  2444. {
  2445. protected $collection_key = 'destinationUriFileCounts';
  2446. protected $internal_gapi_mappings = array(
  2447. );
  2448. public $destinationUriFileCounts;
  2449. public function setDestinationUriFileCounts($destinationUriFileCounts)
  2450. {
  2451. $this->destinationUriFileCounts = $destinationUriFileCounts;
  2452. }
  2453. public function getDestinationUriFileCounts()
  2454. {
  2455. return $this->destinationUriFileCounts;
  2456. }
  2457. }
  2458. class Google_Service_Bigquery_JobStatus extends Google_Collection
  2459. {
  2460. protected $collection_key = 'errors';
  2461. protected $internal_gapi_mappings = array(
  2462. );
  2463. protected $errorResultType = 'Google_Service_Bigquery_ErrorProto';
  2464. protected $errorResultDataType = '';
  2465. protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
  2466. protected $errorsDataType = 'array';
  2467. public $state;
  2468. public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult)
  2469. {
  2470. $this->errorResult = $errorResult;
  2471. }
  2472. public function getErrorResult()
  2473. {
  2474. return $this->errorResult;
  2475. }
  2476. public function setErrors($errors)
  2477. {
  2478. $this->errors = $errors;
  2479. }
  2480. public function getErrors()
  2481. {
  2482. return $this->errors;
  2483. }
  2484. public function setState($state)
  2485. {
  2486. $this->state = $state;
  2487. }
  2488. public function getState()
  2489. {
  2490. return $this->state;
  2491. }
  2492. }
  2493. class Google_Service_Bigquery_JsonObject extends Google_Model
  2494. {
  2495. }
  2496. class Google_Service_Bigquery_ProjectList extends Google_Collection
  2497. {
  2498. protected $collection_key = 'projects';
  2499. protected $internal_gapi_mappings = array(
  2500. );
  2501. public $etag;
  2502. public $kind;
  2503. public $nextPageToken;
  2504. protected $projectsType = 'Google_Service_Bigquery_ProjectListProjects';
  2505. protected $projectsDataType = 'array';
  2506. public $totalItems;
  2507. public function setEtag($etag)
  2508. {
  2509. $this->etag = $etag;
  2510. }
  2511. public function getEtag()
  2512. {
  2513. return $this->etag;
  2514. }
  2515. public function setKind($kind)
  2516. {
  2517. $this->kind = $kind;
  2518. }
  2519. public function getKind()
  2520. {
  2521. return $this->kind;
  2522. }
  2523. public function setNextPageToken($nextPageToken)
  2524. {
  2525. $this->nextPageToken = $nextPageToken;
  2526. }
  2527. public function getNextPageToken()
  2528. {
  2529. return $this->nextPageToken;
  2530. }
  2531. public function setProjects($projects)
  2532. {
  2533. $this->projects = $projects;
  2534. }
  2535. public function getProjects()
  2536. {
  2537. return $this->projects;
  2538. }
  2539. public function setTotalItems($totalItems)
  2540. {
  2541. $this->totalItems = $totalItems;
  2542. }
  2543. public function getTotalItems()
  2544. {
  2545. return $this->totalItems;
  2546. }
  2547. }
  2548. class Google_Service_Bigquery_ProjectListProjects extends Google_Model
  2549. {
  2550. protected $internal_gapi_mappings = array(
  2551. );
  2552. public $friendlyName;
  2553. public $id;
  2554. public $kind;
  2555. public $numericId;
  2556. protected $projectReferenceType = 'Google_Service_Bigquery_ProjectReference';
  2557. protected $projectReferenceDataType = '';
  2558. public function setFriendlyName($friendlyName)
  2559. {
  2560. $this->friendlyName = $friendlyName;
  2561. }
  2562. public function getFriendlyName()
  2563. {
  2564. return $this->friendlyName;
  2565. }
  2566. public function setId($id)
  2567. {
  2568. $this->id = $id;
  2569. }
  2570. public function getId()
  2571. {
  2572. return $this->id;
  2573. }
  2574. public function setKind($kind)
  2575. {
  2576. $this->kind = $kind;
  2577. }
  2578. public function getKind()
  2579. {
  2580. return $this->kind;
  2581. }
  2582. public function setNumericId($numericId)
  2583. {
  2584. $this->numericId = $numericId;
  2585. }
  2586. public function getNumericId()
  2587. {
  2588. return $this->numericId;
  2589. }
  2590. public function setProjectReference(Google_Service_Bigquery_ProjectReference $projectReference)
  2591. {
  2592. $this->projectReference = $projectReference;
  2593. }
  2594. public function getProjectReference()
  2595. {
  2596. return $this->projectReference;
  2597. }
  2598. }
  2599. class Google_Service_Bigquery_ProjectReference extends Google_Model
  2600. {
  2601. protected $internal_gapi_mappings = array(
  2602. );
  2603. public $projectId;
  2604. public function setProjectId($projectId)
  2605. {
  2606. $this->projectId = $projectId;
  2607. }
  2608. public function getProjectId()
  2609. {
  2610. return $this->projectId;
  2611. }
  2612. }
  2613. class Google_Service_Bigquery_QueryRequest extends Google_Model
  2614. {
  2615. protected $internal_gapi_mappings = array(
  2616. );
  2617. protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference';
  2618. protected $defaultDatasetDataType = '';
  2619. public $dryRun;
  2620. public $kind;
  2621. public $maxResults;
  2622. public $preserveNulls;
  2623. public $query;
  2624. public $timeoutMs;
  2625. public $useQueryCache;
  2626. public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset)
  2627. {
  2628. $this->defaultDataset = $defaultDataset;
  2629. }
  2630. public function getDefaultDataset()
  2631. {
  2632. return $this->defaultDataset;
  2633. }
  2634. public function setDryRun($dryRun)
  2635. {
  2636. $this->dryRun = $dryRun;
  2637. }
  2638. public function getDryRun()
  2639. {
  2640. return $this->dryRun;
  2641. }
  2642. public function setKind($kind)
  2643. {
  2644. $this->kind = $kind;
  2645. }
  2646. public function getKind()
  2647. {
  2648. return $this->kind;
  2649. }
  2650. public function setMaxResults($maxResults)
  2651. {
  2652. $this->maxResults = $maxResults;
  2653. }
  2654. public function getMaxResults()
  2655. {
  2656. return $this->maxResults;
  2657. }
  2658. public function setPreserveNulls($preserveNulls)
  2659. {
  2660. $this->preserveNulls = $preserveNulls;
  2661. }
  2662. public function getPreserveNulls()
  2663. {
  2664. return $this->preserveNulls;
  2665. }
  2666. public function setQuery($query)
  2667. {
  2668. $this->query = $query;
  2669. }
  2670. public function getQuery()
  2671. {
  2672. return $this->query;
  2673. }
  2674. public function setTimeoutMs($timeoutMs)
  2675. {
  2676. $this->timeoutMs = $timeoutMs;
  2677. }
  2678. public function getTimeoutMs()
  2679. {
  2680. return $this->timeoutMs;
  2681. }
  2682. public function setUseQueryCache($useQueryCache)
  2683. {
  2684. $this->useQueryCache = $useQueryCache;
  2685. }
  2686. public function getUseQueryCache()
  2687. {
  2688. return $this->useQueryCache;
  2689. }
  2690. }
  2691. class Google_Service_Bigquery_QueryResponse extends Google_Collection
  2692. {
  2693. protected $collection_key = 'rows';
  2694. protected $internal_gapi_mappings = array(
  2695. );
  2696. public $cacheHit;
  2697. protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
  2698. protected $errorsDataType = 'array';
  2699. public $jobComplete;
  2700. protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
  2701. protected $jobReferenceDataType = '';
  2702. public $kind;
  2703. public $pageToken;
  2704. protected $rowsType = 'Google_Service_Bigquery_TableRow';
  2705. protected $rowsDataType = 'array';
  2706. protected $schemaType = 'Google_Service_Bigquery_TableSchema';
  2707. protected $schemaDataType = '';
  2708. public $totalBytesProcessed;
  2709. public $totalRows;
  2710. public function setCacheHit($cacheHit)
  2711. {
  2712. $this->cacheHit = $cacheHit;
  2713. }
  2714. public function getCacheHit()
  2715. {
  2716. return $this->cacheHit;
  2717. }
  2718. public function setErrors($errors)
  2719. {
  2720. $this->errors = $errors;
  2721. }
  2722. public function getErrors()
  2723. {
  2724. return $this->errors;
  2725. }
  2726. public function setJobComplete($jobComplete)
  2727. {
  2728. $this->jobComplete = $jobComplete;
  2729. }
  2730. public function getJobComplete()
  2731. {
  2732. return $this->jobComplete;
  2733. }
  2734. public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
  2735. {
  2736. $this->jobReference = $jobReference;
  2737. }
  2738. public function getJobReference()
  2739. {
  2740. return $this->jobReference;
  2741. }
  2742. public function setKind($kind)
  2743. {
  2744. $this->kind = $kind;
  2745. }
  2746. public function getKind()
  2747. {
  2748. return $this->kind;
  2749. }
  2750. public function setPageToken($pageToken)
  2751. {
  2752. $this->pageToken = $pageToken;
  2753. }
  2754. public function getPageToken()
  2755. {
  2756. return $this->pageToken;
  2757. }
  2758. public function setRows($rows)
  2759. {
  2760. $this->rows = $rows;
  2761. }
  2762. public function getRows()
  2763. {
  2764. return $this->rows;
  2765. }
  2766. public function setSchema(Google_Service_Bigquery_TableSchema $schema)
  2767. {
  2768. $this->schema = $schema;
  2769. }
  2770. public function getSchema()
  2771. {
  2772. return $this->schema;
  2773. }
  2774. public function setTotalBytesProcessed($totalBytesProcessed)
  2775. {
  2776. $this->totalBytesProcessed = $totalBytesProcessed;
  2777. }
  2778. public function getTotalBytesProcessed()
  2779. {
  2780. return $this->totalBytesProcessed;
  2781. }
  2782. public function setTotalRows($totalRows)
  2783. {
  2784. $this->totalRows = $totalRows;
  2785. }
  2786. public function getTotalRows()
  2787. {
  2788. return $this->totalRows;
  2789. }
  2790. }
  2791. class Google_Service_Bigquery_Streamingbuffer extends Google_Model
  2792. {
  2793. protected $internal_gapi_mappings = array(
  2794. );
  2795. public $estimatedBytes;
  2796. public $estimatedRows;
  2797. public $oldestEntryTime;
  2798. public function setEstimatedBytes($estimatedBytes)
  2799. {
  2800. $this->estimatedBytes = $estimatedBytes;
  2801. }
  2802. public function getEstimatedBytes()
  2803. {
  2804. return $this->estimatedBytes;
  2805. }
  2806. public function setEstimatedRows($estimatedRows)
  2807. {
  2808. $this->estimatedRows = $estimatedRows;
  2809. }
  2810. public function getEstimatedRows()
  2811. {
  2812. return $this->estimatedRows;
  2813. }
  2814. public function setOldestEntryTime($oldestEntryTime)
  2815. {
  2816. $this->oldestEntryTime = $oldestEntryTime;
  2817. }
  2818. public function getOldestEntryTime()
  2819. {
  2820. return $this->oldestEntryTime;
  2821. }
  2822. }
  2823. class Google_Service_Bigquery_Table extends Google_Model
  2824. {
  2825. protected $internal_gapi_mappings = array(
  2826. );
  2827. public $creationTime;
  2828. public $description;
  2829. public $etag;
  2830. public $expirationTime;
  2831. protected $externalDataConfigurationType = 'Google_Service_Bigquery_ExternalDataConfiguration';
  2832. protected $externalDataConfigurationDataType = '';
  2833. public $friendlyName;
  2834. public $id;
  2835. public $kind;
  2836. public $lastModifiedTime;
  2837. public $location;
  2838. public $numBytes;
  2839. public $numRows;
  2840. protected $schemaType = 'Google_Service_Bigquery_TableSchema';
  2841. protected $schemaDataType = '';
  2842. public $selfLink;
  2843. protected $streamingBufferType = 'Google_Service_Bigquery_Streamingbuffer';
  2844. protected $streamingBufferDataType = '';
  2845. protected $tableReferenceType = 'Google_Service_Bigquery_TableReference';
  2846. protected $tableReferenceDataType = '';
  2847. public $type;
  2848. protected $viewType = 'Google_Service_Bigquery_ViewDefinition';
  2849. protected $viewDataType = '';
  2850. public function setCreationTime($creationTime)
  2851. {
  2852. $this->creationTime = $creationTime;
  2853. }
  2854. public function getCreationTime()
  2855. {
  2856. return $this->creationTime;
  2857. }
  2858. public function setDescription($description)
  2859. {
  2860. $this->description = $description;
  2861. }
  2862. public function getDescription()
  2863. {
  2864. return $this->description;
  2865. }
  2866. public function setEtag($etag)
  2867. {
  2868. $this->etag = $etag;
  2869. }
  2870. public function getEtag()
  2871. {
  2872. return $this->etag;
  2873. }
  2874. public function setExpirationTime($expirationTime)
  2875. {
  2876. $this->expirationTime = $expirationTime;
  2877. }
  2878. public function getExpirationTime()
  2879. {
  2880. return $this->expirationTime;
  2881. }
  2882. public function setExternalDataConfiguration(Google_Service_Bigquery_ExternalDataConfiguration $externalDataConfiguration)
  2883. {
  2884. $this->externalDataConfiguration = $externalDataConfiguration;
  2885. }
  2886. public function getExternalDataConfiguration()
  2887. {
  2888. return $this->externalDataConfiguration;
  2889. }
  2890. public function setFriendlyName($friendlyName)
  2891. {
  2892. $this->friendlyName = $friendlyName;
  2893. }
  2894. public function getFriendlyName()
  2895. {
  2896. return $this->friendlyName;
  2897. }
  2898. public function setId($id)
  2899. {
  2900. $this->id = $id;
  2901. }
  2902. public function getId()
  2903. {
  2904. return $this->id;
  2905. }
  2906. public function setKind($kind)
  2907. {
  2908. $this->kind = $kind;
  2909. }
  2910. public function getKind()
  2911. {
  2912. return $this->kind;
  2913. }
  2914. public function setLastModifiedTime($lastModifiedTime)
  2915. {
  2916. $this->lastModifiedTime = $lastModifiedTime;
  2917. }
  2918. public function getLastModifiedTime()
  2919. {
  2920. return $this->lastModifiedTime;
  2921. }
  2922. public function setLocation($location)
  2923. {
  2924. $this->location = $location;
  2925. }
  2926. public function getLocation()
  2927. {
  2928. return $this->location;
  2929. }
  2930. public function setNumBytes($numBytes)
  2931. {
  2932. $this->numBytes = $numBytes;
  2933. }
  2934. public function getNumBytes()
  2935. {
  2936. return $this->numBytes;
  2937. }
  2938. public function setNumRows($numRows)
  2939. {
  2940. $this->numRows = $numRows;
  2941. }
  2942. public function getNumRows()
  2943. {
  2944. return $this->numRows;
  2945. }
  2946. public function setSchema(Google_Service_Bigquery_TableSchema $schema)
  2947. {
  2948. $this->schema = $schema;
  2949. }
  2950. public function getSchema()
  2951. {
  2952. return $this->schema;
  2953. }
  2954. public function setSelfLink($selfLink)
  2955. {
  2956. $this->selfLink = $selfLink;
  2957. }
  2958. public function getSelfLink()
  2959. {
  2960. return $this->selfLink;
  2961. }
  2962. public function setStreamingBuffer(Google_Service_Bigquery_Streamingbuffer $streamingBuffer)
  2963. {
  2964. $this->streamingBuffer = $streamingBuffer;
  2965. }
  2966. public function getStreamingBuffer()
  2967. {
  2968. return $this->streamingBuffer;
  2969. }
  2970. public function setTableReference(Google_Service_Bigquery_TableReference $tableReference)
  2971. {
  2972. $this->tableReference = $tableReference;
  2973. }
  2974. public function getTableReference()
  2975. {
  2976. return $this->tableReference;
  2977. }
  2978. public function setType($type)
  2979. {
  2980. $this->type = $type;
  2981. }
  2982. public function getType()
  2983. {
  2984. return $this->type;
  2985. }
  2986. public function setView(Google_Service_Bigquery_ViewDefinition $view)
  2987. {
  2988. $this->view = $view;
  2989. }
  2990. public function getView()
  2991. {
  2992. return $this->view;
  2993. }
  2994. }
  2995. class Google_Service_Bigquery_TableCell extends Google_Model
  2996. {
  2997. protected $internal_gapi_mappings = array(
  2998. );
  2999. public $v;
  3000. public function setV($v)
  3001. {
  3002. $this->v = $v;
  3003. }
  3004. public function getV()
  3005. {
  3006. return $this->v;
  3007. }
  3008. }
  3009. class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection
  3010. {
  3011. protected $collection_key = 'rows';
  3012. protected $internal_gapi_mappings = array(
  3013. );
  3014. public $ignoreUnknownValues;
  3015. public $kind;
  3016. protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows';
  3017. protected $rowsDataType = 'array';
  3018. public $skipInvalidRows;
  3019. public function setIgnoreUnknownValues($ignoreUnknownValues)
  3020. {
  3021. $this->ignoreUnknownValues = $ignoreUnknownValues;
  3022. }
  3023. public function getIgnoreUnknownValues()
  3024. {
  3025. return $this->ignoreUnknownValues;
  3026. }
  3027. public function setKind($kind)
  3028. {
  3029. $this->kind = $kind;
  3030. }
  3031. public function getKind()
  3032. {
  3033. return $this->kind;
  3034. }
  3035. public function setRows($rows)
  3036. {
  3037. $this->rows = $rows;
  3038. }
  3039. public function getRows()
  3040. {
  3041. return $this->rows;
  3042. }
  3043. public function setSkipInvalidRows($skipInvalidRows)
  3044. {
  3045. $this->skipInvalidRows = $skipInvalidRows;
  3046. }
  3047. public function getSkipInvalidRows()
  3048. {
  3049. return $this->skipInvalidRows;
  3050. }
  3051. }
  3052. class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model
  3053. {
  3054. protected $internal_gapi_mappings = array(
  3055. );
  3056. public $insertId;
  3057. public $json;
  3058. public function setInsertId($insertId)
  3059. {
  3060. $this->insertId = $insertId;
  3061. }
  3062. public function getInsertId()
  3063. {
  3064. return $this->insertId;
  3065. }
  3066. public function setJson($json)
  3067. {
  3068. $this->json = $json;
  3069. }
  3070. public function getJson()
  3071. {
  3072. return $this->json;
  3073. }
  3074. }
  3075. class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection
  3076. {
  3077. protected $collection_key = 'insertErrors';
  3078. protected $internal_gapi_mappings = array(
  3079. );
  3080. protected $insertErrorsType = 'Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors';
  3081. protected $insertErrorsDataType = 'array';
  3082. public $kind;
  3083. public function setInsertErrors($insertErrors)
  3084. {
  3085. $this->insertErrors = $insertErrors;
  3086. }
  3087. public function getInsertErrors()
  3088. {
  3089. return $this->insertErrors;
  3090. }
  3091. public function setKind($kind)
  3092. {
  3093. $this->kind = $kind;
  3094. }
  3095. public function getKind()
  3096. {
  3097. return $this->kind;
  3098. }
  3099. }
  3100. class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection
  3101. {
  3102. protected $collection_key = 'errors';
  3103. protected $internal_gapi_mappings = array(
  3104. );
  3105. protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
  3106. protected $errorsDataType = 'array';
  3107. public $index;
  3108. public function setErrors($errors)
  3109. {
  3110. $this->errors = $errors;
  3111. }
  3112. public function getErrors()
  3113. {
  3114. return $this->errors;
  3115. }
  3116. public function setIndex($index)
  3117. {
  3118. $this->index = $index;
  3119. }
  3120. public function getIndex()
  3121. {
  3122. return $this->index;
  3123. }
  3124. }
  3125. class Google_Service_Bigquery_TableDataList extends Google_Collection
  3126. {
  3127. protected $collection_key = 'rows';
  3128. protected $internal_gapi_mappings = array(
  3129. );
  3130. public $etag;
  3131. public $kind;
  3132. public $pageToken;
  3133. protected $rowsType = 'Google_Service_Bigquery_TableRow';
  3134. protected $rowsDataType = 'array';
  3135. public $totalRows;
  3136. public function setEtag($etag)
  3137. {
  3138. $this->etag = $etag;
  3139. }
  3140. public function getEtag()
  3141. {
  3142. return $this->etag;
  3143. }
  3144. public function setKind($kind)
  3145. {
  3146. $this->kind = $kind;
  3147. }
  3148. public function getKind()
  3149. {
  3150. return $this->kind;
  3151. }
  3152. public function setPageToken($pageToken)
  3153. {
  3154. $this->pageToken = $pageToken;
  3155. }
  3156. public function getPageToken()
  3157. {
  3158. return $this->pageToken;
  3159. }
  3160. public function setRows($rows)
  3161. {
  3162. $this->rows = $rows;
  3163. }
  3164. public function getRows()
  3165. {
  3166. return $this->rows;
  3167. }
  3168. public function setTotalRows($totalRows)
  3169. {
  3170. $this->totalRows = $totalRows;
  3171. }
  3172. public function getTotalRows()
  3173. {
  3174. return $this->totalRows;
  3175. }
  3176. }
  3177. class Google_Service_Bigquery_TableFieldSchema extends Google_Collection
  3178. {
  3179. protected $collection_key = 'fields';
  3180. protected $internal_gapi_mappings = array(
  3181. );
  3182. public $description;
  3183. protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema';
  3184. protected $fieldsDataType = 'array';
  3185. public $mode;
  3186. public $name;
  3187. public $type;
  3188. public function setDescription($description)
  3189. {
  3190. $this->description = $description;
  3191. }
  3192. public function getDescription()
  3193. {
  3194. return $this->description;
  3195. }
  3196. public function setFields($fields)
  3197. {
  3198. $this->fields = $fields;
  3199. }
  3200. public function getFields()
  3201. {
  3202. return $this->fields;
  3203. }
  3204. public function setMode($mode)
  3205. {
  3206. $this->mode = $mode;
  3207. }
  3208. public function getMode()
  3209. {
  3210. return $this->mode;
  3211. }
  3212. public function setName($name)
  3213. {
  3214. $this->name = $name;
  3215. }
  3216. public function getName()
  3217. {
  3218. return $this->name;
  3219. }
  3220. public function setType($type)
  3221. {
  3222. $this->type = $type;
  3223. }
  3224. public function getType()
  3225. {
  3226. return $this->type;
  3227. }
  3228. }
  3229. class Google_Service_Bigquery_TableList extends Google_Collection
  3230. {
  3231. protected $collection_key = 'tables';
  3232. protected $internal_gapi_mappings = array(
  3233. );
  3234. public $etag;
  3235. public $kind;
  3236. public $nextPageToken;
  3237. protected $tablesType = 'Google_Service_Bigquery_TableListTables';
  3238. protected $tablesDataType = 'array';
  3239. public $totalItems;
  3240. public function setEtag($etag)
  3241. {
  3242. $this->etag = $etag;
  3243. }
  3244. public function getEtag()
  3245. {
  3246. return $this->etag;
  3247. }
  3248. public function setKind($kind)
  3249. {
  3250. $this->kind = $kind;
  3251. }
  3252. public function getKind()
  3253. {
  3254. return $this->kind;
  3255. }
  3256. public function setNextPageToken($nextPageToken)
  3257. {
  3258. $this->nextPageToken = $nextPageToken;
  3259. }
  3260. public function getNextPageToken()
  3261. {
  3262. return $this->nextPageToken;
  3263. }
  3264. public function setTables($tables)
  3265. {
  3266. $this->tables = $tables;
  3267. }
  3268. public function getTables()
  3269. {
  3270. return $this->tables;
  3271. }
  3272. public function setTotalItems($totalItems)
  3273. {
  3274. $this->totalItems = $totalItems;
  3275. }
  3276. public function getTotalItems()
  3277. {
  3278. return $this->totalItems;
  3279. }
  3280. }
  3281. class Google_Service_Bigquery_TableListTables extends Google_Model
  3282. {
  3283. protected $internal_gapi_mappings = array(
  3284. );
  3285. public $friendlyName;
  3286. public $id;
  3287. public $kind;
  3288. protected $tableReferenceType = 'Google_Service_Bigquery_TableReference';
  3289. protected $tableReferenceDataType = '';
  3290. public $type;
  3291. public function setFriendlyName($friendlyName)
  3292. {
  3293. $this->friendlyName = $friendlyName;
  3294. }
  3295. public function getFriendlyName()
  3296. {
  3297. return $this->friendlyName;
  3298. }
  3299. public function setId($id)
  3300. {
  3301. $this->id = $id;
  3302. }
  3303. public function getId()
  3304. {
  3305. return $this->id;
  3306. }
  3307. public function setKind($kind)
  3308. {
  3309. $this->kind = $kind;
  3310. }
  3311. public function getKind()
  3312. {
  3313. return $this->kind;
  3314. }
  3315. public function setTableReference(Google_Service_Bigquery_TableReference $tableReference)
  3316. {
  3317. $this->tableReference = $tableReference;
  3318. }
  3319. public function getTableReference()
  3320. {
  3321. return $this->tableReference;
  3322. }
  3323. public function setType($type)
  3324. {
  3325. $this->type = $type;
  3326. }
  3327. public function getType()
  3328. {
  3329. return $this->type;
  3330. }
  3331. }
  3332. class Google_Service_Bigquery_TableReference extends Google_Model
  3333. {
  3334. protected $internal_gapi_mappings = array(
  3335. );
  3336. public $datasetId;
  3337. public $projectId;
  3338. public $tableId;
  3339. public function setDatasetId($datasetId)
  3340. {
  3341. $this->datasetId = $datasetId;
  3342. }
  3343. public function getDatasetId()
  3344. {
  3345. return $this->datasetId;
  3346. }
  3347. public function setProjectId($projectId)
  3348. {
  3349. $this->projectId = $projectId;
  3350. }
  3351. public function getProjectId()
  3352. {
  3353. return $this->projectId;
  3354. }
  3355. public function setTableId($tableId)
  3356. {
  3357. $this->tableId = $tableId;
  3358. }
  3359. public function getTableId()
  3360. {
  3361. return $this->tableId;
  3362. }
  3363. }
  3364. class Google_Service_Bigquery_TableRow extends Google_Collection
  3365. {
  3366. protected $collection_key = 'f';
  3367. protected $internal_gapi_mappings = array(
  3368. );
  3369. protected $fType = 'Google_Service_Bigquery_TableCell';
  3370. protected $fDataType = 'array';
  3371. public function setF($f)
  3372. {
  3373. $this->f = $f;
  3374. }
  3375. public function getF()
  3376. {
  3377. return $this->f;
  3378. }
  3379. }
  3380. class Google_Service_Bigquery_TableSchema extends Google_Collection
  3381. {
  3382. protected $collection_key = 'fields';
  3383. protected $internal_gapi_mappings = array(
  3384. );
  3385. protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema';
  3386. protected $fieldsDataType = 'array';
  3387. public function setFields($fields)
  3388. {
  3389. $this->fields = $fields;
  3390. }
  3391. public function getFields()
  3392. {
  3393. return $this->fields;
  3394. }
  3395. }
  3396. class Google_Service_Bigquery_UserDefinedFunctionResource extends Google_Model
  3397. {
  3398. protected $internal_gapi_mappings = array(
  3399. );
  3400. public $inlineCode;
  3401. public $resourceUri;
  3402. public function setInlineCode($inlineCode)
  3403. {
  3404. $this->inlineCode = $inlineCode;
  3405. }
  3406. public function getInlineCode()
  3407. {
  3408. return $this->inlineCode;
  3409. }
  3410. public function setResourceUri($resourceUri)
  3411. {
  3412. $this->resourceUri = $resourceUri;
  3413. }
  3414. public function getResourceUri()
  3415. {
  3416. return $this->resourceUri;
  3417. }
  3418. }
  3419. class Google_Service_Bigquery_ViewDefinition extends Google_Model
  3420. {
  3421. protected $internal_gapi_mappings = array(
  3422. );
  3423. public $query;
  3424. public function setQuery($query)
  3425. {
  3426. $this->query = $query;
  3427. }
  3428. public function getQuery()
  3429. {
  3430. return $this->query;
  3431. }
  3432. }