1<?php
2/*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16
17  /**
18   * The "datasets" collection of methods.
19   * Typical usage is:
20   *  <code>
21   *   $datastoreService = new Google_DatastoreService(...);
22   *   $datasets = $datastoreService->datasets;
23   *  </code>
24   */
25  class Google_DatasetsServiceResource extends Google_ServiceResource {
26
27    /**
28     * Allocate IDs for incomplete keys (useful for referencing an entity before it is inserted).
29     * (datasets.allocateIds)
30     *
31     * @param string $datasetId Identifies the dataset.
32     * @param Google_AllocateIdsRequest $postBody
33     * @param array $optParams Optional parameters.
34     * @return Google_AllocateIdsResponse
35     */
36    public function allocateIds($datasetId, Google_AllocateIdsRequest $postBody, $optParams = array()) {
37      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
38      $params = array_merge($params, $optParams);
39      $data = $this->__call('allocateIds', array($params));
40      if ($this->useObjects()) {
41        return new Google_AllocateIdsResponse($data);
42      } else {
43        return $data;
44      }
45    }
46    /**
47     * Begin a new transaction. (datasets.beginTransaction)
48     *
49     * @param string $datasetId Identifies the dataset.
50     * @param Google_BeginTransactionRequest $postBody
51     * @param array $optParams Optional parameters.
52     * @return Google_BeginTransactionResponse
53     */
54    public function beginTransaction($datasetId, Google_BeginTransactionRequest $postBody, $optParams = array()) {
55      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
56      $params = array_merge($params, $optParams);
57      $data = $this->__call('beginTransaction', array($params));
58      if ($this->useObjects()) {
59        return new Google_BeginTransactionResponse($data);
60      } else {
61        return $data;
62      }
63    }
64    /**
65     * Create, delete or modify some entities outside a transaction. (datasets.blindWrite)
66     *
67     * @param string $datasetId Identifies the dataset.
68     * @param Google_BlindWriteRequest $postBody
69     * @param array $optParams Optional parameters.
70     * @return Google_BlindWriteResponse
71     */
72    public function blindWrite($datasetId, Google_BlindWriteRequest $postBody, $optParams = array()) {
73      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
74      $params = array_merge($params, $optParams);
75      $data = $this->__call('blindWrite', array($params));
76      if ($this->useObjects()) {
77        return new Google_BlindWriteResponse($data);
78      } else {
79        return $data;
80      }
81    }
82    /**
83     * Commit a transaction, optionally creating, deleting or modifying some entities. (datasets.commit)
84     *
85     * @param string $datasetId Identifies the dataset.
86     * @param Google_CommitRequest $postBody
87     * @param array $optParams Optional parameters.
88     * @return Google_CommitResponse
89     */
90    public function commit($datasetId, Google_CommitRequest $postBody, $optParams = array()) {
91      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
92      $params = array_merge($params, $optParams);
93      $data = $this->__call('commit', array($params));
94      if ($this->useObjects()) {
95        return new Google_CommitResponse($data);
96      } else {
97        return $data;
98      }
99    }
100    /**
101     * Look up some entities by key. (datasets.lookup)
102     *
103     * @param string $datasetId Identifies the dataset.
104     * @param Google_LookupRequest $postBody
105     * @param array $optParams Optional parameters.
106     * @return Google_LookupResponse
107     */
108    public function lookup($datasetId, Google_LookupRequest $postBody, $optParams = array()) {
109      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
110      $params = array_merge($params, $optParams);
111      $data = $this->__call('lookup', array($params));
112      if ($this->useObjects()) {
113        return new Google_LookupResponse($data);
114      } else {
115        return $data;
116      }
117    }
118    /**
119     * Roll back a transaction. (datasets.rollback)
120     *
121     * @param string $datasetId Identifies the dataset.
122     * @param Google_RollbackRequest $postBody
123     * @param array $optParams Optional parameters.
124     * @return Google_RollbackResponse
125     */
126    public function rollback($datasetId, Google_RollbackRequest $postBody, $optParams = array()) {
127      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
128      $params = array_merge($params, $optParams);
129      $data = $this->__call('rollback', array($params));
130      if ($this->useObjects()) {
131        return new Google_RollbackResponse($data);
132      } else {
133        return $data;
134      }
135    }
136    /**
137     * Query for entities. (datasets.runQuery)
138     *
139     * @param string $datasetId Identifies the dataset.
140     * @param Google_RunQueryRequest $postBody
141     * @param array $optParams Optional parameters.
142     * @return Google_RunQueryResponse
143     */
144    public function runQuery($datasetId, Google_RunQueryRequest $postBody, $optParams = array()) {
145      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
146      $params = array_merge($params, $optParams);
147      $data = $this->__call('runQuery', array($params));
148      if ($this->useObjects()) {
149        return new Google_RunQueryResponse($data);
150      } else {
151        return $data;
152      }
153    }
154  }
155
156/**
157 * Service definition for Google_Datastore (v1beta1).
158 *
159 * <p>
160 * API for accessing Google Cloud Datastore.
161 * </p>
162 *
163 * <p>
164 * For more information about this service, see the
165 * <a href="https://developers.google.com/datastore/" target="_blank">API Documentation</a>
166 * </p>
167 *
168 * @author Google, Inc.
169 */
170class Google_DatastoreService extends Google_Service {
171  public $datasets;
172  /**
173   * Constructs the internal representation of the Datastore service.
174   *
175   * @param Google_Client $client
176   */
177  public function __construct(Google_Client $client) {
178    $this->servicePath = 'datastore/v1beta1/datasets/';
179    $this->version = 'v1beta1';
180    $this->serviceName = 'datastore';
181
182    $client->addService($this->serviceName, $this->version);
183    $this->datasets = new Google_DatasetsServiceResource($this, $this->serviceName, 'datasets', json_decode('{"methods": {"allocateIds": {"id": "datastore.datasets.allocateIds", "path": "{datasetId}/allocateIds", "httpMethod": "POST", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AllocateIdsRequest"}, "response": {"$ref": "AllocateIdsResponse"}, "scopes": ["https://www.googleapis.com/auth/userinfo.email"]}, "beginTransaction": {"id": "datastore.datasets.beginTransaction", "path": "{datasetId}/beginTransaction", "httpMethod": "POST", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "BeginTransactionRequest"}, "response": {"$ref": "BeginTransactionResponse"}, "scopes": ["https://www.googleapis.com/auth/userinfo.email"]}, "blindWrite": {"id": "datastore.datasets.blindWrite", "path": "{datasetId}/blindWrite", "httpMethod": "POST", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "BlindWriteRequest"}, "response": {"$ref": "BlindWriteResponse"}, "scopes": ["https://www.googleapis.com/auth/userinfo.email"]}, "commit": {"id": "datastore.datasets.commit", "path": "{datasetId}/commit", "httpMethod": "POST", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CommitRequest"}, "response": {"$ref": "CommitResponse"}, "scopes": ["https://www.googleapis.com/auth/userinfo.email"]}, "lookup": {"id": "datastore.datasets.lookup", "path": "{datasetId}/lookup", "httpMethod": "POST", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "LookupRequest"}, "response": {"$ref": "LookupResponse"}, "scopes": ["https://www.googleapis.com/auth/userinfo.email"]}, "rollback": {"id": "datastore.datasets.rollback", "path": "{datasetId}/rollback", "httpMethod": "POST", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "RollbackRequest"}, "response": {"$ref": "RollbackResponse"}, "scopes": ["https://www.googleapis.com/auth/userinfo.email"]}, "runQuery": {"id": "datastore.datasets.runQuery", "path": "{datasetId}/runQuery", "httpMethod": "POST", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "RunQueryRequest"}, "response": {"$ref": "RunQueryResponse"}, "scopes": ["https://www.googleapis.com/auth/userinfo.email"]}}}', true));
184
185  }
186}
187
188
189
190class Google_AllocateIdsRequest extends Google_Model {
191  protected $__keysType = 'Google_Key';
192  protected $__keysDataType = 'array';
193  public $keys;
194  public function setKeys(/* array(Google_Key) */ $keys) {
195    $this->assertIsArray($keys, 'Google_Key', __METHOD__);
196    $this->keys = $keys;
197  }
198  public function getKeys() {
199    return $this->keys;
200  }
201}
202
203class Google_AllocateIdsResponse extends Google_Model {
204  protected $__keysType = 'Google_Key';
205  protected $__keysDataType = 'array';
206  public $keys;
207  public $kind;
208  public function setKeys(/* array(Google_Key) */ $keys) {
209    $this->assertIsArray($keys, 'Google_Key', __METHOD__);
210    $this->keys = $keys;
211  }
212  public function getKeys() {
213    return $this->keys;
214  }
215  public function setKind( $kind) {
216    $this->kind = $kind;
217  }
218  public function getKind() {
219    return $this->kind;
220  }
221}
222
223class Google_BeginTransactionRequest extends Google_Model {
224  public $isolationLevel;
225  public function setIsolationLevel( $isolationLevel) {
226    $this->isolationLevel = $isolationLevel;
227  }
228  public function getIsolationLevel() {
229    return $this->isolationLevel;
230  }
231}
232
233class Google_BeginTransactionResponse extends Google_Model {
234  public $kind;
235  public $transaction;
236  public function setKind( $kind) {
237    $this->kind = $kind;
238  }
239  public function getKind() {
240    return $this->kind;
241  }
242  public function setTransaction( $transaction) {
243    $this->transaction = $transaction;
244  }
245  public function getTransaction() {
246    return $this->transaction;
247  }
248}
249
250class Google_BlindWriteRequest extends Google_Model {
251  protected $__mutationType = 'Google_Mutation';
252  protected $__mutationDataType = '';
253  public $mutation;
254  public function setMutation(Google_Mutation $mutation) {
255    $this->mutation = $mutation;
256  }
257  public function getMutation() {
258    return $this->mutation;
259  }
260}
261
262class Google_BlindWriteResponse extends Google_Model {
263  public $kind;
264  protected $__mutationResultType = 'Google_MutationResult';
265  protected $__mutationResultDataType = '';
266  public $mutationResult;
267  public function setKind( $kind) {
268    $this->kind = $kind;
269  }
270  public function getKind() {
271    return $this->kind;
272  }
273  public function setMutationResult(Google_MutationResult $mutationResult) {
274    $this->mutationResult = $mutationResult;
275  }
276  public function getMutationResult() {
277    return $this->mutationResult;
278  }
279}
280
281class Google_CommitRequest extends Google_Model {
282  protected $__mutationType = 'Google_Mutation';
283  protected $__mutationDataType = '';
284  public $mutation;
285  public $transaction;
286  public function setMutation(Google_Mutation $mutation) {
287    $this->mutation = $mutation;
288  }
289  public function getMutation() {
290    return $this->mutation;
291  }
292  public function setTransaction( $transaction) {
293    $this->transaction = $transaction;
294  }
295  public function getTransaction() {
296    return $this->transaction;
297  }
298}
299
300class Google_CommitResponse extends Google_Model {
301  public $kind;
302  protected $__mutationResultType = 'Google_MutationResult';
303  protected $__mutationResultDataType = '';
304  public $mutationResult;
305  public function setKind( $kind) {
306    $this->kind = $kind;
307  }
308  public function getKind() {
309    return $this->kind;
310  }
311  public function setMutationResult(Google_MutationResult $mutationResult) {
312    $this->mutationResult = $mutationResult;
313  }
314  public function getMutationResult() {
315    return $this->mutationResult;
316  }
317}
318
319class Google_CompositeFilter extends Google_Model {
320  protected $__filtersType = 'Google_Filter';
321  protected $__filtersDataType = 'array';
322  public $filters;
323  public $operator;
324  public function setFilters(/* array(Google_Filter) */ $filters) {
325    $this->assertIsArray($filters, 'Google_Filter', __METHOD__);
326    $this->filters = $filters;
327  }
328  public function getFilters() {
329    return $this->filters;
330  }
331  public function setOperator( $operator) {
332    $this->operator = $operator;
333  }
334  public function getOperator() {
335    return $this->operator;
336  }
337}
338
339class Google_Entity extends Google_Model {
340  protected $__keyType = 'Google_Key';
341  protected $__keyDataType = '';
342  public $key;
343  protected $__propertiesType = 'Google_Property';
344  protected $__propertiesDataType = 'map';
345  public $properties;
346  public function setKey(Google_Key $key) {
347    $this->key = $key;
348  }
349  public function getKey() {
350    return $this->key;
351  }
352  /* lynchb@ Made a modification here to remove the typing
353   * allow for an array of properties to be set
354   * on an entity. Otherwise the file is unchanged
355   * from the generator.
356   */
357  public function setProperties($properties) {
358    $this->properties = $properties;
359  }
360  public function getProperties() {
361    return $this->properties;
362  }
363}
364
365class Google_EntityResult extends Google_Model {
366  protected $__entityType = 'Google_Entity';
367  protected $__entityDataType = '';
368  public $entity;
369  public function setEntity(Google_Entity $entity) {
370    $this->entity = $entity;
371  }
372  public function getEntity() {
373    return $this->entity;
374  }
375}
376
377class Google_Filter extends Google_Model {
378  protected $__compositeFilterType = 'Google_CompositeFilter';
379  protected $__compositeFilterDataType = '';
380  public $compositeFilter;
381  protected $__propertyFilterType = 'Google_PropertyFilter';
382  protected $__propertyFilterDataType = '';
383  public $propertyFilter;
384  public function setCompositeFilter(Google_CompositeFilter $compositeFilter) {
385    $this->compositeFilter = $compositeFilter;
386  }
387  public function getCompositeFilter() {
388    return $this->compositeFilter;
389  }
390  public function setPropertyFilter(Google_PropertyFilter $propertyFilter) {
391    $this->propertyFilter = $propertyFilter;
392  }
393  public function getPropertyFilter() {
394    return $this->propertyFilter;
395  }
396}
397
398class Google_Key extends Google_Model {
399  protected $__partitionIdType = 'Google_PartitionId';
400  protected $__partitionIdDataType = '';
401  public $partitionId;
402  protected $__pathType = 'Google_KeyPathElement';
403  protected $__pathDataType = 'array';
404  public $path;
405  public function setPartitionId(Google_PartitionId $partitionId) {
406    $this->partitionId = $partitionId;
407  }
408  public function getPartitionId() {
409    return $this->partitionId;
410  }
411  public function setPath(/* array(Google_KeyPathElement) */ $path) {
412    $this->assertIsArray($path, 'Google_KeyPathElement', __METHOD__);
413    $this->path = $path;
414  }
415  public function getPath() {
416    return $this->path;
417  }
418}
419
420class Google_KeyPathElement extends Google_Model {
421  public $id;
422  public $kind;
423  public $name;
424  public function setId( $id) {
425    $this->id = $id;
426  }
427  public function getId() {
428    return $this->id;
429  }
430  public function setKind( $kind) {
431    $this->kind = $kind;
432  }
433  public function getKind() {
434    return $this->kind;
435  }
436  public function setName( $name) {
437    $this->name = $name;
438  }
439  public function getName() {
440    return $this->name;
441  }
442}
443
444class Google_KindExpression extends Google_Model {
445  public $name;
446  public function setName( $name) {
447    $this->name = $name;
448  }
449  public function getName() {
450    return $this->name;
451  }
452}
453
454class Google_LookupRequest extends Google_Model {
455  protected $__keysType = 'Google_Key';
456  protected $__keysDataType = 'array';
457  public $keys;
458  protected $__readOptionsType = 'Google_ReadOptions';
459  protected $__readOptionsDataType = '';
460  public $readOptions;
461  public function setKeys(/* array(Google_Key) */ $keys) {
462    $this->assertIsArray($keys, 'Google_Key', __METHOD__);
463    $this->keys = $keys;
464  }
465  public function getKeys() {
466    return $this->keys;
467  }
468  public function setReadOptions(Google_ReadOptions $readOptions) {
469    $this->readOptions = $readOptions;
470  }
471  public function getReadOptions() {
472    return $this->readOptions;
473  }
474}
475
476class Google_LookupResponse extends Google_Model {
477  protected $__deferredType = 'Google_Key';
478  protected $__deferredDataType = 'array';
479  public $deferred;
480  protected $__foundType = 'Google_EntityResult';
481  protected $__foundDataType = 'array';
482  public $found;
483  public $kind;
484  protected $__missingType = 'Google_EntityResult';
485  protected $__missingDataType = 'array';
486  public $missing;
487  public function setDeferred(/* array(Google_Key) */ $deferred) {
488    $this->assertIsArray($deferred, 'Google_Key', __METHOD__);
489    $this->deferred = $deferred;
490  }
491  public function getDeferred() {
492    return $this->deferred;
493  }
494  public function setFound(/* array(Google_EntityResult) */ $found) {
495    $this->assertIsArray($found, 'Google_EntityResult', __METHOD__);
496    $this->found = $found;
497  }
498  public function getFound() {
499    return $this->found;
500  }
501  public function setKind( $kind) {
502    $this->kind = $kind;
503  }
504  public function getKind() {
505    return $this->kind;
506  }
507  public function setMissing(/* array(Google_EntityResult) */ $missing) {
508    $this->assertIsArray($missing, 'Google_EntityResult', __METHOD__);
509    $this->missing = $missing;
510  }
511  public function getMissing() {
512    return $this->missing;
513  }
514}
515
516class Google_Mutation extends Google_Model {
517  protected $__deleteType = 'Google_Key';
518  protected $__deleteDataType = 'array';
519  public $delete;
520  public $force;
521  protected $__insertType = 'Google_Entity';
522  protected $__insertDataType = 'array';
523  public $insert;
524  protected $__insertAutoIdType = 'Google_Entity';
525  protected $__insertAutoIdDataType = 'array';
526  public $insertAutoId;
527  protected $__updateType = 'Google_Entity';
528  protected $__updateDataType = 'array';
529  public $update;
530  protected $__upsertType = 'Google_Entity';
531  protected $__upsertDataType = 'array';
532  public $upsert;
533  public function setDelete(/* array(Google_Key) */ $delete) {
534    $this->assertIsArray($delete, 'Google_Key', __METHOD__);
535    $this->delete = $delete;
536  }
537  public function getDelete() {
538    return $this->delete;
539  }
540  public function setForce( $force) {
541    $this->force = $force;
542  }
543  public function getForce() {
544    return $this->force;
545  }
546  public function setInsert(/* array(Google_Entity) */ $insert) {
547    $this->assertIsArray($insert, 'Google_Entity', __METHOD__);
548    $this->insert = $insert;
549  }
550  public function getInsert() {
551    return $this->insert;
552  }
553  public function setInsertAutoId(/* array(Google_Entity) */ $insertAutoId) {
554    $this->assertIsArray($insertAutoId, 'Google_Entity', __METHOD__);
555    $this->insertAutoId = $insertAutoId;
556  }
557  public function getInsertAutoId() {
558    return $this->insertAutoId;
559  }
560  public function setUpdate(/* array(Google_Entity) */ $update) {
561    $this->assertIsArray($update, 'Google_Entity', __METHOD__);
562    $this->update = $update;
563  }
564  public function getUpdate() {
565    return $this->update;
566  }
567  public function setUpsert(/* array(Google_Entity) */ $upsert) {
568    $this->assertIsArray($upsert, 'Google_Entity', __METHOD__);
569    $this->upsert = $upsert;
570  }
571  public function getUpsert() {
572    return $this->upsert;
573  }
574}
575
576class Google_MutationResult extends Google_Model {
577  public $indexUpdates;
578  protected $__insertAutoIdKeysType = 'Google_Key';
579  protected $__insertAutoIdKeysDataType = 'array';
580  public $insertAutoIdKeys;
581  public function setIndexUpdates( $indexUpdates) {
582    $this->indexUpdates = $indexUpdates;
583  }
584  public function getIndexUpdates() {
585    return $this->indexUpdates;
586  }
587  public function setInsertAutoIdKeys(/* array(Google_Key) */ $insertAutoIdKeys) {
588    $this->assertIsArray($insertAutoIdKeys, 'Google_Key', __METHOD__);
589    $this->insertAutoIdKeys = $insertAutoIdKeys;
590  }
591  public function getInsertAutoIdKeys() {
592    return $this->insertAutoIdKeys;
593  }
594}
595
596class Google_PartitionId extends Google_Model {
597  public $datasetId;
598  public $namespace;
599  public function setDatasetId( $datasetId) {
600    $this->datasetId = $datasetId;
601  }
602  public function getDatasetId() {
603    return $this->datasetId;
604  }
605  public function setNamespace( $namespace) {
606    $this->namespace = $namespace;
607  }
608  public function getNamespace() {
609    return $this->namespace;
610  }
611}
612
613class Google_Property extends Google_Model {
614  public $multi;
615  protected $__valuesType = 'Google_Value';
616  protected $__valuesDataType = 'array';
617  public $values;
618  public function setMulti( $multi) {
619    $this->multi = $multi;
620  }
621  public function getMulti() {
622    return $this->multi;
623  }
624  public function setValues(/* array(Google_Value) */ $values) {
625    $this->assertIsArray($values, 'Google_Value', __METHOD__);
626    $this->values = $values;
627  }
628  public function getValues() {
629    return $this->values;
630  }
631}
632
633class Google_PropertyExpression extends Google_Model {
634  public $aggregationFunction;
635  protected $__propertyType = 'Google_PropertyReference';
636  protected $__propertyDataType = '';
637  public $property;
638  public function setAggregationFunction( $aggregationFunction) {
639    $this->aggregationFunction = $aggregationFunction;
640  }
641  public function getAggregationFunction() {
642    return $this->aggregationFunction;
643  }
644  public function setProperty(Google_PropertyReference $property) {
645    $this->property = $property;
646  }
647  public function getProperty() {
648    return $this->property;
649  }
650}
651
652class Google_PropertyFilter extends Google_Model {
653  public $operator;
654  protected $__propertyType = 'Google_PropertyReference';
655  protected $__propertyDataType = '';
656  public $property;
657  protected $__valueType = 'Google_Value';
658  protected $__valueDataType = '';
659  public $value;
660  public function setOperator( $operator) {
661    $this->operator = $operator;
662  }
663  public function getOperator() {
664    return $this->operator;
665  }
666  public function setProperty(Google_PropertyReference $property) {
667    $this->property = $property;
668  }
669  public function getProperty() {
670    return $this->property;
671  }
672  public function setValue(Google_Value $value) {
673    $this->value = $value;
674  }
675  public function getValue() {
676    return $this->value;
677  }
678}
679
680class Google_PropertyOrder extends Google_Model {
681  public $direction;
682  protected $__propertyType = 'Google_PropertyReference';
683  protected $__propertyDataType = '';
684  public $property;
685  public function setDirection( $direction) {
686    $this->direction = $direction;
687  }
688  public function getDirection() {
689    return $this->direction;
690  }
691  public function setProperty(Google_PropertyReference $property) {
692    $this->property = $property;
693  }
694  public function getProperty() {
695    return $this->property;
696  }
697}
698
699class Google_PropertyReference extends Google_Model {
700  public $name;
701  public function setName( $name) {
702    $this->name = $name;
703  }
704  public function getName() {
705    return $this->name;
706  }
707}
708
709class Google_Query extends Google_Model {
710  public $endCursor;
711  protected $__filterType = 'Google_Filter';
712  protected $__filterDataType = '';
713  public $filter;
714  protected $__groupByType = 'Google_PropertyReference';
715  protected $__groupByDataType = 'array';
716  public $groupBy;
717  protected $__kindsType = 'Google_KindExpression';
718  protected $__kindsDataType = 'array';
719  public $kinds;
720  public $limit;
721  public $offset;
722  protected $__orderType = 'Google_PropertyOrder';
723  protected $__orderDataType = 'array';
724  public $order;
725  protected $__projectionType = 'Google_PropertyExpression';
726  protected $__projectionDataType = 'array';
727  public $projection;
728  public $startCursor;
729  public function setEndCursor( $endCursor) {
730    $this->endCursor = $endCursor;
731  }
732  public function getEndCursor() {
733    return $this->endCursor;
734  }
735  public function setFilter(Google_Filter $filter) {
736    $this->filter = $filter;
737  }
738  public function getFilter() {
739    return $this->filter;
740  }
741  public function setGroupBy(/* array(Google_PropertyReference) */ $groupBy) {
742    $this->assertIsArray($groupBy, 'Google_PropertyReference', __METHOD__);
743    $this->groupBy = $groupBy;
744  }
745  public function getGroupBy() {
746    return $this->groupBy;
747  }
748  public function setKinds(/* array(Google_KindExpression) */ $kinds) {
749    $this->assertIsArray($kinds, 'Google_KindExpression', __METHOD__);
750    $this->kinds = $kinds;
751  }
752  public function getKinds() {
753    return $this->kinds;
754  }
755  public function setLimit( $limit) {
756    $this->limit = $limit;
757  }
758  public function getLimit() {
759    return $this->limit;
760  }
761  public function setOffset( $offset) {
762    $this->offset = $offset;
763  }
764  public function getOffset() {
765    return $this->offset;
766  }
767  public function setOrder(/* array(Google_PropertyOrder) */ $order) {
768    $this->assertIsArray($order, 'Google_PropertyOrder', __METHOD__);
769    $this->order = $order;
770  }
771  public function getOrder() {
772    return $this->order;
773  }
774  public function setProjection(/* array(Google_PropertyExpression) */ $projection) {
775    $this->assertIsArray($projection, 'Google_PropertyExpression', __METHOD__);
776    $this->projection = $projection;
777  }
778  public function getProjection() {
779    return $this->projection;
780  }
781  public function setStartCursor( $startCursor) {
782    $this->startCursor = $startCursor;
783  }
784  public function getStartCursor() {
785    return $this->startCursor;
786  }
787}
788
789class Google_QueryResultBatch extends Google_Model {
790  public $endCursor;
791  public $entityResultType;
792  protected $__entityResultsType = 'Google_EntityResult';
793  protected $__entityResultsDataType = 'array';
794  public $entityResults;
795  public $moreResults;
796  public $skippedResults;
797  public function setEndCursor( $endCursor) {
798    $this->endCursor = $endCursor;
799  }
800  public function getEndCursor() {
801    return $this->endCursor;
802  }
803  public function setEntityResultType( $entityResultType) {
804    $this->entityResultType = $entityResultType;
805  }
806  public function getEntityResultType() {
807    return $this->entityResultType;
808  }
809  public function setEntityResults(/* array(Google_EntityResult) */ $entityResults) {
810    $this->assertIsArray($entityResults, 'Google_EntityResult', __METHOD__);
811    $this->entityResults = $entityResults;
812  }
813  public function getEntityResults() {
814    return $this->entityResults;
815  }
816  public function setMoreResults( $moreResults) {
817    $this->moreResults = $moreResults;
818  }
819  public function getMoreResults() {
820    return $this->moreResults;
821  }
822  public function setSkippedResults( $skippedResults) {
823    $this->skippedResults = $skippedResults;
824  }
825  public function getSkippedResults() {
826    return $this->skippedResults;
827  }
828}
829
830class Google_ReadOptions extends Google_Model {
831  public $readConsistency;
832  public $transaction;
833  public function setReadConsistency( $readConsistency) {
834    $this->readConsistency = $readConsistency;
835  }
836  public function getReadConsistency() {
837    return $this->readConsistency;
838  }
839  public function setTransaction( $transaction) {
840    $this->transaction = $transaction;
841  }
842  public function getTransaction() {
843    return $this->transaction;
844  }
845}
846
847class Google_RollbackRequest extends Google_Model {
848  public $transaction;
849  public function setTransaction( $transaction) {
850    $this->transaction = $transaction;
851  }
852  public function getTransaction() {
853    return $this->transaction;
854  }
855}
856
857class Google_RollbackResponse extends Google_Model {
858  public $kind;
859  public function setKind( $kind) {
860    $this->kind = $kind;
861  }
862  public function getKind() {
863    return $this->kind;
864  }
865}
866
867class Google_RunQueryRequest extends Google_Model {
868  protected $__partitionIdType = 'Google_PartitionId';
869  protected $__partitionIdDataType = '';
870  public $partitionId;
871  protected $__queryType = 'Google_Query';
872  protected $__queryDataType = '';
873  public $query;
874  protected $__readOptionsType = 'Google_ReadOptions';
875  protected $__readOptionsDataType = '';
876  public $readOptions;
877  public function setPartitionId(Google_PartitionId $partitionId) {
878    $this->partitionId = $partitionId;
879  }
880  public function getPartitionId() {
881    return $this->partitionId;
882  }
883  public function setQuery(Google_Query $query) {
884    $this->query = $query;
885  }
886  public function getQuery() {
887    return $this->query;
888  }
889  public function setReadOptions(Google_ReadOptions $readOptions) {
890    $this->readOptions = $readOptions;
891  }
892  public function getReadOptions() {
893    return $this->readOptions;
894  }
895}
896
897class Google_RunQueryResponse extends Google_Model {
898  protected $__batchType = 'Google_QueryResultBatch';
899  protected $__batchDataType = '';
900  public $batch;
901  public $kind;
902  public function setBatch(Google_QueryResultBatch $batch) {
903    $this->batch = $batch;
904  }
905  public function getBatch() {
906    return $this->batch;
907  }
908  public function setKind( $kind) {
909    $this->kind = $kind;
910  }
911  public function getKind() {
912    return $this->kind;
913  }
914}
915
916class Google_Value extends Google_Model {
917  public $blobKeyValue;
918  public $blobValue;
919  public $booleanValue;
920  public $dateTimeValue;
921  public $doubleValue;
922  protected $__entityValueType = 'Google_Entity';
923  protected $__entityValueDataType = '';
924  public $entityValue;
925  public $indexed;
926  public $integerValue;
927  protected $__keyValueType = 'Google_Key';
928  protected $__keyValueDataType = '';
929  public $keyValue;
930  public $meaning;
931  public $stringValue;
932  public function setBlobKeyValue( $blobKeyValue) {
933    $this->blobKeyValue = $blobKeyValue;
934  }
935  public function getBlobKeyValue() {
936    return $this->blobKeyValue;
937  }
938  public function setBlobValue( $blobValue) {
939    $this->blobValue = $blobValue;
940  }
941  public function getBlobValue() {
942    return $this->blobValue;
943  }
944  public function setBooleanValue( $booleanValue) {
945    $this->booleanValue = $booleanValue;
946  }
947  public function getBooleanValue() {
948    return $this->booleanValue;
949  }
950  public function setDateTimeValue( $dateTimeValue) {
951    $this->dateTimeValue = $dateTimeValue;
952  }
953  public function getDateTimeValue() {
954    return $this->dateTimeValue;
955  }
956  public function setDoubleValue( $doubleValue) {
957    $this->doubleValue = $doubleValue;
958  }
959  public function getDoubleValue() {
960    return $this->doubleValue;
961  }
962  public function setEntityValue(Google_Entity $entityValue) {
963    $this->entityValue = $entityValue;
964  }
965  public function getEntityValue() {
966    return $this->entityValue;
967  }
968  public function setIndexed( $indexed) {
969    $this->indexed = $indexed;
970  }
971  public function getIndexed() {
972    return $this->indexed;
973  }
974  public function setIntegerValue( $integerValue) {
975    $this->integerValue = $integerValue;
976  }
977  public function getIntegerValue() {
978    return $this->integerValue;
979  }
980  public function setKeyValue(Google_Key $keyValue) {
981    $this->keyValue = $keyValue;
982  }
983  public function getKeyValue() {
984    return $this->keyValue;
985  }
986  public function setMeaning( $meaning) {
987    $this->meaning = $meaning;
988  }
989  public function getMeaning() {
990    return $this->meaning;
991  }
992  public function setStringValue( $stringValue) {
993    $this->stringValue = $stringValue;
994  }
995  public function getStringValue() {
996    return $this->stringValue;
997  }
998}
999