/lib/Google/Service/Bigquery.php

  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. /** 
  19. * Service definition for Bigquery (v2). 
  20. * 
  21. * <p> 
  22. * A data platform for customers to create, manage, share and query data. 
  23. * </p> 
  24. * 
  25. * <p> 
  26. * For more information about this service, see the API 
  27. * <a href="https://developers.google.com/bigquery/docs/overview" target="_blank">Documentation</a> 
  28. * </p> 
  29. * 
  30. * @author Google, Inc. 
  31. */ 
  32. class Google_Service_Bigquery extends Google_Service 
  33. /** View and manage your data in Google BigQuery. */ 
  34. const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; 
  35. /** New Service. */ 
  36. const BIGQUERY_INSERTDATA = "https://www.googleapis.com/auth/bigquery.insertdata"; 
  37. /** View and manage your data across Google Cloud Platform services. */ 
  38. const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; 
  39. /** Manage your data and permissions in Google Cloud Storage. */ 
  40. const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; 
  41. /** View your data in Google Cloud Storage. */ 
  42. const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; 
  43. /** Manage your data in Google Cloud Storage. */ 
  44. const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; 
  45.  
  46. public $datasets; 
  47. public $jobs; 
  48. public $projects; 
  49. public $tabledata; 
  50. public $tables; 
  51.  
  52.  
  53. /** 
  54. * Constructs the internal representation of the Bigquery service. 
  55. * 
  56. * @param Google_Client $client 
  57. */ 
  58. public function __construct(Google_Client $client) 
  59. parent::__construct($client); 
  60. $this->servicePath = 'bigquery/v2/'; 
  61. $this->version = 'v2'; 
  62. $this->serviceName = 'bigquery'; 
  63.  
  64. $this->datasets = new Google_Service_Bigquery_Datasets_Resource( 
  65. $this,  
  66. $this->serviceName,  
  67. 'datasets',  
  68. array( 
  69. 'methods' => array( 
  70. 'delete' => array( 
  71. 'path' => 'projects/{projectId}/datasets/{datasetId}',  
  72. 'httpMethod' => 'DELETE',  
  73. 'parameters' => array( 
  74. 'projectId' => array( 
  75. 'location' => 'path',  
  76. 'type' => 'string',  
  77. 'required' => true,  
  78. ),  
  79. 'datasetId' => array( 
  80. 'location' => 'path',  
  81. 'type' => 'string',  
  82. 'required' => true,  
  83. ),  
  84. 'deleteContents' => array( 
  85. 'location' => 'query',  
  86. 'type' => 'boolean',  
  87. ),  
  88. ),  
  89. ), 'get' => array( 
  90. 'path' => 'projects/{projectId}/datasets/{datasetId}',  
  91. 'httpMethod' => 'GET',  
  92. 'parameters' => array( 
  93. 'projectId' => array( 
  94. 'location' => 'path',  
  95. 'type' => 'string',  
  96. 'required' => true,  
  97. ),  
  98. 'datasetId' => array( 
  99. 'location' => 'path',  
  100. 'type' => 'string',  
  101. 'required' => true,  
  102. ),  
  103. ),  
  104. ), 'insert' => array( 
  105. 'path' => 'projects/{projectId}/datasets',  
  106. 'httpMethod' => 'POST',  
  107. 'parameters' => array( 
  108. 'projectId' => array( 
  109. 'location' => 'path',  
  110. 'type' => 'string',  
  111. 'required' => true,  
  112. ),  
  113. ),  
  114. ), 'list' => array( 
  115. 'path' => 'projects/{projectId}/datasets',  
  116. 'httpMethod' => 'GET',  
  117. 'parameters' => array( 
  118. 'projectId' => array( 
  119. 'location' => 'path',  
  120. 'type' => 'string',  
  121. 'required' => true,  
  122. ),  
  123. 'pageToken' => array( 
  124. 'location' => 'query',  
  125. 'type' => 'string',  
  126. ),  
  127. 'all' => array( 
  128. 'location' => 'query',  
  129. 'type' => 'boolean',  
  130. ),  
  131. 'maxResults' => array( 
  132. 'location' => 'query',  
  133. 'type' => 'integer',  
  134. ),  
  135. ),  
  136. ), 'patch' => array( 
  137. 'path' => 'projects/{projectId}/datasets/{datasetId}',  
  138. 'httpMethod' => 'PATCH',  
  139. 'parameters' => array( 
  140. 'projectId' => array( 
  141. 'location' => 'path',  
  142. 'type' => 'string',  
  143. 'required' => true,  
  144. ),  
  145. 'datasetId' => array( 
  146. 'location' => 'path',  
  147. 'type' => 'string',  
  148. 'required' => true,  
  149. ),  
  150. ),  
  151. ), 'update' => array( 
  152. 'path' => 'projects/{projectId}/datasets/{datasetId}',  
  153. 'httpMethod' => 'PUT',  
  154. 'parameters' => array( 
  155. 'projectId' => array( 
  156. 'location' => 'path',  
  157. 'type' => 'string',  
  158. 'required' => true,  
  159. ),  
  160. 'datasetId' => array( 
  161. 'location' => 'path',  
  162. 'type' => 'string',  
  163. 'required' => true,  
  164. ),  
  165. ),  
  166. ),  
  167. ); 
  168. $this->jobs = new Google_Service_Bigquery_Jobs_Resource( 
  169. $this,  
  170. $this->serviceName,  
  171. 'jobs',  
  172. array( 
  173. 'methods' => array( 
  174. 'get' => array( 
  175. 'path' => 'projects/{projectId}/jobs/{jobId}',  
  176. 'httpMethod' => 'GET',  
  177. 'parameters' => array( 
  178. 'projectId' => array( 
  179. 'location' => 'path',  
  180. 'type' => 'string',  
  181. 'required' => true,  
  182. ),  
  183. 'jobId' => array( 
  184. 'location' => 'path',  
  185. 'type' => 'string',  
  186. 'required' => true,  
  187. ),  
  188. ),  
  189. ), 'getQueryResults' => array( 
  190. 'path' => 'projects/{projectId}/queries/{jobId}',  
  191. 'httpMethod' => 'GET',  
  192. 'parameters' => array( 
  193. 'projectId' => array( 
  194. 'location' => 'path',  
  195. 'type' => 'string',  
  196. 'required' => true,  
  197. ),  
  198. 'jobId' => array( 
  199. 'location' => 'path',  
  200. 'type' => 'string',  
  201. 'required' => true,  
  202. ),  
  203. 'timeoutMs' => array( 
  204. 'location' => 'query',  
  205. 'type' => 'integer',  
  206. ),  
  207. 'maxResults' => array( 
  208. 'location' => 'query',  
  209. 'type' => 'integer',  
  210. ),  
  211. 'pageToken' => array( 
  212. 'location' => 'query',  
  213. 'type' => 'string',  
  214. ),  
  215. 'startIndex' => array( 
  216. 'location' => 'query',  
  217. 'type' => 'string',  
  218. ),  
  219. ),  
  220. ), 'insert' => array( 
  221. 'path' => 'projects/{projectId}/jobs',  
  222. 'httpMethod' => 'POST',  
  223. 'parameters' => array( 
  224. 'projectId' => array( 
  225. 'location' => 'path',  
  226. 'type' => 'string',  
  227. 'required' => true,  
  228. ),  
  229. ),  
  230. ), 'list' => array( 
  231. 'path' => 'projects/{projectId}/jobs',  
  232. 'httpMethod' => 'GET',  
  233. 'parameters' => array( 
  234. 'projectId' => array( 
  235. 'location' => 'path',  
  236. 'type' => 'string',  
  237. 'required' => true,  
  238. ),  
  239. 'projection' => array( 
  240. 'location' => 'query',  
  241. 'type' => 'string',  
  242. ),  
  243. 'stateFilter' => array( 
  244. 'location' => 'query',  
  245. 'type' => 'string',  
  246. 'repeated' => true,  
  247. ),  
  248. 'allUsers' => array( 
  249. 'location' => 'query',  
  250. 'type' => 'boolean',  
  251. ),  
  252. 'maxResults' => array( 
  253. 'location' => 'query',  
  254. 'type' => 'integer',  
  255. ),  
  256. 'pageToken' => array( 
  257. 'location' => 'query',  
  258. 'type' => 'string',  
  259. ),  
  260. ),  
  261. ), 'query' => array( 
  262. 'path' => 'projects/{projectId}/queries',  
  263. 'httpMethod' => 'POST',  
  264. 'parameters' => array( 
  265. 'projectId' => array( 
  266. 'location' => 'path',  
  267. 'type' => 'string',  
  268. 'required' => true,  
  269. ),  
  270. ),  
  271. ),  
  272. ); 
  273. $this->projects = new Google_Service_Bigquery_Projects_Resource( 
  274. $this,  
  275. $this->serviceName,  
  276. 'projects',  
  277. array( 
  278. 'methods' => array( 
  279. 'list' => array( 
  280. 'path' => 'projects',  
  281. 'httpMethod' => 'GET',  
  282. 'parameters' => array( 
  283. 'pageToken' => array( 
  284. 'location' => 'query',  
  285. 'type' => 'string',  
  286. ),  
  287. 'maxResults' => array( 
  288. 'location' => 'query',  
  289. 'type' => 'integer',  
  290. ),  
  291. ),  
  292. ),  
  293. ); 
  294. $this->tabledata = new Google_Service_Bigquery_Tabledata_Resource( 
  295. $this,  
  296. $this->serviceName,  
  297. 'tabledata',  
  298. array( 
  299. 'methods' => array( 
  300. 'insertAll' => array( 
  301. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll',  
  302. 'httpMethod' => 'POST',  
  303. 'parameters' => array( 
  304. 'projectId' => array( 
  305. 'location' => 'path',  
  306. 'type' => 'string',  
  307. 'required' => true,  
  308. ),  
  309. 'datasetId' => array( 
  310. 'location' => 'path',  
  311. 'type' => 'string',  
  312. 'required' => true,  
  313. ),  
  314. 'tableId' => array( 
  315. 'location' => 'path',  
  316. 'type' => 'string',  
  317. 'required' => true,  
  318. ),  
  319. ),  
  320. ), 'list' => array( 
  321. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data',  
  322. 'httpMethod' => 'GET',  
  323. 'parameters' => array( 
  324. 'projectId' => array( 
  325. 'location' => 'path',  
  326. 'type' => 'string',  
  327. 'required' => true,  
  328. ),  
  329. 'datasetId' => array( 
  330. 'location' => 'path',  
  331. 'type' => 'string',  
  332. 'required' => true,  
  333. ),  
  334. 'tableId' => array( 
  335. 'location' => 'path',  
  336. 'type' => 'string',  
  337. 'required' => true,  
  338. ),  
  339. 'maxResults' => array( 
  340. 'location' => 'query',  
  341. 'type' => 'integer',  
  342. ),  
  343. 'pageToken' => array( 
  344. 'location' => 'query',  
  345. 'type' => 'string',  
  346. ),  
  347. 'startIndex' => array( 
  348. 'location' => 'query',  
  349. 'type' => 'string',  
  350. ),  
  351. ),  
  352. ),  
  353. ); 
  354. $this->tables = new Google_Service_Bigquery_Tables_Resource( 
  355. $this,  
  356. $this->serviceName,  
  357. 'tables',  
  358. array( 
  359. 'methods' => array( 
  360. 'delete' => array( 
  361. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',  
  362. 'httpMethod' => 'DELETE',  
  363. 'parameters' => array( 
  364. 'projectId' => array( 
  365. 'location' => 'path',  
  366. 'type' => 'string',  
  367. 'required' => true,  
  368. ),  
  369. 'datasetId' => array( 
  370. 'location' => 'path',  
  371. 'type' => 'string',  
  372. 'required' => true,  
  373. ),  
  374. 'tableId' => array( 
  375. 'location' => 'path',  
  376. 'type' => 'string',  
  377. 'required' => true,  
  378. ),  
  379. ),  
  380. ), 'get' => array( 
  381. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',  
  382. 'httpMethod' => 'GET',  
  383. 'parameters' => array( 
  384. 'projectId' => array( 
  385. 'location' => 'path',  
  386. 'type' => 'string',  
  387. 'required' => true,  
  388. ),  
  389. 'datasetId' => array( 
  390. 'location' => 'path',  
  391. 'type' => 'string',  
  392. 'required' => true,  
  393. ),  
  394. 'tableId' => array( 
  395. 'location' => 'path',  
  396. 'type' => 'string',  
  397. 'required' => true,  
  398. ),  
  399. ),  
  400. ), 'insert' => array( 
  401. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables',  
  402. 'httpMethod' => 'POST',  
  403. 'parameters' => array( 
  404. 'projectId' => array( 
  405. 'location' => 'path',  
  406. 'type' => 'string',  
  407. 'required' => true,  
  408. ),  
  409. 'datasetId' => array( 
  410. 'location' => 'path',  
  411. 'type' => 'string',  
  412. 'required' => true,  
  413. ),  
  414. ),  
  415. ), 'list' => array( 
  416. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables',  
  417. 'httpMethod' => 'GET',  
  418. 'parameters' => array( 
  419. 'projectId' => array( 
  420. 'location' => 'path',  
  421. 'type' => 'string',  
  422. 'required' => true,  
  423. ),  
  424. 'datasetId' => array( 
  425. 'location' => 'path',  
  426. 'type' => 'string',  
  427. 'required' => true,  
  428. ),  
  429. 'pageToken' => array( 
  430. 'location' => 'query',  
  431. 'type' => 'string',  
  432. ),  
  433. 'maxResults' => array( 
  434. 'location' => 'query',  
  435. 'type' => 'integer',  
  436. ),  
  437. ),  
  438. ), 'patch' => array( 
  439. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',  
  440. 'httpMethod' => 'PATCH',  
  441. 'parameters' => array( 
  442. 'projectId' => array( 
  443. 'location' => 'path',  
  444. 'type' => 'string',  
  445. 'required' => true,  
  446. ),  
  447. 'datasetId' => array( 
  448. 'location' => 'path',  
  449. 'type' => 'string',  
  450. 'required' => true,  
  451. ),  
  452. 'tableId' => array( 
  453. 'location' => 'path',  
  454. 'type' => 'string',  
  455. 'required' => true,  
  456. ),  
  457. ),  
  458. ), 'update' => array( 
  459. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',  
  460. 'httpMethod' => 'PUT',  
  461. 'parameters' => array( 
  462. 'projectId' => array( 
  463. 'location' => 'path',  
  464. 'type' => 'string',  
  465. 'required' => true,  
  466. ),  
  467. 'datasetId' => array( 
  468. 'location' => 'path',  
  469. 'type' => 'string',  
  470. 'required' => true,  
  471. ),  
  472. 'tableId' => array( 
  473. 'location' => 'path',  
  474. 'type' => 'string',  
  475. 'required' => true,  
  476. ),  
  477. ),  
  478. ),  
  479. ); 
  480.  
  481.  
  482. /** 
  483. * The "datasets" collection of methods. 
  484. * Typical usage is: 
  485. * <code> 
  486. * $bigqueryService = new Google_Service_Bigquery(...); 
  487. * $datasets = $bigqueryService->datasets; 
  488. * </code> 
  489. */ 
  490. class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource 
  491.  
  492. /** 
  493. * Deletes the dataset specified by the datasetId value. Before you can delete a 
  494. * dataset, you must delete all its tables, either manually or by specifying 
  495. * deleteContents. Immediately after deletion, you can create another dataset 
  496. * with the same name. (datasets.delete) 
  497. * 
  498. * @param string $projectId 
  499. * Project ID of the dataset being deleted 
  500. * @param string $datasetId 
  501. * Dataset ID of dataset being deleted 
  502. * @param array $optParams Optional parameters. 
  503. * 
  504. * @opt_param bool deleteContents 
  505. * If True, delete all the tables in the dataset. If False and the dataset contains tables, the 
  506. * request will fail. Default is False 
  507. */ 
  508. public function delete($projectId, $datasetId, $optParams = array()) 
  509. $params = array('projectId' => $projectId, 'datasetId' => $datasetId); 
  510. $params = array_merge($params, $optParams); 
  511. return $this->call('delete', array($params)); 
  512. /** 
  513. * Returns the dataset specified by datasetID. (datasets.get) 
  514. * 
  515. * @param string $projectId 
  516. * Project ID of the requested dataset 
  517. * @param string $datasetId 
  518. * Dataset ID of the requested dataset 
  519. * @param array $optParams Optional parameters. 
  520. * @return Google_Service_Bigquery_Dataset 
  521. */ 
  522. public function get($projectId, $datasetId, $optParams = array()) 
  523. $params = array('projectId' => $projectId, 'datasetId' => $datasetId); 
  524. $params = array_merge($params, $optParams); 
  525. return $this->call('get', array($params), "Google_Service_Bigquery_Dataset"); 
  526. /** 
  527. * Creates a new empty dataset. (datasets.insert) 
  528. * 
  529. * @param string $projectId 
  530. * Project ID of the new dataset 
  531. * @param Google_Dataset $postBody 
  532. * @param array $optParams Optional parameters. 
  533. * @return Google_Service_Bigquery_Dataset 
  534. */ 
  535. public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) 
  536. $params = array('projectId' => $projectId, 'postBody' => $postBody); 
  537. $params = array_merge($params, $optParams); 
  538. return $this->call('insert', array($params), "Google_Service_Bigquery_Dataset"); 
  539. /** 
  540. * Lists all the datasets in the specified project to which the caller has read 
  541. * access; however, a project owner can list (but not necessarily get) all 
  542. * datasets in his project. (datasets.listDatasets) 
  543. * 
  544. * @param string $projectId 
  545. * Project ID of the datasets to be listed 
  546. * @param array $optParams Optional parameters. 
  547. * 
  548. * @opt_param string pageToken 
  549. * Page token, returned by a previous call, to request the next page of results 
  550. * @opt_param bool all 
  551. * Whether to list all datasets, including hidden ones 
  552. * @opt_param string maxResults 
  553. * The maximum number of results to return 
  554. * @return Google_Service_Bigquery_DatasetList 
  555. */ 
  556. public function listDatasets($projectId, $optParams = array()) 
  557. $params = array('projectId' => $projectId); 
  558. $params = array_merge($params, $optParams); 
  559. return $this->call('list', array($params), "Google_Service_Bigquery_DatasetList"); 
  560. /** 
  561. * Updates information in an existing dataset. The update method replaces the 
  562. * entire dataset resource, whereas the patch method only replaces fields that 
  563. * are provided in the submitted dataset resource. This method supports patch 
  564. * semantics. (datasets.patch) 
  565. * 
  566. * @param string $projectId 
  567. * Project ID of the dataset being updated 
  568. * @param string $datasetId 
  569. * Dataset ID of the dataset being updated 
  570. * @param Google_Dataset $postBody 
  571. * @param array $optParams Optional parameters. 
  572. * @return Google_Service_Bigquery_Dataset 
  573. */ 
  574. public function patch($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) 
  575. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); 
  576. $params = array_merge($params, $optParams); 
  577. return $this->call('patch', array($params), "Google_Service_Bigquery_Dataset"); 
  578. /** 
  579. * Updates information in an existing dataset. The update method replaces the 
  580. * entire dataset resource, whereas the patch method only replaces fields that 
  581. * are provided in the submitted dataset resource. (datasets.update) 
  582. * 
  583. * @param string $projectId 
  584. * Project ID of the dataset being updated 
  585. * @param string $datasetId 
  586. * Dataset ID of the dataset being updated 
  587. * @param Google_Dataset $postBody 
  588. * @param array $optParams Optional parameters. 
  589. * @return Google_Service_Bigquery_Dataset 
  590. */ 
  591. public function update($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) 
  592. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); 
  593. $params = array_merge($params, $optParams); 
  594. return $this->call('update', array($params), "Google_Service_Bigquery_Dataset"); 
  595.  
  596. /** 
  597. * The "jobs" collection of methods. 
  598. * Typical usage is: 
  599. * <code> 
  600. * $bigqueryService = new Google_Service_Bigquery(...); 
  601. * $jobs = $bigqueryService->jobs; 
  602. * </code> 
  603. */ 
  604. class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource 
  605.  
  606. /** 
  607. * Retrieves the specified job by ID. (jobs.get) 
  608. * 
  609. * @param string $projectId 
  610. * Project ID of the requested job 
  611. * @param string $jobId 
  612. * Job ID of the requested job 
  613. * @param array $optParams Optional parameters. 
  614. * @return Google_Service_Bigquery_Job 
  615. */ 
  616. public function get($projectId, $jobId, $optParams = array()) 
  617. $params = array('projectId' => $projectId, 'jobId' => $jobId); 
  618. $params = array_merge($params, $optParams); 
  619. return $this->call('get', array($params), "Google_Service_Bigquery_Job"); 
  620. /** 
  621. * Retrieves the results of a query job. (jobs.getQueryResults) 
  622. * 
  623. * @param string $projectId 
  624. * Project ID of the query job 
  625. * @param string $jobId 
  626. * Job ID of the query job 
  627. * @param array $optParams Optional parameters. 
  628. * 
  629. * @opt_param string timeoutMs 
  630. * How long to wait for the query to complete, in milliseconds, before returning. Default is to 
  631. * return immediately. If the timeout passes before the job completes, the request will fail with a 
  632. * TIMEOUT error 
  633. * @opt_param string maxResults 
  634. * Maximum number of results to read 
  635. * @opt_param string pageToken 
  636. * Page token, returned by a previous call, to request the next page of results 
  637. * @opt_param string startIndex 
  638. * Zero-based index of the starting row 
  639. * @return Google_Service_Bigquery_GetQueryResultsResponse 
  640. */ 
  641. public function getQueryResults($projectId, $jobId, $optParams = array()) 
  642. $params = array('projectId' => $projectId, 'jobId' => $jobId); 
  643. $params = array_merge($params, $optParams); 
  644. return $this->call('getQueryResults', array($params), "Google_Service_Bigquery_GetQueryResultsResponse"); 
  645. /** 
  646. * Starts a new asynchronous job. (jobs.insert) 
  647. * 
  648. * @param string $projectId 
  649. * Project ID of the project that will be billed for the job 
  650. * @param Google_Job $postBody 
  651. * @param array $optParams Optional parameters. 
  652. * @return Google_Service_Bigquery_Job 
  653. */ 
  654. public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optParams = array()) 
  655. $params = array('projectId' => $projectId, 'postBody' => $postBody); 
  656. $params = array_merge($params, $optParams); 
  657. return $this->call('insert', array($params), "Google_Service_Bigquery_Job"); 
  658. /** 
  659. * Lists all the Jobs in the specified project that were started by the user. 
  660. * (jobs.listJobs) 
  661. * 
  662. * @param string $projectId 
  663. * Project ID of the jobs to list 
  664. * @param array $optParams Optional parameters. 
  665. * 
  666. * @opt_param string projection 
  667. * Restrict information returned to a set of selected fields 
  668. * @opt_param string stateFilter 
  669. * Filter for job state 
  670. * @opt_param bool allUsers 
  671. * Whether to display jobs owned by all users in the project. Default false 
  672. * @opt_param string maxResults 
  673. * Maximum number of results to return 
  674. * @opt_param string pageToken 
  675. * Page token, returned by a previous call, to request the next page of results 
  676. * @return Google_Service_Bigquery_JobList 
  677. */ 
  678. public function listJobs($projectId, $optParams = array()) 
  679. $params = array('projectId' => $projectId); 
  680. $params = array_merge($params, $optParams); 
  681. return $this->call('list', array($params), "Google_Service_Bigquery_JobList"); 
  682. /** 
  683. * Runs a BigQuery SQL query synchronously and returns query results if the 
  684. * query completes within a specified timeout. (jobs.query) 
  685. * 
  686. * @param string $projectId 
  687. * Project ID of the project billed for the query 
  688. * @param Google_QueryRequest $postBody 
  689. * @param array $optParams Optional parameters. 
  690. * @return Google_Service_Bigquery_QueryResponse 
  691. */ 
  692. public function query($projectId, Google_Service_Bigquery_QueryRequest $postBody, $optParams = array()) 
  693. $params = array('projectId' => $projectId, 'postBody' => $postBody); 
  694. $params = array_merge($params, $optParams); 
  695. return $this->call('query', array($params), "Google_Service_Bigquery_QueryResponse"); 
  696.  
  697. /** 
  698. * The "projects" collection of methods. 
  699. * Typical usage is: 
  700. * <code> 
  701. * $bigqueryService = new Google_Service_Bigquery(...); 
  702. * $projects = $bigqueryService->projects; 
  703. * </code> 
  704. */ 
  705. class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource 
  706.  
  707. /** 
  708. * Lists the projects to which you have at least read access. 
  709. * (projects.listProjects) 
  710. * 
  711. * @param array $optParams Optional parameters. 
  712. * 
  713. * @opt_param string pageToken 
  714. * Page token, returned by a previous call, to request the next page of results 
  715. * @opt_param string maxResults 
  716. * Maximum number of results to return 
  717. * @return Google_Service_Bigquery_ProjectList 
  718. */ 
  719. public function listProjects($optParams = array()) 
  720. $params = array(); 
  721. $params = array_merge($params, $optParams); 
  722. return $this->call('list', array($params), "Google_Service_Bigquery_ProjectList"); 
  723.  
  724. /** 
  725. * The "tabledata" collection of methods. 
  726. * Typical usage is: 
  727. * <code> 
  728. * $bigqueryService = new Google_Service_Bigquery(...); 
  729. * $tabledata = $bigqueryService->tabledata; 
  730. * </code> 
  731. */ 
  732. class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource 
  733.  
  734. /** 
  735. * Inserts the supplied rows into the table. (tabledata.insertAll) 
  736. * 
  737. * @param string $projectId 
  738. * Project ID of the destination table. 
  739. * @param string $datasetId 
  740. * Dataset ID of the destination table. 
  741. * @param string $tableId 
  742. * Table ID of the destination table. 
  743. * @param Google_TableDataInsertAllRequest $postBody 
  744. * @param array $optParams Optional parameters. 
  745. * @return Google_Service_Bigquery_TableDataInsertAllResponse 
  746. */ 
  747. public function insertAll($projectId, $datasetId, $tableId, Google_Service_Bigquery_TableDataInsertAllRequest $postBody, $optParams = array()) 
  748. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); 
  749. $params = array_merge($params, $optParams); 
  750. return $this->call('insertAll', array($params), "Google_Service_Bigquery_TableDataInsertAllResponse"); 
  751. /** 
  752. * Retrieves table data from a specified set of rows. (tabledata.listTabledata) 
  753. * 
  754. * @param string $projectId 
  755. * Project ID of the table to read 
  756. * @param string $datasetId 
  757. * Dataset ID of the table to read 
  758. * @param string $tableId 
  759. * Table ID of the table to read 
  760. * @param array $optParams Optional parameters. 
  761. * 
  762. * @opt_param string maxResults 
  763. * Maximum number of results to return 
  764. * @opt_param string pageToken 
  765. * Page token, returned by a previous call, identifying the result set 
  766. * @opt_param string startIndex 
  767. * Zero-based index of the starting row to read 
  768. * @return Google_Service_Bigquery_TableDataList 
  769. */ 
  770. public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) 
  771. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); 
  772. $params = array_merge($params, $optParams); 
  773. return $this->call('list', array($params), "Google_Service_Bigquery_TableDataList"); 
  774.  
  775. /** 
  776. * The "tables" collection of methods. 
  777. * Typical usage is: 
  778. * <code> 
  779. * $bigqueryService = new Google_Service_Bigquery(...); 
  780. * $tables = $bigqueryService->tables; 
  781. * </code> 
  782. */ 
  783. class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource 
  784.  
  785. /** 
  786. * Deletes the table specified by tableId from the dataset. If the table 
  787. * contains data, all the data will be deleted. (tables.delete) 
  788. * 
  789. * @param string $projectId 
  790. * Project ID of the table to delete 
  791. * @param string $datasetId 
  792. * Dataset ID of the table to delete 
  793. * @param string $tableId 
  794. * Table ID of the table to delete 
  795. * @param array $optParams Optional parameters. 
  796. */ 
  797. public function delete($projectId, $datasetId, $tableId, $optParams = array()) 
  798. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); 
  799. $params = array_merge($params, $optParams); 
  800. return $this->call('delete', array($params)); 
  801. /** 
  802. * Gets the specified table resource by table ID. This method does not return 
  803. * the data in the table, it only returns the table resource, which describes 
  804. * the structure of this table. (tables.get) 
  805. * 
  806. * @param string $projectId 
  807. * Project ID of the requested table 
  808. * @param string $datasetId 
  809. * Dataset ID of the requested table 
  810. * @param string $tableId 
  811. * Table ID of the requested table 
  812. * @param array $optParams Optional parameters. 
  813. * @return Google_Service_Bigquery_Table 
  814. */ 
  815. public function get($projectId, $datasetId, $tableId, $optParams = array()) 
  816. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); 
  817. $params = array_merge($params, $optParams); 
  818. return $this->call('get', array($params), "Google_Service_Bigquery_Table"); 
  819. /** 
  820. * Creates a new, empty table in the dataset. (tables.insert) 
  821. * 
  822. * @param string $projectId 
  823. * Project ID of the new table 
  824. * @param string $datasetId 
  825. * Dataset ID of the new table 
  826. * @param Google_Table $postBody 
  827. * @param array $optParams Optional parameters. 
  828. * @return Google_Service_Bigquery_Table 
  829. */ 
  830. public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $postBody, $optParams = array()) 
  831. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); 
  832. $params = array_merge($params, $optParams); 
  833. return $this->call('insert', array($params), "Google_Service_Bigquery_Table"); 
  834. /** 
  835. * Lists all tables in the specified dataset. (tables.listTables) 
  836. * 
  837. * @param string $projectId 
  838. * Project ID of the tables to list 
  839. * @param string $datasetId 
  840. * Dataset ID of the tables to list 
  841. * @param array $optParams Optional parameters. 
  842. * 
  843. * @opt_param string pageToken 
  844. * Page token, returned by a previous call, to request the next page of results 
  845. * @opt_param string maxResults 
  846. * Maximum number of results to return 
  847. * @return Google_Service_Bigquery_TableList 
  848. */ 
  849. public function listTables($projectId, $datasetId, $optParams = array()) 
  850. $params = array('projectId' => $projectId, 'datasetId' => $datasetId); 
  851. $params = array_merge($params, $optParams); 
  852. return $this->call('list', array($params), "Google_Service_Bigquery_TableList"); 
  853. /** 
  854. * Updates information in an existing table. The update method replaces the 
  855. * entire table resource, whereas the patch method only replaces fields that are 
  856. * provided in the submitted table resource. This method supports patch 
  857. * semantics. (tables.patch) 
  858. * 
  859. * @param string $projectId 
  860. * Project ID of the table to update 
  861. * @param string $datasetId 
  862. * Dataset ID of the table to update 
  863. * @param string $tableId 
  864. * Table ID of the table to update 
  865. * @param Google_Table $postBody 
  866. * @param array $optParams Optional parameters. 
  867. * @return Google_Service_Bigquery_Table 
  868. */ 
  869. public function patch($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array()) 
  870. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); 
  871. $params = array_merge($params, $optParams); 
  872. return $this->call('patch', array($params), "Google_Service_Bigquery_Table"); 
  873. /** 
  874. * Updates information in an existing table. The update method replaces the 
  875. * entire table resource, whereas the patch method only replaces fields that are 
  876. * provided in the submitted table resource. (tables.update) 
  877. * 
  878. * @param string $projectId 
  879. * Project ID of the table to update 
  880. * @param string $datasetId 
  881. * Dataset ID of the table to update 
  882. * @param string $tableId 
  883. * Table ID of the table to update 
  884. * @param Google_Table $postBody 
  885. * @param array $optParams Optional parameters. 
  886. * @return Google_Service_Bigquery_Table 
  887. */ 
  888. public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array()) 
  889. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); 
  890. $params = array_merge($params, $optParams); 
  891. return $this->call('update', array($params), "Google_Service_Bigquery_Table"); 
  892.  
  893.  
  894.  
  895.  
  896. class Google_Service_Bigquery_Dataset extends Google_Collection 
  897. protected $accessType = 'Google_Service_Bigquery_DatasetAccess'; 
  898. protected $accessDataType = 'array'; 
  899. public $creationTime; 
  900. protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; 
  901. protected $datasetReferenceDataType = ''; 
  902. public $description; 
  903. public $etag; 
  904. public $friendlyName; 
  905. public $id; 
  906. public $kind; 
  907. public $lastModifiedTime; 
  908. public $selfLink; 
  909.  
  910. public function setAccess($access) 
  911. $this->access = $access; 
  912.  
  913. public function getAccess() 
  914. return $this->access; 
  915.  
  916. public function setCreationTime($creationTime) 
  917. $this->creationTime = $creationTime; 
  918.  
  919. public function getCreationTime() 
  920. return $this->creationTime; 
  921.  
  922. public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference) 
  923. $this->datasetReference = $datasetReference; 
  924.  
  925. public function getDatasetReference() 
  926. return $this->datasetReference; 
  927.  
  928. public function setDescription($description) 
  929. $this->description = $description; 
  930.  
  931. public function getDescription() 
  932. return $this->description; 
  933.  
  934. public function setEtag($etag) 
  935. $this->etag = $etag; 
  936.  
  937. public function getEtag() 
  938. return $this->etag; 
  939.  
  940. public function setFriendlyName($friendlyName) 
  941. $this->friendlyName = $friendlyName; 
  942.  
  943. public function getFriendlyName() 
  944. return $this->friendlyName; 
  945.  
  946. public function setId($id) 
  947. $this->id = $id; 
  948.  
  949. public function getId() 
  950. return $this->id; 
  951.  
  952. public function setKind($kind) 
  953. $this->kind = $kind; 
  954.  
  955. public function getKind() 
  956. return $this->kind; 
  957.  
  958. public function setLastModifiedTime($lastModifiedTime) 
  959. $this->lastModifiedTime = $lastModifiedTime; 
  960.  
  961. public function getLastModifiedTime() 
  962. return $this->lastModifiedTime; 
  963.  
  964. public function setSelfLink($selfLink) 
  965. $this->selfLink = $selfLink; 
  966.  
  967. public function getSelfLink() 
  968. return $this->selfLink; 
  969.  
  970. class Google_Service_Bigquery_DatasetAccess extends Google_Model 
  971. public $domain; 
  972. public $groupByEmail; 
  973. public $role; 
  974. public $specialGroup; 
  975. public $userByEmail; 
  976.  
  977. public function setDomain($domain) 
  978. $this->domain = $domain; 
  979.  
  980. public function getDomain() 
  981. return $this->domain; 
  982.  
  983. public function setGroupByEmail($groupByEmail) 
  984. $this->groupByEmail = $groupByEmail; 
  985.  
  986. public function getGroupByEmail() 
  987. return $this->groupByEmail; 
  988.  
  989. public function setRole($role) 
  990. $this->role = $role; 
  991.  
  992. public function getRole() 
  993. return $this->role; 
  994.  
  995. public function setSpecialGroup($specialGroup) 
  996. $this->specialGroup = $specialGroup; 
  997.  
  998. public function getSpecialGroup() 
  999. return $this->specialGroup; 
  1000.  
  1001. public function setUserByEmail($userByEmail) 
  1002. $this->userByEmail = $userByEmail; 
  1003.  
  1004. public function getUserByEmail() 
  1005. return $this->userByEmail; 
  1006.  
  1007. class Google_Service_Bigquery_DatasetList extends Google_Collection 
  1008. protected $datasetsType = 'Google_Service_Bigquery_DatasetListDatasets'; 
  1009. protected $datasetsDataType = 'array'; 
  1010. public $etag; 
  1011. public $kind; 
  1012. public $nextPageToken; 
  1013.  
  1014. public function setDatasets($datasets) 
  1015. $this->datasets = $datasets; 
  1016.  
  1017. public function getDatasets() 
  1018. return $this->datasets; 
  1019.  
  1020. public function setEtag($etag) 
  1021. $this->etag = $etag; 
  1022.  
  1023. public function getEtag() 
  1024. return $this->etag; 
  1025.  
  1026. public function setKind($kind) 
  1027. $this->kind = $kind; 
  1028.  
  1029. public function getKind() 
  1030. return $this->kind; 
  1031.  
  1032. public function setNextPageToken($nextPageToken) 
  1033. $this->nextPageToken = $nextPageToken; 
  1034.  
  1035. public function getNextPageToken() 
  1036. return $this->nextPageToken; 
  1037.  
  1038. class Google_Service_Bigquery_DatasetListDatasets extends Google_Model 
  1039. protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; 
  1040. protected $datasetReferenceDataType = ''; 
  1041. public $friendlyName; 
  1042. public $id; 
  1043. public $kind; 
  1044.  
  1045. public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference) 
  1046. $this->datasetReference = $datasetReference; 
  1047.  
  1048. public function getDatasetReference() 
  1049. return $this->datasetReference; 
  1050.  
  1051. public function setFriendlyName($friendlyName) 
  1052. $this->friendlyName = $friendlyName; 
  1053.  
  1054. public function getFriendlyName() 
  1055. return $this->friendlyName; 
  1056.  
  1057. public function setId($id) 
  1058. $this->id = $id; 
  1059.  
  1060. public function getId() 
  1061. return $this->id; 
  1062.  
  1063. public function setKind($kind) 
  1064. $this->kind = $kind; 
  1065.  
  1066. public function getKind() 
  1067. return $this->kind; 
  1068.  
  1069. class Google_Service_Bigquery_DatasetReference extends Google_Model 
  1070. public $datasetId; 
  1071. public $projectId; 
  1072.  
  1073. public function setDatasetId($datasetId) 
  1074. $this->datasetId = $datasetId; 
  1075.  
  1076. public function getDatasetId() 
  1077. return $this->datasetId; 
  1078.  
  1079. public function setProjectId($projectId) 
  1080. $this->projectId = $projectId; 
  1081.  
  1082. public function getProjectId() 
  1083. return $this->projectId; 
  1084.  
  1085. class Google_Service_Bigquery_ErrorProto extends Google_Model 
  1086. public $debugInfo; 
  1087. public $location; 
  1088. public $message; 
  1089. public $reason; 
  1090.  
  1091. public function setDebugInfo($debugInfo) 
  1092. $this->debugInfo = $debugInfo; 
  1093.  
  1094. public function getDebugInfo() 
  1095. return $this->debugInfo; 
  1096.  
  1097. public function setLocation($location) 
  1098. $this->location = $location; 
  1099.  
  1100. public function getLocation() 
  1101. return $this->location; 
  1102.  
  1103. public function setMessage($message) 
  1104. $this->message = $message; 
  1105.  
  1106. public function getMessage() 
  1107. return $this->message; 
  1108.  
  1109. public function setReason($reason) 
  1110. $this->reason = $reason; 
  1111.  
  1112. public function getReason() 
  1113. return $this->reason; 
  1114.  
  1115. class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection 
  1116. public $cacheHit; 
  1117. public $etag; 
  1118. public $jobComplete; 
  1119. protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; 
  1120. protected $jobReferenceDataType = ''; 
  1121. public $kind; 
  1122. public $pageToken; 
  1123. protected $rowsType = 'Google_Service_Bigquery_TableRow'; 
  1124. protected $rowsDataType = 'array'; 
  1125. protected $schemaType = 'Google_Service_Bigquery_TableSchema'; 
  1126. protected $schemaDataType = ''; 
  1127. public $totalRows; 
  1128.  
  1129. public function setCacheHit($cacheHit) 
  1130. $this->cacheHit = $cacheHit; 
  1131.  
  1132. public function getCacheHit() 
  1133. return $this->cacheHit; 
  1134.  
  1135. public function setEtag($etag) 
  1136. $this->etag = $etag; 
  1137.  
  1138. public function getEtag() 
  1139. return $this->etag; 
  1140.  
  1141. public function setJobComplete($jobComplete) 
  1142. $this->jobComplete = $jobComplete; 
  1143.  
  1144. public function getJobComplete() 
  1145. return $this->jobComplete; 
  1146.  
  1147. public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) 
  1148. $this->jobReference = $jobReference; 
  1149.  
  1150. public function getJobReference() 
  1151. return $this->jobReference; 
  1152.  
  1153. public function setKind($kind) 
  1154. $this->kind = $kind; 
  1155.  
  1156. public function getKind() 
  1157. return $this->kind; 
  1158.  
  1159. public function setPageToken($pageToken) 
  1160. $this->pageToken = $pageToken; 
  1161.  
  1162. public function getPageToken() 
  1163. return $this->pageToken; 
  1164.  
  1165. public function setRows($rows) 
  1166. $this->rows = $rows; 
  1167.  
  1168. public function getRows() 
  1169. return $this->rows; 
  1170.  
  1171. public function setSchema(Google_Service_Bigquery_TableSchema $schema) 
  1172. $this->schema = $schema; 
  1173.  
  1174. public function getSchema() 
  1175. return $this->schema; 
  1176.  
  1177. public function setTotalRows($totalRows) 
  1178. $this->totalRows = $totalRows; 
  1179.  
  1180. public function getTotalRows() 
  1181. return $this->totalRows; 
  1182.  
  1183. class Google_Service_Bigquery_Job extends Google_Model 
  1184. protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; 
  1185. protected $configurationDataType = ''; 
  1186. public $etag; 
  1187. public $id; 
  1188. protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; 
  1189. protected $jobReferenceDataType = ''; 
  1190. public $kind; 
  1191. public $selfLink; 
  1192. protected $statisticsType = 'Google_Service_Bigquery_JobStatistics'; 
  1193. protected $statisticsDataType = ''; 
  1194. protected $statusType = 'Google_Service_Bigquery_JobStatus'; 
  1195. protected $statusDataType = ''; 
  1196.  
  1197. public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) 
  1198. $this->configuration = $configuration; 
  1199.  
  1200. public function getConfiguration() 
  1201. return $this->configuration; 
  1202.  
  1203. public function setEtag($etag) 
  1204. $this->etag = $etag; 
  1205.  
  1206. public function getEtag() 
  1207. return $this->etag; 
  1208.  
  1209. public function setId($id) 
  1210. $this->id = $id; 
  1211.  
  1212. public function getId() 
  1213. return $this->id; 
  1214.  
  1215. public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) 
  1216. $this->jobReference = $jobReference; 
  1217.  
  1218. public function getJobReference() 
  1219. return $this->jobReference; 
  1220.  
  1221. public function setKind($kind) 
  1222. $this->kind = $kind; 
  1223.  
  1224. public function getKind() 
  1225. return $this->kind; 
  1226.  
  1227. public function setSelfLink($selfLink) 
  1228. $this->selfLink = $selfLink; 
  1229.  
  1230. public function getSelfLink() 
  1231. return $this->selfLink; 
  1232.  
  1233. public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics) 
  1234. $this->statistics = $statistics; 
  1235.  
  1236. public function getStatistics() 
  1237. return $this->statistics; 
  1238.  
  1239. public function setStatus(Google_Service_Bigquery_JobStatus $status) 
  1240. $this->status = $status; 
  1241.  
  1242. public function getStatus() 
  1243. return $this->status; 
  1244.  
  1245. class Google_Service_Bigquery_JobConfiguration extends Google_Model 
  1246. protected $copyType = 'Google_Service_Bigquery_JobConfigurationTableCopy'; 
  1247. protected $copyDataType = ''; 
  1248. public $dryRun; 
  1249. protected $extractType = 'Google_Service_Bigquery_JobConfigurationExtract'; 
  1250. protected $extractDataType = ''; 
  1251. protected $linkType = 'Google_Service_Bigquery_JobConfigurationLink'; 
  1252. protected $linkDataType = ''; 
  1253. protected $loadType = 'Google_Service_Bigquery_JobConfigurationLoad'; 
  1254. protected $loadDataType = ''; 
  1255. protected $queryType = 'Google_Service_Bigquery_JobConfigurationQuery'; 
  1256. protected $queryDataType = ''; 
  1257.  
  1258. public function setCopy(Google_Service_Bigquery_JobConfigurationTableCopy $copy) 
  1259. $this->copy = $copy; 
  1260.  
  1261. public function getCopy() 
  1262. return $this->copy; 
  1263.  
  1264. public function setDryRun($dryRun) 
  1265. $this->dryRun = $dryRun; 
  1266.  
  1267. public function getDryRun() 
  1268. return $this->dryRun; 
  1269.  
  1270. public function setExtract(Google_Service_Bigquery_JobConfigurationExtract $extract) 
  1271. $this->extract = $extract; 
  1272.  
  1273. public function getExtract() 
  1274. return $this->extract; 
  1275.  
  1276. public function setLink(Google_Service_Bigquery_JobConfigurationLink $link) 
  1277. $this->link = $link; 
  1278.  
  1279. public function getLink() 
  1280. return $this->link; 
  1281.  
  1282. public function setLoad(Google_Service_Bigquery_JobConfigurationLoad $load) 
  1283. $this->load = $load; 
  1284.  
  1285. public function getLoad() 
  1286. return $this->load; 
  1287.  
  1288. public function setQuery(Google_Service_Bigquery_JobConfigurationQuery $query) 
  1289. $this->query = $query; 
  1290.  
  1291. public function getQuery() 
  1292. return $this->query; 
  1293.  
  1294. class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection 
  1295. public $compression; 
  1296. public $destinationFormat; 
  1297. public $destinationUri; 
  1298. public $destinationUris; 
  1299. public $fieldDelimiter; 
  1300. public $printHeader; 
  1301. protected $sourceTableType = 'Google_Service_Bigquery_TableReference'; 
  1302. protected $sourceTableDataType = ''; 
  1303.  
  1304. public function setCompression($compression) 
  1305. $this->compression = $compression; 
  1306.  
  1307. public function getCompression() 
  1308. return $this->compression; 
  1309.  
  1310. public function setDestinationFormat($destinationFormat) 
  1311. $this->destinationFormat = $destinationFormat; 
  1312.  
  1313. public function getDestinationFormat() 
  1314. return $this->destinationFormat; 
  1315.  
  1316. public function setDestinationUri($destinationUri) 
  1317. $this->destinationUri = $destinationUri; 
  1318.  
  1319. public function getDestinationUri() 
  1320. return $this->destinationUri; 
  1321.  
  1322. public function setDestinationUris($destinationUris) 
  1323. $this->destinationUris = $destinationUris; 
  1324.  
  1325. public function getDestinationUris() 
  1326. return $this->destinationUris; 
  1327.  
  1328. public function setFieldDelimiter($fieldDelimiter) 
  1329. $this->fieldDelimiter = $fieldDelimiter; 
  1330.  
  1331. public function getFieldDelimiter() 
  1332. return $this->fieldDelimiter; 
  1333.  
  1334. public function setPrintHeader($printHeader) 
  1335. $this->printHeader = $printHeader; 
  1336.  
  1337. public function getPrintHeader() 
  1338. return $this->printHeader; 
  1339.  
  1340. public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable) 
  1341. $this->sourceTable = $sourceTable; 
  1342.  
  1343. public function getSourceTable() 
  1344. return $this->sourceTable; 
  1345.  
  1346. class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection 
  1347. public $createDisposition; 
  1348. protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; 
  1349. protected $destinationTableDataType = ''; 
  1350. public $sourceUri; 
  1351. public $writeDisposition; 
  1352.  
  1353. public function setCreateDisposition($createDisposition) 
  1354. $this->createDisposition = $createDisposition; 
  1355.  
  1356. public function getCreateDisposition() 
  1357. return $this->createDisposition; 
  1358.  
  1359. public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) 
  1360. $this->destinationTable = $destinationTable; 
  1361.  
  1362. public function getDestinationTable() 
  1363. return $this->destinationTable; 
  1364.  
  1365. public function setSourceUri($sourceUri) 
  1366. $this->sourceUri = $sourceUri; 
  1367.  
  1368. public function getSourceUri() 
  1369. return $this->sourceUri; 
  1370.  
  1371. public function setWriteDisposition($writeDisposition) 
  1372. $this->writeDisposition = $writeDisposition; 
  1373.  
  1374. public function getWriteDisposition() 
  1375. return $this->writeDisposition; 
  1376.  
  1377. class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection 
  1378. public $allowJaggedRows; 
  1379. public $allowQuotedNewlines; 
  1380. public $createDisposition; 
  1381. protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; 
  1382. protected $destinationTableDataType = ''; 
  1383. public $encoding; 
  1384. public $fieldDelimiter; 
  1385. public $ignoreUnknownValues; 
  1386. public $maxBadRecords; 
  1387. public $quote; 
  1388. protected $schemaType = 'Google_Service_Bigquery_TableSchema'; 
  1389. protected $schemaDataType = ''; 
  1390. public $schemaInline; 
  1391. public $schemaInlineFormat; 
  1392. public $skipLeadingRows; 
  1393. public $sourceFormat; 
  1394. public $sourceUris; 
  1395. public $writeDisposition; 
  1396.  
  1397. public function setAllowJaggedRows($allowJaggedRows) 
  1398. $this->allowJaggedRows = $allowJaggedRows; 
  1399.  
  1400. public function getAllowJaggedRows() 
  1401. return $this->allowJaggedRows; 
  1402.  
  1403. public function setAllowQuotedNewlines($allowQuotedNewlines) 
  1404. $this->allowQuotedNewlines = $allowQuotedNewlines; 
  1405.  
  1406. public function getAllowQuotedNewlines() 
  1407. return $this->allowQuotedNewlines; 
  1408.  
  1409. public function setCreateDisposition($createDisposition) 
  1410. $this->createDisposition = $createDisposition; 
  1411.  
  1412. public function getCreateDisposition() 
  1413. return $this->createDisposition; 
  1414.  
  1415. public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) 
  1416. $this->destinationTable = $destinationTable; 
  1417.  
  1418. public function getDestinationTable() 
  1419. return $this->destinationTable; 
  1420.  
  1421. public function setEncoding($encoding) 
  1422. $this->encoding = $encoding; 
  1423.  
  1424. public function getEncoding() 
  1425. return $this->encoding; 
  1426.  
  1427. public function setFieldDelimiter($fieldDelimiter) 
  1428. $this->fieldDelimiter = $fieldDelimiter; 
  1429.  
  1430. public function getFieldDelimiter() 
  1431. return $this->fieldDelimiter; 
  1432.  
  1433. public function setIgnoreUnknownValues($ignoreUnknownValues) 
  1434. $this->ignoreUnknownValues = $ignoreUnknownValues; 
  1435.  
  1436. public function getIgnoreUnknownValues() 
  1437. return $this->ignoreUnknownValues; 
  1438.  
  1439. public function setMaxBadRecords($maxBadRecords) 
  1440. $this->maxBadRecords = $maxBadRecords; 
  1441.  
  1442. public function getMaxBadRecords() 
  1443. return $this->maxBadRecords; 
  1444.  
  1445. public function setQuote($quote) 
  1446. $this->quote = $quote; 
  1447.  
  1448. public function getQuote() 
  1449. return $this->quote; 
  1450.  
  1451. public function setSchema(Google_Service_Bigquery_TableSchema $schema) 
  1452. $this->schema = $schema; 
  1453.  
  1454. public function getSchema() 
  1455. return $this->schema; 
  1456.  
  1457. public function setSchemaInline($schemaInline) 
  1458. $this->schemaInline = $schemaInline; 
  1459.  
  1460. public function getSchemaInline() 
  1461. return $this->schemaInline; 
  1462.  
  1463. public function setSchemaInlineFormat($schemaInlineFormat) 
  1464. $this->schemaInlineFormat = $schemaInlineFormat; 
  1465.  
  1466. public function getSchemaInlineFormat() 
  1467. return $this->schemaInlineFormat; 
  1468.  
  1469. public function setSkipLeadingRows($skipLeadingRows) 
  1470. $this->skipLeadingRows = $skipLeadingRows; 
  1471.  
  1472. public function getSkipLeadingRows() 
  1473. return $this->skipLeadingRows; 
  1474.  
  1475. public function setSourceFormat($sourceFormat) 
  1476. $this->sourceFormat = $sourceFormat; 
  1477.  
  1478. public function getSourceFormat() 
  1479. return $this->sourceFormat; 
  1480.  
  1481. public function setSourceUris($sourceUris) 
  1482. $this->sourceUris = $sourceUris; 
  1483.  
  1484. public function getSourceUris() 
  1485. return $this->sourceUris; 
  1486.  
  1487. public function setWriteDisposition($writeDisposition) 
  1488. $this->writeDisposition = $writeDisposition; 
  1489.  
  1490. public function getWriteDisposition() 
  1491. return $this->writeDisposition; 
  1492.  
  1493. class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model 
  1494. public $allowLargeResults; 
  1495. public $createDisposition; 
  1496. protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference'; 
  1497. protected $defaultDatasetDataType = ''; 
  1498. protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; 
  1499. protected $destinationTableDataType = ''; 
  1500. public $flattenResults; 
  1501. public $preserveNulls; 
  1502. public $priority; 
  1503. public $query; 
  1504. public $useQueryCache; 
  1505. public $writeDisposition; 
  1506.  
  1507. public function setAllowLargeResults($allowLargeResults) 
  1508. $this->allowLargeResults = $allowLargeResults; 
  1509.  
  1510. public function getAllowLargeResults() 
  1511. return $this->allowLargeResults; 
  1512.  
  1513. public function setCreateDisposition($createDisposition) 
  1514. $this->createDisposition = $createDisposition; 
  1515.  
  1516. public function getCreateDisposition() 
  1517. return $this->createDisposition; 
  1518.  
  1519. public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset) 
  1520. $this->defaultDataset = $defaultDataset; 
  1521.  
  1522. public function getDefaultDataset() 
  1523. return $this->defaultDataset; 
  1524.  
  1525. public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) 
  1526. $this->destinationTable = $destinationTable; 
  1527.  
  1528. public function getDestinationTable() 
  1529. return $this->destinationTable; 
  1530.  
  1531. public function setFlattenResults($flattenResults) 
  1532. $this->flattenResults = $flattenResults; 
  1533.  
  1534. public function getFlattenResults() 
  1535. return $this->flattenResults; 
  1536.  
  1537. public function setPreserveNulls($preserveNulls) 
  1538. $this->preserveNulls = $preserveNulls; 
  1539.  
  1540. public function getPreserveNulls() 
  1541. return $this->preserveNulls; 
  1542.  
  1543. public function setPriority($priority) 
  1544. $this->priority = $priority; 
  1545.  
  1546. public function getPriority() 
  1547. return $this->priority; 
  1548.  
  1549. public function setQuery($query) 
  1550. $this->query = $query; 
  1551.  
  1552. public function getQuery() 
  1553. return $this->query; 
  1554.  
  1555. public function setUseQueryCache($useQueryCache) 
  1556. $this->useQueryCache = $useQueryCache; 
  1557.  
  1558. public function getUseQueryCache() 
  1559. return $this->useQueryCache; 
  1560.  
  1561. public function setWriteDisposition($writeDisposition) 
  1562. $this->writeDisposition = $writeDisposition; 
  1563.  
  1564. public function getWriteDisposition() 
  1565. return $this->writeDisposition; 
  1566.  
  1567. class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Model 
  1568. public $createDisposition; 
  1569. protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; 
  1570. protected $destinationTableDataType = ''; 
  1571. protected $sourceTableType = 'Google_Service_Bigquery_TableReference'; 
  1572. protected $sourceTableDataType = ''; 
  1573. public $writeDisposition; 
  1574.  
  1575. public function setCreateDisposition($createDisposition) 
  1576. $this->createDisposition = $createDisposition; 
  1577.  
  1578. public function getCreateDisposition() 
  1579. return $this->createDisposition; 
  1580.  
  1581. public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) 
  1582. $this->destinationTable = $destinationTable; 
  1583.  
  1584. public function getDestinationTable() 
  1585. return $this->destinationTable; 
  1586.  
  1587. public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable) 
  1588. $this->sourceTable = $sourceTable; 
  1589.  
  1590. public function getSourceTable() 
  1591. return $this->sourceTable; 
  1592.  
  1593. public function setWriteDisposition($writeDisposition) 
  1594. $this->writeDisposition = $writeDisposition; 
  1595.  
  1596. public function getWriteDisposition() 
  1597. return $this->writeDisposition; 
  1598.  
  1599. class Google_Service_Bigquery_JobList extends Google_Collection 
  1600. public $etag; 
  1601. protected $jobsType = 'Google_Service_Bigquery_JobListJobs'; 
  1602. protected $jobsDataType = 'array'; 
  1603. public $kind; 
  1604. public $nextPageToken; 
  1605. public $totalItems; 
  1606.  
  1607. public function setEtag($etag) 
  1608. $this->etag = $etag; 
  1609.  
  1610. public function getEtag() 
  1611. return $this->etag; 
  1612.  
  1613. public function setJobs($jobs) 
  1614. $this->jobs = $jobs; 
  1615.  
  1616. public function getJobs() 
  1617. return $this->jobs; 
  1618.  
  1619. public function setKind($kind) 
  1620. $this->kind = $kind; 
  1621.  
  1622. public function getKind() 
  1623. return $this->kind; 
  1624.  
  1625. public function setNextPageToken($nextPageToken) 
  1626. $this->nextPageToken = $nextPageToken; 
  1627.  
  1628. public function getNextPageToken() 
  1629. return $this->nextPageToken; 
  1630.  
  1631. public function setTotalItems($totalItems) 
  1632. $this->totalItems = $totalItems; 
  1633.  
  1634. public function getTotalItems() 
  1635. return $this->totalItems; 
  1636.  
  1637. class Google_Service_Bigquery_JobListJobs extends Google_Model 
  1638. protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; 
  1639. protected $configurationDataType = ''; 
  1640. protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; 
  1641. protected $errorResultDataType = ''; 
  1642. public $id; 
  1643. protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; 
  1644. protected $jobReferenceDataType = ''; 
  1645. public $kind; 
  1646. public $state; 
  1647. protected $statisticsType = 'Google_Service_Bigquery_JobStatistics'; 
  1648. protected $statisticsDataType = ''; 
  1649. protected $statusType = 'Google_Service_Bigquery_JobStatus'; 
  1650. protected $statusDataType = ''; 
  1651. public $userEmail; 
  1652.  
  1653. public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) 
  1654. $this->configuration = $configuration; 
  1655.  
  1656. public function getConfiguration() 
  1657. return $this->configuration; 
  1658.  
  1659. public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult) 
  1660. $this->errorResult = $errorResult; 
  1661.  
  1662. public function getErrorResult() 
  1663. return $this->errorResult; 
  1664.  
  1665. public function setId($id) 
  1666. $this->id = $id; 
  1667.  
  1668. public function getId() 
  1669. return $this->id; 
  1670.  
  1671. public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) 
  1672. $this->jobReference = $jobReference; 
  1673.  
  1674. public function getJobReference() 
  1675. return $this->jobReference; 
  1676.  
  1677. public function setKind($kind) 
  1678. $this->kind = $kind; 
  1679.  
  1680. public function getKind() 
  1681. return $this->kind; 
  1682.  
  1683. public function setState($state) 
  1684. $this->state = $state; 
  1685.  
  1686. public function getState() 
  1687. return $this->state; 
  1688.  
  1689. public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics) 
  1690. $this->statistics = $statistics; 
  1691.  
  1692. public function getStatistics() 
  1693. return $this->statistics; 
  1694.  
  1695. public function setStatus(Google_Service_Bigquery_JobStatus $status) 
  1696. $this->status = $status; 
  1697.  
  1698. public function getStatus() 
  1699. return $this->status; 
  1700.  
  1701. public function setUserEmail($userEmail) 
  1702. $this->userEmail = $userEmail; 
  1703.  
  1704. public function getUserEmail() 
  1705. return $this->userEmail; 
  1706.  
  1707. class Google_Service_Bigquery_JobReference extends Google_Model 
  1708. public $jobId; 
  1709. public $projectId; 
  1710.  
  1711. public function setJobId($jobId) 
  1712. $this->jobId = $jobId; 
  1713.  
  1714. public function getJobId() 
  1715. return $this->jobId; 
  1716.  
  1717. public function setProjectId($projectId) 
  1718. $this->projectId = $projectId; 
  1719.  
  1720. public function getProjectId() 
  1721. return $this->projectId; 
  1722.  
  1723. class Google_Service_Bigquery_JobStatistics extends Google_Model 
  1724. public $creationTime; 
  1725. public $endTime; 
  1726. protected $loadType = 'Google_Service_Bigquery_JobStatistics3'; 
  1727. protected $loadDataType = ''; 
  1728. protected $queryType = 'Google_Service_Bigquery_JobStatistics2'; 
  1729. protected $queryDataType = ''; 
  1730. public $startTime; 
  1731. public $totalBytesProcessed; 
  1732.  
  1733. public function setCreationTime($creationTime) 
  1734. $this->creationTime = $creationTime; 
  1735.  
  1736. public function getCreationTime() 
  1737. return $this->creationTime; 
  1738.  
  1739. public function setEndTime($endTime) 
  1740. $this->endTime = $endTime; 
  1741.  
  1742. public function getEndTime() 
  1743. return $this->endTime; 
  1744.  
  1745. public function setLoad(Google_Service_Bigquery_JobStatistics3 $load) 
  1746. $this->load = $load; 
  1747.  
  1748. public function getLoad() 
  1749. return $this->load; 
  1750.  
  1751. public function setQuery(Google_Service_Bigquery_JobStatistics2 $query) 
  1752. $this->query = $query; 
  1753.  
  1754. public function getQuery() 
  1755. return $this->query; 
  1756.  
  1757. public function setStartTime($startTime) 
  1758. $this->startTime = $startTime; 
  1759.  
  1760. public function getStartTime() 
  1761. return $this->startTime; 
  1762.  
  1763. public function setTotalBytesProcessed($totalBytesProcessed) 
  1764. $this->totalBytesProcessed = $totalBytesProcessed; 
  1765.  
  1766. public function getTotalBytesProcessed() 
  1767. return $this->totalBytesProcessed; 
  1768.  
  1769. class Google_Service_Bigquery_JobStatistics2 extends Google_Model 
  1770. public $cacheHit; 
  1771. public $totalBytesProcessed; 
  1772.  
  1773. public function setCacheHit($cacheHit) 
  1774. $this->cacheHit = $cacheHit; 
  1775.  
  1776. public function getCacheHit() 
  1777. return $this->cacheHit; 
  1778.  
  1779. public function setTotalBytesProcessed($totalBytesProcessed) 
  1780. $this->totalBytesProcessed = $totalBytesProcessed; 
  1781.  
  1782. public function getTotalBytesProcessed() 
  1783. return $this->totalBytesProcessed; 
  1784.  
  1785. class Google_Service_Bigquery_JobStatistics3 extends Google_Model 
  1786. public $inputFileBytes; 
  1787. public $inputFiles; 
  1788. public $outputBytes; 
  1789. public $outputRows; 
  1790.  
  1791. public function setInputFileBytes($inputFileBytes) 
  1792. $this->inputFileBytes = $inputFileBytes; 
  1793.  
  1794. public function getInputFileBytes() 
  1795. return $this->inputFileBytes; 
  1796.  
  1797. public function setInputFiles($inputFiles) 
  1798. $this->inputFiles = $inputFiles; 
  1799.  
  1800. public function getInputFiles() 
  1801. return $this->inputFiles; 
  1802.  
  1803. public function setOutputBytes($outputBytes) 
  1804. $this->outputBytes = $outputBytes; 
  1805.  
  1806. public function getOutputBytes() 
  1807. return $this->outputBytes; 
  1808.  
  1809. public function setOutputRows($outputRows) 
  1810. $this->outputRows = $outputRows; 
  1811.  
  1812. public function getOutputRows() 
  1813. return $this->outputRows; 
  1814.  
  1815. class Google_Service_Bigquery_JobStatus extends Google_Collection 
  1816. protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; 
  1817. protected $errorResultDataType = ''; 
  1818. protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; 
  1819. protected $errorsDataType = 'array'; 
  1820. public $state; 
  1821.  
  1822. public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult) 
  1823. $this->errorResult = $errorResult; 
  1824.  
  1825. public function getErrorResult() 
  1826. return $this->errorResult; 
  1827.  
  1828. public function setErrors($errors) 
  1829. $this->errors = $errors; 
  1830.  
  1831. public function getErrors() 
  1832. return $this->errors; 
  1833.  
  1834. public function setState($state) 
  1835. $this->state = $state; 
  1836.  
  1837. public function getState() 
  1838. return $this->state; 
  1839.  
  1840. class Google_Service_Bigquery_ProjectList extends Google_Collection 
  1841. public $etag; 
  1842. public $kind; 
  1843. public $nextPageToken; 
  1844. protected $projectsType = 'Google_Service_Bigquery_ProjectListProjects'; 
  1845. protected $projectsDataType = 'array'; 
  1846. public $totalItems; 
  1847.  
  1848. public function setEtag($etag) 
  1849. $this->etag = $etag; 
  1850.  
  1851. public function getEtag() 
  1852. return $this->etag; 
  1853.  
  1854. public function setKind($kind) 
  1855. $this->kind = $kind; 
  1856.  
  1857. public function getKind() 
  1858. return $this->kind; 
  1859.  
  1860. public function setNextPageToken($nextPageToken) 
  1861. $this->nextPageToken = $nextPageToken; 
  1862.  
  1863. public function getNextPageToken() 
  1864. return $this->nextPageToken; 
  1865.  
  1866. public function setProjects($projects) 
  1867. $this->projects = $projects; 
  1868.  
  1869. public function getProjects() 
  1870. return $this->projects; 
  1871.  
  1872. public function setTotalItems($totalItems) 
  1873. $this->totalItems = $totalItems; 
  1874.  
  1875. public function getTotalItems() 
  1876. return $this->totalItems; 
  1877.  
  1878. class Google_Service_Bigquery_ProjectListProjects extends Google_Model 
  1879. public $friendlyName; 
  1880. public $id; 
  1881. public $kind; 
  1882. public $numericId; 
  1883. protected $projectReferenceType = 'Google_Service_Bigquery_ProjectReference'; 
  1884. protected $projectReferenceDataType = ''; 
  1885.  
  1886. public function setFriendlyName($friendlyName) 
  1887. $this->friendlyName = $friendlyName; 
  1888.  
  1889. public function getFriendlyName() 
  1890. return $this->friendlyName; 
  1891.  
  1892. public function setId($id) 
  1893. $this->id = $id; 
  1894.  
  1895. public function getId() 
  1896. return $this->id; 
  1897.  
  1898. public function setKind($kind) 
  1899. $this->kind = $kind; 
  1900.  
  1901. public function getKind() 
  1902. return $this->kind; 
  1903.  
  1904. public function setNumericId($numericId) 
  1905. $this->numericId = $numericId; 
  1906.  
  1907. public function getNumericId() 
  1908. return $this->numericId; 
  1909.  
  1910. public function setProjectReference(Google_Service_Bigquery_ProjectReference $projectReference) 
  1911. $this->projectReference = $projectReference; 
  1912.  
  1913. public function getProjectReference() 
  1914. return $this->projectReference; 
  1915.  
  1916. class Google_Service_Bigquery_ProjectReference extends Google_Model 
  1917. public $projectId; 
  1918.  
  1919. public function setProjectId($projectId) 
  1920. $this->projectId = $projectId; 
  1921.  
  1922. public function getProjectId() 
  1923. return $this->projectId; 
  1924.  
  1925. class Google_Service_Bigquery_QueryRequest extends Google_Model 
  1926. protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference'; 
  1927. protected $defaultDatasetDataType = ''; 
  1928. public $dryRun; 
  1929. public $kind; 
  1930. public $maxResults; 
  1931. public $preserveNulls; 
  1932. public $query; 
  1933. public $timeoutMs; 
  1934. public $useQueryCache; 
  1935.  
  1936. public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset) 
  1937. $this->defaultDataset = $defaultDataset; 
  1938.  
  1939. public function getDefaultDataset() 
  1940. return $this->defaultDataset; 
  1941.  
  1942. public function setDryRun($dryRun) 
  1943. $this->dryRun = $dryRun; 
  1944.  
  1945. public function getDryRun() 
  1946. return $this->dryRun; 
  1947.  
  1948. public function setKind($kind) 
  1949. $this->kind = $kind; 
  1950.  
  1951. public function getKind() 
  1952. return $this->kind; 
  1953.  
  1954. public function setMaxResults($maxResults) 
  1955. $this->maxResults = $maxResults; 
  1956.  
  1957. public function getMaxResults() 
  1958. return $this->maxResults; 
  1959.  
  1960. public function setPreserveNulls($preserveNulls) 
  1961. $this->preserveNulls = $preserveNulls; 
  1962.  
  1963. public function getPreserveNulls() 
  1964. return $this->preserveNulls; 
  1965.  
  1966. public function setQuery($query) 
  1967. $this->query = $query; 
  1968.  
  1969. public function getQuery() 
  1970. return $this->query; 
  1971.  
  1972. public function setTimeoutMs($timeoutMs) 
  1973. $this->timeoutMs = $timeoutMs; 
  1974.  
  1975. public function getTimeoutMs() 
  1976. return $this->timeoutMs; 
  1977.  
  1978. public function setUseQueryCache($useQueryCache) 
  1979. $this->useQueryCache = $useQueryCache; 
  1980.  
  1981. public function getUseQueryCache() 
  1982. return $this->useQueryCache; 
  1983.  
  1984. class Google_Service_Bigquery_QueryResponse extends Google_Collection 
  1985. public $cacheHit; 
  1986. public $jobComplete; 
  1987. protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; 
  1988. protected $jobReferenceDataType = ''; 
  1989. public $kind; 
  1990. public $pageToken; 
  1991. protected $rowsType = 'Google_Service_Bigquery_TableRow'; 
  1992. protected $rowsDataType = 'array'; 
  1993. protected $schemaType = 'Google_Service_Bigquery_TableSchema'; 
  1994. protected $schemaDataType = ''; 
  1995. public $totalBytesProcessed; 
  1996. public $totalRows; 
  1997.  
  1998. public function setCacheHit($cacheHit) 
  1999. $this->cacheHit = $cacheHit; 
  2000.  
  2001. public function getCacheHit() 
  2002. return $this->cacheHit; 
  2003.  
  2004. public function setJobComplete($jobComplete) 
  2005. $this->jobComplete = $jobComplete; 
  2006.  
  2007. public function getJobComplete() 
  2008. return $this->jobComplete; 
  2009.  
  2010. public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) 
  2011. $this->jobReference = $jobReference; 
  2012.  
  2013. public function getJobReference() 
  2014. return $this->jobReference; 
  2015.  
  2016. public function setKind($kind) 
  2017. $this->kind = $kind; 
  2018.  
  2019. public function getKind() 
  2020. return $this->kind; 
  2021.  
  2022. public function setPageToken($pageToken) 
  2023. $this->pageToken = $pageToken; 
  2024.  
  2025. public function getPageToken() 
  2026. return $this->pageToken; 
  2027.  
  2028. public function setRows($rows) 
  2029. $this->rows = $rows; 
  2030.  
  2031. public function getRows() 
  2032. return $this->rows; 
  2033.  
  2034. public function setSchema(Google_Service_Bigquery_TableSchema $schema) 
  2035. $this->schema = $schema; 
  2036.  
  2037. public function getSchema() 
  2038. return $this->schema; 
  2039.  
  2040. public function setTotalBytesProcessed($totalBytesProcessed) 
  2041. $this->totalBytesProcessed = $totalBytesProcessed; 
  2042.  
  2043. public function getTotalBytesProcessed() 
  2044. return $this->totalBytesProcessed; 
  2045.  
  2046. public function setTotalRows($totalRows) 
  2047. $this->totalRows = $totalRows; 
  2048.  
  2049. public function getTotalRows() 
  2050. return $this->totalRows; 
  2051.  
  2052. class Google_Service_Bigquery_Table extends Google_Model 
  2053. public $creationTime; 
  2054. public $description; 
  2055. public $etag; 
  2056. public $expirationTime; 
  2057. public $friendlyName; 
  2058. public $id; 
  2059. public $kind; 
  2060. public $lastModifiedTime; 
  2061. public $numBytes; 
  2062. public $numRows; 
  2063. protected $schemaType = 'Google_Service_Bigquery_TableSchema'; 
  2064. protected $schemaDataType = ''; 
  2065. public $selfLink; 
  2066. protected $tableReferenceType = 'Google_Service_Bigquery_TableReference'; 
  2067. protected $tableReferenceDataType = ''; 
  2068. public $type; 
  2069. protected $viewType = 'Google_Service_Bigquery_ViewDefinition'; 
  2070. protected $viewDataType = ''; 
  2071.  
  2072. public function setCreationTime($creationTime) 
  2073. $this->creationTime = $creationTime; 
  2074.  
  2075. public function getCreationTime() 
  2076. return $this->creationTime; 
  2077.  
  2078. public function setDescription($description) 
  2079. $this->description = $description; 
  2080.  
  2081. public function getDescription() 
  2082. return $this->description; 
  2083.  
  2084. public function setEtag($etag) 
  2085. $this->etag = $etag; 
  2086.  
  2087. public function getEtag() 
  2088. return $this->etag; 
  2089.  
  2090. public function setExpirationTime($expirationTime) 
  2091. $this->expirationTime = $expirationTime; 
  2092.  
  2093. public function getExpirationTime() 
  2094. return $this->expirationTime; 
  2095.  
  2096. public function setFriendlyName($friendlyName) 
  2097. $this->friendlyName = $friendlyName; 
  2098.  
  2099. public function getFriendlyName() 
  2100. return $this->friendlyName; 
  2101.  
  2102. public function setId($id) 
  2103. $this->id = $id; 
  2104.  
  2105. public function getId() 
  2106. return $this->id; 
  2107.  
  2108. public function setKind($kind) 
  2109. $this->kind = $kind; 
  2110.  
  2111. public function getKind() 
  2112. return $this->kind; 
  2113.  
  2114. public function setLastModifiedTime($lastModifiedTime) 
  2115. $this->lastModifiedTime = $lastModifiedTime; 
  2116.  
  2117. public function getLastModifiedTime() 
  2118. return $this->lastModifiedTime; 
  2119.  
  2120. public function setNumBytes($numBytes) 
  2121. $this->numBytes = $numBytes; 
  2122.  
  2123. public function getNumBytes() 
  2124. return $this->numBytes; 
  2125.  
  2126. public function setNumRows($numRows) 
  2127. $this->numRows = $numRows; 
  2128.  
  2129. public function getNumRows() 
  2130. return $this->numRows; 
  2131.  
  2132. public function setSchema(Google_Service_Bigquery_TableSchema $schema) 
  2133. $this->schema = $schema; 
  2134.  
  2135. public function getSchema() 
  2136. return $this->schema; 
  2137.  
  2138. public function setSelfLink($selfLink) 
  2139. $this->selfLink = $selfLink; 
  2140.  
  2141. public function getSelfLink() 
  2142. return $this->selfLink; 
  2143.  
  2144. public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) 
  2145. $this->tableReference = $tableReference; 
  2146.  
  2147. public function getTableReference() 
  2148. return $this->tableReference; 
  2149.  
  2150. public function setType($type) 
  2151. $this->type = $type; 
  2152.  
  2153. public function getType() 
  2154. return $this->type; 
  2155.  
  2156. public function setView(Google_Service_Bigquery_ViewDefinition $view) 
  2157. $this->view = $view; 
  2158.  
  2159. public function getView() 
  2160. return $this->view; 
  2161.  
  2162. class Google_Service_Bigquery_TableCell extends Google_Model 
  2163. public $v; 
  2164.  
  2165. public function setV($v) 
  2166. $this->v = $v; 
  2167.  
  2168. public function getV() 
  2169. return $this->v; 
  2170.  
  2171. class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection 
  2172. public $kind; 
  2173. protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows'; 
  2174. protected $rowsDataType = 'array'; 
  2175.  
  2176. public function setKind($kind) 
  2177. $this->kind = $kind; 
  2178.  
  2179. public function getKind() 
  2180. return $this->kind; 
  2181.  
  2182. public function setRows($rows) 
  2183. $this->rows = $rows; 
  2184.  
  2185. public function getRows() 
  2186. return $this->rows; 
  2187.  
  2188. class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model 
  2189. public $insertId; 
  2190. public $json; 
  2191.  
  2192. public function setInsertId($insertId) 
  2193. $this->insertId = $insertId; 
  2194.  
  2195. public function getInsertId() 
  2196. return $this->insertId; 
  2197.  
  2198. public function setJson($json) 
  2199. $this->json = $json; 
  2200.  
  2201. public function getJson() 
  2202. return $this->json; 
  2203.  
  2204. class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection 
  2205. protected $insertErrorsType = 'Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors'; 
  2206. protected $insertErrorsDataType = 'array'; 
  2207. public $kind; 
  2208.  
  2209. public function setInsertErrors($insertErrors) 
  2210. $this->insertErrors = $insertErrors; 
  2211.  
  2212. public function getInsertErrors() 
  2213. return $this->insertErrors; 
  2214.  
  2215. public function setKind($kind) 
  2216. $this->kind = $kind; 
  2217.  
  2218. public function getKind() 
  2219. return $this->kind; 
  2220.  
  2221. class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection 
  2222. protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; 
  2223. protected $errorsDataType = 'array'; 
  2224. public $index; 
  2225.  
  2226. public function setErrors($errors) 
  2227. $this->errors = $errors; 
  2228.  
  2229. public function getErrors() 
  2230. return $this->errors; 
  2231.  
  2232. public function setIndex($index) 
  2233. $this->index = $index; 
  2234.  
  2235. public function getIndex() 
  2236. return $this->index; 
  2237.  
  2238. class Google_Service_Bigquery_TableDataList extends Google_Collection 
  2239. public $etag; 
  2240. public $kind; 
  2241. public $pageToken; 
  2242. protected $rowsType = 'Google_Service_Bigquery_TableRow'; 
  2243. protected $rowsDataType = 'array'; 
  2244. public $totalRows; 
  2245.  
  2246. public function setEtag($etag) 
  2247. $this->etag = $etag; 
  2248.  
  2249. public function getEtag() 
  2250. return $this->etag; 
  2251.  
  2252. public function setKind($kind) 
  2253. $this->kind = $kind; 
  2254.  
  2255. public function getKind() 
  2256. return $this->kind; 
  2257.  
  2258. public function setPageToken($pageToken) 
  2259. $this->pageToken = $pageToken; 
  2260.  
  2261. public function getPageToken() 
  2262. return $this->pageToken; 
  2263.  
  2264. public function setRows($rows) 
  2265. $this->rows = $rows; 
  2266.  
  2267. public function getRows() 
  2268. return $this->rows; 
  2269.  
  2270. public function setTotalRows($totalRows) 
  2271. $this->totalRows = $totalRows; 
  2272.  
  2273. public function getTotalRows() 
  2274. return $this->totalRows; 
  2275.  
  2276. class Google_Service_Bigquery_TableFieldSchema extends Google_Collection 
  2277. public $description; 
  2278. protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; 
  2279. protected $fieldsDataType = 'array'; 
  2280. public $mode; 
  2281. public $name; 
  2282. public $type; 
  2283.  
  2284. public function setDescription($description) 
  2285. $this->description = $description; 
  2286.  
  2287. public function getDescription() 
  2288. return $this->description; 
  2289.  
  2290. public function setFields($fields) 
  2291. $this->fields = $fields; 
  2292.  
  2293. public function getFields() 
  2294. return $this->fields; 
  2295.  
  2296. public function setMode($mode) 
  2297. $this->mode = $mode; 
  2298.  
  2299. public function getMode() 
  2300. return $this->mode; 
  2301.  
  2302. public function setName($name) 
  2303. $this->name = $name; 
  2304.  
  2305. public function getName() 
  2306. return $this->name; 
  2307.  
  2308. public function setType($type) 
  2309. $this->type = $type; 
  2310.  
  2311. public function getType() 
  2312. return $this->type; 
  2313.  
  2314. class Google_Service_Bigquery_TableList extends Google_Collection 
  2315. public $etag; 
  2316. public $kind; 
  2317. public $nextPageToken; 
  2318. protected $tablesType = 'Google_Service_Bigquery_TableListTables'; 
  2319. protected $tablesDataType = 'array'; 
  2320. public $totalItems; 
  2321.  
  2322. public function setEtag($etag) 
  2323. $this->etag = $etag; 
  2324.  
  2325. public function getEtag() 
  2326. return $this->etag; 
  2327.  
  2328. public function setKind($kind) 
  2329. $this->kind = $kind; 
  2330.  
  2331. public function getKind() 
  2332. return $this->kind; 
  2333.  
  2334. public function setNextPageToken($nextPageToken) 
  2335. $this->nextPageToken = $nextPageToken; 
  2336.  
  2337. public function getNextPageToken() 
  2338. return $this->nextPageToken; 
  2339.  
  2340. public function setTables($tables) 
  2341. $this->tables = $tables; 
  2342.  
  2343. public function getTables() 
  2344. return $this->tables; 
  2345.  
  2346. public function setTotalItems($totalItems) 
  2347. $this->totalItems = $totalItems; 
  2348.  
  2349. public function getTotalItems() 
  2350. return $this->totalItems; 
  2351.  
  2352. class Google_Service_Bigquery_TableListTables extends Google_Model 
  2353. public $friendlyName; 
  2354. public $id; 
  2355. public $kind; 
  2356. protected $tableReferenceType = 'Google_Service_Bigquery_TableReference'; 
  2357. protected $tableReferenceDataType = ''; 
  2358. public $type; 
  2359.  
  2360. public function setFriendlyName($friendlyName) 
  2361. $this->friendlyName = $friendlyName; 
  2362.  
  2363. public function getFriendlyName() 
  2364. return $this->friendlyName; 
  2365.  
  2366. public function setId($id) 
  2367. $this->id = $id; 
  2368.  
  2369. public function getId() 
  2370. return $this->id; 
  2371.  
  2372. public function setKind($kind) 
  2373. $this->kind = $kind; 
  2374.  
  2375. public function getKind() 
  2376. return $this->kind; 
  2377.  
  2378. public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) 
  2379. $this->tableReference = $tableReference; 
  2380.  
  2381. public function getTableReference() 
  2382. return $this->tableReference; 
  2383.  
  2384. public function setType($type) 
  2385. $this->type = $type; 
  2386.  
  2387. public function getType() 
  2388. return $this->type; 
  2389.  
  2390. class Google_Service_Bigquery_TableReference extends Google_Model 
  2391. public $datasetId; 
  2392. public $projectId; 
  2393. public $tableId; 
  2394.  
  2395. public function setDatasetId($datasetId) 
  2396. $this->datasetId = $datasetId; 
  2397.  
  2398. public function getDatasetId() 
  2399. return $this->datasetId; 
  2400.  
  2401. public function setProjectId($projectId) 
  2402. $this->projectId = $projectId; 
  2403.  
  2404. public function getProjectId() 
  2405. return $this->projectId; 
  2406.  
  2407. public function setTableId($tableId) 
  2408. $this->tableId = $tableId; 
  2409.  
  2410. public function getTableId() 
  2411. return $this->tableId; 
  2412.  
  2413. class Google_Service_Bigquery_TableRow extends Google_Collection 
  2414. protected $fType = 'Google_Service_Bigquery_TableCell'; 
  2415. protected $fDataType = 'array'; 
  2416.  
  2417. public function setF($f) 
  2418. $this->f = $f; 
  2419.  
  2420. public function getF() 
  2421. return $this->f; 
  2422.  
  2423. class Google_Service_Bigquery_TableSchema extends Google_Collection 
  2424. protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; 
  2425. protected $fieldsDataType = 'array'; 
  2426.  
  2427. public function setFields($fields) 
  2428. $this->fields = $fields; 
  2429.  
  2430. public function getFields() 
  2431. return $this->fields; 
  2432.  
  2433. class Google_Service_Bigquery_ViewDefinition extends Google_Model 
  2434. public $query; 
  2435.  
  2436. public function setQuery($query) 
  2437. $this->query = $query; 
  2438.  
  2439. public function getQuery() 
  2440. return $this->query; 
.