Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]

   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 Datastore (v1beta2).
  20   *
  21   * <p>
  22   * API for accessing Google Cloud Datastore.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://developers.google.com/datastore/" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  #[AllowDynamicProperties]
  32  class Google_Service_Datastore extends Google_Service
  33  {
  34    /** View and manage your data across Google Cloud Platform services. */
  35    const CLOUD_PLATFORM =
  36        "https://www.googleapis.com/auth/cloud-platform";
  37    /** View and manage your Google Cloud Datastore data. */
  38    const DATASTORE =
  39        "https://www.googleapis.com/auth/datastore";
  40    /** View your email address. */
  41    const USERINFO_EMAIL =
  42        "https://www.googleapis.com/auth/userinfo.email";
  43  
  44    public $datasets;
  45    
  46  
  47    /**
  48     * Constructs the internal representation of the Datastore service.
  49     *
  50     * @param Google_Client $client
  51     */
  52    public function __construct(Google_Client $client)
  53    {
  54      parent::__construct($client);
  55      $this->rootUrl = 'https://www.googleapis.com/';
  56      $this->servicePath = 'datastore/v1beta2/datasets/';
  57      $this->version = 'v1beta2';
  58      $this->serviceName = 'datastore';
  59  
  60      $this->datasets = new Google_Service_Datastore_Datasets_Resource(
  61          $this,
  62          $this->serviceName,
  63          'datasets',
  64          array(
  65            'methods' => array(
  66              'allocateIds' => array(
  67                'path' => '{datasetId}/allocateIds',
  68                'httpMethod' => 'POST',
  69                'parameters' => array(
  70                  'datasetId' => array(
  71                    'location' => 'path',
  72                    'type' => 'string',
  73                    'required' => true,
  74                  ),
  75                ),
  76              ),'beginTransaction' => array(
  77                'path' => '{datasetId}/beginTransaction',
  78                'httpMethod' => 'POST',
  79                'parameters' => array(
  80                  'datasetId' => array(
  81                    'location' => 'path',
  82                    'type' => 'string',
  83                    'required' => true,
  84                  ),
  85                ),
  86              ),'commit' => array(
  87                'path' => '{datasetId}/commit',
  88                'httpMethod' => 'POST',
  89                'parameters' => array(
  90                  'datasetId' => array(
  91                    'location' => 'path',
  92                    'type' => 'string',
  93                    'required' => true,
  94                  ),
  95                ),
  96              ),'lookup' => array(
  97                'path' => '{datasetId}/lookup',
  98                'httpMethod' => 'POST',
  99                'parameters' => array(
 100                  'datasetId' => array(
 101                    'location' => 'path',
 102                    'type' => 'string',
 103                    'required' => true,
 104                  ),
 105                ),
 106              ),'rollback' => array(
 107                'path' => '{datasetId}/rollback',
 108                'httpMethod' => 'POST',
 109                'parameters' => array(
 110                  'datasetId' => array(
 111                    'location' => 'path',
 112                    'type' => 'string',
 113                    'required' => true,
 114                  ),
 115                ),
 116              ),'runQuery' => array(
 117                'path' => '{datasetId}/runQuery',
 118                'httpMethod' => 'POST',
 119                'parameters' => array(
 120                  'datasetId' => array(
 121                    'location' => 'path',
 122                    'type' => 'string',
 123                    'required' => true,
 124                  ),
 125                ),
 126              ),
 127            )
 128          )
 129      );
 130    }
 131  }
 132  
 133  
 134  /**
 135   * The "datasets" collection of methods.
 136   * Typical usage is:
 137   *  <code>
 138   *   $datastoreService = new Google_Service_Datastore(...);
 139   *   $datasets = $datastoreService->datasets;
 140   *  </code>
 141   */
 142  #[AllowDynamicProperties]
 143  class Google_Service_Datastore_Datasets_Resource extends Google_Service_Resource
 144  {
 145  
 146    /**
 147     * Allocate IDs for incomplete keys (useful for referencing an entity before it
 148     * is inserted). (datasets.allocateIds)
 149     *
 150     * @param string $datasetId Identifies the dataset.
 151     * @param Google_AllocateIdsRequest $postBody
 152     * @param array $optParams Optional parameters.
 153     * @return Google_Service_Datastore_AllocateIdsResponse
 154     */
 155    public function allocateIds($datasetId, Google_Service_Datastore_AllocateIdsRequest $postBody, $optParams = array())
 156    {
 157      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
 158      $params = array_merge($params, $optParams);
 159      return $this->call('allocateIds', array($params), "Google_Service_Datastore_AllocateIdsResponse");
 160    }
 161  
 162    /**
 163     * Begin a new transaction. (datasets.beginTransaction)
 164     *
 165     * @param string $datasetId Identifies the dataset.
 166     * @param Google_BeginTransactionRequest $postBody
 167     * @param array $optParams Optional parameters.
 168     * @return Google_Service_Datastore_BeginTransactionResponse
 169     */
 170    public function beginTransaction($datasetId, Google_Service_Datastore_BeginTransactionRequest $postBody, $optParams = array())
 171    {
 172      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
 173      $params = array_merge($params, $optParams);
 174      return $this->call('beginTransaction', array($params), "Google_Service_Datastore_BeginTransactionResponse");
 175    }
 176  
 177    /**
 178     * Commit a transaction, optionally creating, deleting or modifying some
 179     * entities. (datasets.commit)
 180     *
 181     * @param string $datasetId Identifies the dataset.
 182     * @param Google_CommitRequest $postBody
 183     * @param array $optParams Optional parameters.
 184     * @return Google_Service_Datastore_CommitResponse
 185     */
 186    public function commit($datasetId, Google_Service_Datastore_CommitRequest $postBody, $optParams = array())
 187    {
 188      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
 189      $params = array_merge($params, $optParams);
 190      return $this->call('commit', array($params), "Google_Service_Datastore_CommitResponse");
 191    }
 192  
 193    /**
 194     * Look up some entities by key. (datasets.lookup)
 195     *
 196     * @param string $datasetId Identifies the dataset.
 197     * @param Google_LookupRequest $postBody
 198     * @param array $optParams Optional parameters.
 199     * @return Google_Service_Datastore_LookupResponse
 200     */
 201    public function lookup($datasetId, Google_Service_Datastore_LookupRequest $postBody, $optParams = array())
 202    {
 203      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
 204      $params = array_merge($params, $optParams);
 205      return $this->call('lookup', array($params), "Google_Service_Datastore_LookupResponse");
 206    }
 207  
 208    /**
 209     * Roll back a transaction. (datasets.rollback)
 210     *
 211     * @param string $datasetId Identifies the dataset.
 212     * @param Google_RollbackRequest $postBody
 213     * @param array $optParams Optional parameters.
 214     * @return Google_Service_Datastore_RollbackResponse
 215     */
 216    public function rollback($datasetId, Google_Service_Datastore_RollbackRequest $postBody, $optParams = array())
 217    {
 218      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
 219      $params = array_merge($params, $optParams);
 220      return $this->call('rollback', array($params), "Google_Service_Datastore_RollbackResponse");
 221    }
 222  
 223    /**
 224     * Query for entities. (datasets.runQuery)
 225     *
 226     * @param string $datasetId Identifies the dataset.
 227     * @param Google_RunQueryRequest $postBody
 228     * @param array $optParams Optional parameters.
 229     * @return Google_Service_Datastore_RunQueryResponse
 230     */
 231    public function runQuery($datasetId, Google_Service_Datastore_RunQueryRequest $postBody, $optParams = array())
 232    {
 233      $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
 234      $params = array_merge($params, $optParams);
 235      return $this->call('runQuery', array($params), "Google_Service_Datastore_RunQueryResponse");
 236    }
 237  }
 238  
 239  
 240  
 241  
 242  #[AllowDynamicProperties]
 243  class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection
 244  {
 245    protected $collection_key = 'keys';
 246    protected $internal_gapi_mappings = array(
 247    );
 248    protected $keysType = 'Google_Service_Datastore_Key';
 249    protected $keysDataType = 'array';
 250  
 251  
 252    public function setKeys($keys)
 253    {
 254      $this->keys = $keys;
 255    }
 256    public function getKeys()
 257    {
 258      return $this->keys;
 259    }
 260  }
 261  
 262  #[AllowDynamicProperties]
 263  class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection
 264  {
 265    protected $collection_key = 'keys';
 266    protected $internal_gapi_mappings = array(
 267    );
 268    protected $headerType = 'Google_Service_Datastore_ResponseHeader';
 269    protected $headerDataType = '';
 270    protected $keysType = 'Google_Service_Datastore_Key';
 271    protected $keysDataType = 'array';
 272  
 273  
 274    public function setHeader(Google_Service_Datastore_ResponseHeader $header)
 275    {
 276      $this->header = $header;
 277    }
 278    public function getHeader()
 279    {
 280      return $this->header;
 281    }
 282    public function setKeys($keys)
 283    {
 284      $this->keys = $keys;
 285    }
 286    public function getKeys()
 287    {
 288      return $this->keys;
 289    }
 290  }
 291  
 292  #[AllowDynamicProperties]
 293  class Google_Service_Datastore_BeginTransactionRequest extends Google_Model
 294  {
 295    protected $internal_gapi_mappings = array(
 296    );
 297    public $isolationLevel;
 298  
 299  
 300    public function setIsolationLevel($isolationLevel)
 301    {
 302      $this->isolationLevel = $isolationLevel;
 303    }
 304    public function getIsolationLevel()
 305    {
 306      return $this->isolationLevel;
 307    }
 308  }
 309  
 310  #[AllowDynamicProperties]
 311  class Google_Service_Datastore_BeginTransactionResponse extends Google_Model
 312  {
 313    protected $internal_gapi_mappings = array(
 314    );
 315    protected $headerType = 'Google_Service_Datastore_ResponseHeader';
 316    protected $headerDataType = '';
 317    public $transaction;
 318  
 319  
 320    public function setHeader(Google_Service_Datastore_ResponseHeader $header)
 321    {
 322      $this->header = $header;
 323    }
 324    public function getHeader()
 325    {
 326      return $this->header;
 327    }
 328    public function setTransaction($transaction)
 329    {
 330      $this->transaction = $transaction;
 331    }
 332    public function getTransaction()
 333    {
 334      return $this->transaction;
 335    }
 336  }
 337  
 338  #[AllowDynamicProperties]
 339  class Google_Service_Datastore_CommitRequest extends Google_Model
 340  {
 341    protected $internal_gapi_mappings = array(
 342    );
 343    public $ignoreReadOnly;
 344    public $mode;
 345    protected $mutationType = 'Google_Service_Datastore_Mutation';
 346    protected $mutationDataType = '';
 347    public $transaction;
 348  
 349  
 350    public function setIgnoreReadOnly($ignoreReadOnly)
 351    {
 352      $this->ignoreReadOnly = $ignoreReadOnly;
 353    }
 354    public function getIgnoreReadOnly()
 355    {
 356      return $this->ignoreReadOnly;
 357    }
 358    public function setMode($mode)
 359    {
 360      $this->mode = $mode;
 361    }
 362    public function getMode()
 363    {
 364      return $this->mode;
 365    }
 366    public function setMutation(Google_Service_Datastore_Mutation $mutation)
 367    {
 368      $this->mutation = $mutation;
 369    }
 370    public function getMutation()
 371    {
 372      return $this->mutation;
 373    }
 374    public function setTransaction($transaction)
 375    {
 376      $this->transaction = $transaction;
 377    }
 378    public function getTransaction()
 379    {
 380      return $this->transaction;
 381    }
 382  }
 383  
 384  #[AllowDynamicProperties]
 385  class Google_Service_Datastore_CommitResponse extends Google_Model
 386  {
 387    protected $internal_gapi_mappings = array(
 388    );
 389    protected $headerType = 'Google_Service_Datastore_ResponseHeader';
 390    protected $headerDataType = '';
 391    protected $mutationResultType = 'Google_Service_Datastore_MutationResult';
 392    protected $mutationResultDataType = '';
 393  
 394  
 395    public function setHeader(Google_Service_Datastore_ResponseHeader $header)
 396    {
 397      $this->header = $header;
 398    }
 399    public function getHeader()
 400    {
 401      return $this->header;
 402    }
 403    public function setMutationResult(Google_Service_Datastore_MutationResult $mutationResult)
 404    {
 405      $this->mutationResult = $mutationResult;
 406    }
 407    public function getMutationResult()
 408    {
 409      return $this->mutationResult;
 410    }
 411  }
 412  
 413  #[AllowDynamicProperties]
 414  class Google_Service_Datastore_CompositeFilter extends Google_Collection
 415  {
 416    protected $collection_key = 'filters';
 417    protected $internal_gapi_mappings = array(
 418    );
 419    protected $filtersType = 'Google_Service_Datastore_Filter';
 420    protected $filtersDataType = 'array';
 421    public $operator;
 422  
 423  
 424    public function setFilters($filters)
 425    {
 426      $this->filters = $filters;
 427    }
 428    public function getFilters()
 429    {
 430      return $this->filters;
 431    }
 432    public function setOperator($operator)
 433    {
 434      $this->operator = $operator;
 435    }
 436    public function getOperator()
 437    {
 438      return $this->operator;
 439    }
 440  }
 441  
 442  #[AllowDynamicProperties]
 443  class Google_Service_Datastore_Entity extends Google_Model
 444  {
 445    protected $internal_gapi_mappings = array(
 446    );
 447    protected $keyType = 'Google_Service_Datastore_Key';
 448    protected $keyDataType = '';
 449    protected $propertiesType = 'Google_Service_Datastore_Property';
 450    protected $propertiesDataType = 'map';
 451  
 452  
 453    public function setKey(Google_Service_Datastore_Key $key)
 454    {
 455      $this->key = $key;
 456    }
 457    public function getKey()
 458    {
 459      return $this->key;
 460    }
 461    public function setProperties($properties)
 462    {
 463      $this->properties = $properties;
 464    }
 465    public function getProperties()
 466    {
 467      return $this->properties;
 468    }
 469  }
 470  
 471  #[AllowDynamicProperties]
 472  class Google_Service_Datastore_EntityProperties extends Google_Model
 473  {
 474  }
 475  
 476  #[AllowDynamicProperties]
 477  class Google_Service_Datastore_EntityResult extends Google_Model
 478  {
 479    protected $internal_gapi_mappings = array(
 480    );
 481    protected $entityType = 'Google_Service_Datastore_Entity';
 482    protected $entityDataType = '';
 483  
 484  
 485    public function setEntity(Google_Service_Datastore_Entity $entity)
 486    {
 487      $this->entity = $entity;
 488    }
 489    public function getEntity()
 490    {
 491      return $this->entity;
 492    }
 493  }
 494  
 495  #[AllowDynamicProperties]
 496  class Google_Service_Datastore_Filter extends Google_Model
 497  {
 498    protected $internal_gapi_mappings = array(
 499    );
 500    protected $compositeFilterType = 'Google_Service_Datastore_CompositeFilter';
 501    protected $compositeFilterDataType = '';
 502    protected $propertyFilterType = 'Google_Service_Datastore_PropertyFilter';
 503    protected $propertyFilterDataType = '';
 504  
 505  
 506    public function setCompositeFilter(Google_Service_Datastore_CompositeFilter $compositeFilter)
 507    {
 508      $this->compositeFilter = $compositeFilter;
 509    }
 510    public function getCompositeFilter()
 511    {
 512      return $this->compositeFilter;
 513    }
 514    public function setPropertyFilter(Google_Service_Datastore_PropertyFilter $propertyFilter)
 515    {
 516      $this->propertyFilter = $propertyFilter;
 517    }
 518    public function getPropertyFilter()
 519    {
 520      return $this->propertyFilter;
 521    }
 522  }
 523  
 524  #[AllowDynamicProperties]
 525  class Google_Service_Datastore_GqlQuery extends Google_Collection
 526  {
 527    protected $collection_key = 'numberArgs';
 528    protected $internal_gapi_mappings = array(
 529    );
 530    public $allowLiteral;
 531    protected $nameArgsType = 'Google_Service_Datastore_GqlQueryArg';
 532    protected $nameArgsDataType = 'array';
 533    protected $numberArgsType = 'Google_Service_Datastore_GqlQueryArg';
 534    protected $numberArgsDataType = 'array';
 535    public $queryString;
 536  
 537  
 538    public function setAllowLiteral($allowLiteral)
 539    {
 540      $this->allowLiteral = $allowLiteral;
 541    }
 542    public function getAllowLiteral()
 543    {
 544      return $this->allowLiteral;
 545    }
 546    public function setNameArgs($nameArgs)
 547    {
 548      $this->nameArgs = $nameArgs;
 549    }
 550    public function getNameArgs()
 551    {
 552      return $this->nameArgs;
 553    }
 554    public function setNumberArgs($numberArgs)
 555    {
 556      $this->numberArgs = $numberArgs;
 557    }
 558    public function getNumberArgs()
 559    {
 560      return $this->numberArgs;
 561    }
 562    public function setQueryString($queryString)
 563    {
 564      $this->queryString = $queryString;
 565    }
 566    public function getQueryString()
 567    {
 568      return $this->queryString;
 569    }
 570  }
 571  
 572  #[AllowDynamicProperties]
 573  class Google_Service_Datastore_GqlQueryArg extends Google_Model
 574  {
 575    protected $internal_gapi_mappings = array(
 576    );
 577    public $cursor;
 578    public $name;
 579    protected $valueType = 'Google_Service_Datastore_Value';
 580    protected $valueDataType = '';
 581  
 582  
 583    public function setCursor($cursor)
 584    {
 585      $this->cursor = $cursor;
 586    }
 587    public function getCursor()
 588    {
 589      return $this->cursor;
 590    }
 591    public function setName($name)
 592    {
 593      $this->name = $name;
 594    }
 595    public function getName()
 596    {
 597      return $this->name;
 598    }
 599    public function setValue(Google_Service_Datastore_Value $value)
 600    {
 601      $this->value = $value;
 602    }
 603    public function getValue()
 604    {
 605      return $this->value;
 606    }
 607  }
 608  
 609  #[AllowDynamicProperties]
 610  class Google_Service_Datastore_Key extends Google_Collection
 611  {
 612    protected $collection_key = 'path';
 613    protected $internal_gapi_mappings = array(
 614    );
 615    protected $partitionIdType = 'Google_Service_Datastore_PartitionId';
 616    protected $partitionIdDataType = '';
 617    protected $pathType = 'Google_Service_Datastore_KeyPathElement';
 618    protected $pathDataType = 'array';
 619  
 620  
 621    public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId)
 622    {
 623      $this->partitionId = $partitionId;
 624    }
 625    public function getPartitionId()
 626    {
 627      return $this->partitionId;
 628    }
 629    public function setPath($path)
 630    {
 631      $this->path = $path;
 632    }
 633    public function getPath()
 634    {
 635      return $this->path;
 636    }
 637  }
 638  
 639  #[AllowDynamicProperties]
 640  class Google_Service_Datastore_KeyPathElement extends Google_Model
 641  {
 642    protected $internal_gapi_mappings = array(
 643    );
 644    public $id;
 645    public $kind;
 646    public $name;
 647  
 648  
 649    public function setId($id)
 650    {
 651      $this->id = $id;
 652    }
 653    public function getId()
 654    {
 655      return $this->id;
 656    }
 657    public function setKind($kind)
 658    {
 659      $this->kind = $kind;
 660    }
 661    public function getKind()
 662    {
 663      return $this->kind;
 664    }
 665    public function setName($name)
 666    {
 667      $this->name = $name;
 668    }
 669    public function getName()
 670    {
 671      return $this->name;
 672    }
 673  }
 674  
 675  #[AllowDynamicProperties]
 676  class Google_Service_Datastore_KindExpression extends Google_Model
 677  {
 678    protected $internal_gapi_mappings = array(
 679    );
 680    public $name;
 681  
 682  
 683    public function setName($name)
 684    {
 685      $this->name = $name;
 686    }
 687    public function getName()
 688    {
 689      return $this->name;
 690    }
 691  }
 692  
 693  #[AllowDynamicProperties]
 694  class Google_Service_Datastore_LookupRequest extends Google_Collection
 695  {
 696    protected $collection_key = 'keys';
 697    protected $internal_gapi_mappings = array(
 698    );
 699    protected $keysType = 'Google_Service_Datastore_Key';
 700    protected $keysDataType = 'array';
 701    protected $readOptionsType = 'Google_Service_Datastore_ReadOptions';
 702    protected $readOptionsDataType = '';
 703  
 704  
 705    public function setKeys($keys)
 706    {
 707      $this->keys = $keys;
 708    }
 709    public function getKeys()
 710    {
 711      return $this->keys;
 712    }
 713    public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions)
 714    {
 715      $this->readOptions = $readOptions;
 716    }
 717    public function getReadOptions()
 718    {
 719      return $this->readOptions;
 720    }
 721  }
 722  
 723  #[AllowDynamicProperties]
 724  class Google_Service_Datastore_LookupResponse extends Google_Collection
 725  {
 726    protected $collection_key = 'missing';
 727    protected $internal_gapi_mappings = array(
 728    );
 729    protected $deferredType = 'Google_Service_Datastore_Key';
 730    protected $deferredDataType = 'array';
 731    protected $foundType = 'Google_Service_Datastore_EntityResult';
 732    protected $foundDataType = 'array';
 733    protected $headerType = 'Google_Service_Datastore_ResponseHeader';
 734    protected $headerDataType = '';
 735    protected $missingType = 'Google_Service_Datastore_EntityResult';
 736    protected $missingDataType = 'array';
 737  
 738  
 739    public function setDeferred($deferred)
 740    {
 741      $this->deferred = $deferred;
 742    }
 743    public function getDeferred()
 744    {
 745      return $this->deferred;
 746    }
 747    public function setFound($found)
 748    {
 749      $this->found = $found;
 750    }
 751    public function getFound()
 752    {
 753      return $this->found;
 754    }
 755    public function setHeader(Google_Service_Datastore_ResponseHeader $header)
 756    {
 757      $this->header = $header;
 758    }
 759    public function getHeader()
 760    {
 761      return $this->header;
 762    }
 763    public function setMissing($missing)
 764    {
 765      $this->missing = $missing;
 766    }
 767    public function getMissing()
 768    {
 769      return $this->missing;
 770    }
 771  }
 772  
 773  #[AllowDynamicProperties]
 774  class Google_Service_Datastore_Mutation extends Google_Collection
 775  {
 776    protected $collection_key = 'upsert';
 777    protected $internal_gapi_mappings = array(
 778    );
 779    protected $deleteType = 'Google_Service_Datastore_Key';
 780    protected $deleteDataType = 'array';
 781    public $force;
 782    protected $insertType = 'Google_Service_Datastore_Entity';
 783    protected $insertDataType = 'array';
 784    protected $insertAutoIdType = 'Google_Service_Datastore_Entity';
 785    protected $insertAutoIdDataType = 'array';
 786    protected $updateType = 'Google_Service_Datastore_Entity';
 787    protected $updateDataType = 'array';
 788    protected $upsertType = 'Google_Service_Datastore_Entity';
 789    protected $upsertDataType = 'array';
 790  
 791  
 792    public function setDelete($delete)
 793    {
 794      $this->delete = $delete;
 795    }
 796    public function getDelete()
 797    {
 798      return $this->delete;
 799    }
 800    public function setForce($force)
 801    {
 802      $this->force = $force;
 803    }
 804    public function getForce()
 805    {
 806      return $this->force;
 807    }
 808    public function setInsert($insert)
 809    {
 810      $this->insert = $insert;
 811    }
 812    public function getInsert()
 813    {
 814      return $this->insert;
 815    }
 816    public function setInsertAutoId($insertAutoId)
 817    {
 818      $this->insertAutoId = $insertAutoId;
 819    }
 820    public function getInsertAutoId()
 821    {
 822      return $this->insertAutoId;
 823    }
 824    public function setUpdate($update)
 825    {
 826      $this->update = $update;
 827    }
 828    public function getUpdate()
 829    {
 830      return $this->update;
 831    }
 832    public function setUpsert($upsert)
 833    {
 834      $this->upsert = $upsert;
 835    }
 836    public function getUpsert()
 837    {
 838      return $this->upsert;
 839    }
 840  }
 841  
 842  #[AllowDynamicProperties]
 843  class Google_Service_Datastore_MutationResult extends Google_Collection
 844  {
 845    protected $collection_key = 'insertAutoIdKeys';
 846    protected $internal_gapi_mappings = array(
 847    );
 848    public $indexUpdates;
 849    protected $insertAutoIdKeysType = 'Google_Service_Datastore_Key';
 850    protected $insertAutoIdKeysDataType = 'array';
 851  
 852  
 853    public function setIndexUpdates($indexUpdates)
 854    {
 855      $this->indexUpdates = $indexUpdates;
 856    }
 857    public function getIndexUpdates()
 858    {
 859      return $this->indexUpdates;
 860    }
 861    public function setInsertAutoIdKeys($insertAutoIdKeys)
 862    {
 863      $this->insertAutoIdKeys = $insertAutoIdKeys;
 864    }
 865    public function getInsertAutoIdKeys()
 866    {
 867      return $this->insertAutoIdKeys;
 868    }
 869  }
 870  
 871  #[AllowDynamicProperties]
 872  class Google_Service_Datastore_PartitionId extends Google_Model
 873  {
 874    protected $internal_gapi_mappings = array(
 875    );
 876    public $datasetId;
 877    public $namespace;
 878  
 879  
 880    public function setDatasetId($datasetId)
 881    {
 882      $this->datasetId = $datasetId;
 883    }
 884    public function getDatasetId()
 885    {
 886      return $this->datasetId;
 887    }
 888    public function setNamespace($namespace)
 889    {
 890      $this->namespace = $namespace;
 891    }
 892    public function getNamespace()
 893    {
 894      return $this->namespace;
 895    }
 896  }
 897  
 898  #[AllowDynamicProperties]
 899  class Google_Service_Datastore_Property extends Google_Collection
 900  {
 901    protected $collection_key = 'listValue';
 902    protected $internal_gapi_mappings = array(
 903    );
 904    public $blobKeyValue;
 905    public $blobValue;
 906    public $booleanValue;
 907    public $dateTimeValue;
 908    public $doubleValue;
 909    protected $entityValueType = 'Google_Service_Datastore_Entity';
 910    protected $entityValueDataType = '';
 911    public $indexed;
 912    public $integerValue;
 913    protected $keyValueType = 'Google_Service_Datastore_Key';
 914    protected $keyValueDataType = '';
 915    protected $listValueType = 'Google_Service_Datastore_Value';
 916    protected $listValueDataType = 'array';
 917    public $meaning;
 918    public $stringValue;
 919  
 920  
 921    public function setBlobKeyValue($blobKeyValue)
 922    {
 923      $this->blobKeyValue = $blobKeyValue;
 924    }
 925    public function getBlobKeyValue()
 926    {
 927      return $this->blobKeyValue;
 928    }
 929    public function setBlobValue($blobValue)
 930    {
 931      $this->blobValue = $blobValue;
 932    }
 933    public function getBlobValue()
 934    {
 935      return $this->blobValue;
 936    }
 937    public function setBooleanValue($booleanValue)
 938    {
 939      $this->booleanValue = $booleanValue;
 940    }
 941    public function getBooleanValue()
 942    {
 943      return $this->booleanValue;
 944    }
 945    public function setDateTimeValue($dateTimeValue)
 946    {
 947      $this->dateTimeValue = $dateTimeValue;
 948    }
 949    public function getDateTimeValue()
 950    {
 951      return $this->dateTimeValue;
 952    }
 953    public function setDoubleValue($doubleValue)
 954    {
 955      $this->doubleValue = $doubleValue;
 956    }
 957    public function getDoubleValue()
 958    {
 959      return $this->doubleValue;
 960    }
 961    public function setEntityValue(Google_Service_Datastore_Entity $entityValue)
 962    {
 963      $this->entityValue = $entityValue;
 964    }
 965    public function getEntityValue()
 966    {
 967      return $this->entityValue;
 968    }
 969    public function setIndexed($indexed)
 970    {
 971      $this->indexed = $indexed;
 972    }
 973    public function getIndexed()
 974    {
 975      return $this->indexed;
 976    }
 977    public function setIntegerValue($integerValue)
 978    {
 979      $this->integerValue = $integerValue;
 980    }
 981    public function getIntegerValue()
 982    {
 983      return $this->integerValue;
 984    }
 985    public function setKeyValue(Google_Service_Datastore_Key $keyValue)
 986    {
 987      $this->keyValue = $keyValue;
 988    }
 989    public function getKeyValue()
 990    {
 991      return $this->keyValue;
 992    }
 993    public function setListValue($listValue)
 994    {
 995      $this->listValue = $listValue;
 996    }
 997    public function getListValue()
 998    {
 999      return $this->listValue;
1000    }
1001    public function setMeaning($meaning)
1002    {
1003      $this->meaning = $meaning;
1004    }
1005    public function getMeaning()
1006    {
1007      return $this->meaning;
1008    }
1009    public function setStringValue($stringValue)
1010    {
1011      $this->stringValue = $stringValue;
1012    }
1013    public function getStringValue()
1014    {
1015      return $this->stringValue;
1016    }
1017  }
1018  
1019  #[AllowDynamicProperties]
1020  class Google_Service_Datastore_PropertyExpression extends Google_Model
1021  {
1022    protected $internal_gapi_mappings = array(
1023    );
1024    public $aggregationFunction;
1025    protected $propertyType = 'Google_Service_Datastore_PropertyReference';
1026    protected $propertyDataType = '';
1027  
1028  
1029    public function setAggregationFunction($aggregationFunction)
1030    {
1031      $this->aggregationFunction = $aggregationFunction;
1032    }
1033    public function getAggregationFunction()
1034    {
1035      return $this->aggregationFunction;
1036    }
1037    public function setProperty(Google_Service_Datastore_PropertyReference $property)
1038    {
1039      $this->property = $property;
1040    }
1041    public function getProperty()
1042    {
1043      return $this->property;
1044    }
1045  }
1046  
1047  #[AllowDynamicProperties]
1048  class Google_Service_Datastore_PropertyFilter extends Google_Model
1049  {
1050    protected $internal_gapi_mappings = array(
1051    );
1052    public $operator;
1053    protected $propertyType = 'Google_Service_Datastore_PropertyReference';
1054    protected $propertyDataType = '';
1055    protected $valueType = 'Google_Service_Datastore_Value';
1056    protected $valueDataType = '';
1057  
1058  
1059    public function setOperator($operator)
1060    {
1061      $this->operator = $operator;
1062    }
1063    public function getOperator()
1064    {
1065      return $this->operator;
1066    }
1067    public function setProperty(Google_Service_Datastore_PropertyReference $property)
1068    {
1069      $this->property = $property;
1070    }
1071    public function getProperty()
1072    {
1073      return $this->property;
1074    }
1075    public function setValue(Google_Service_Datastore_Value $value)
1076    {
1077      $this->value = $value;
1078    }
1079    public function getValue()
1080    {
1081      return $this->value;
1082    }
1083  }
1084  
1085  #[AllowDynamicProperties]
1086  class Google_Service_Datastore_PropertyOrder extends Google_Model
1087  {
1088    protected $internal_gapi_mappings = array(
1089    );
1090    public $direction;
1091    protected $propertyType = 'Google_Service_Datastore_PropertyReference';
1092    protected $propertyDataType = '';
1093  
1094  
1095    public function setDirection($direction)
1096    {
1097      $this->direction = $direction;
1098    }
1099    public function getDirection()
1100    {
1101      return $this->direction;
1102    }
1103    public function setProperty(Google_Service_Datastore_PropertyReference $property)
1104    {
1105      $this->property = $property;
1106    }
1107    public function getProperty()
1108    {
1109      return $this->property;
1110    }
1111  }
1112  
1113  #[AllowDynamicProperties]
1114  class Google_Service_Datastore_PropertyReference extends Google_Model
1115  {
1116    protected $internal_gapi_mappings = array(
1117    );
1118    public $name;
1119  
1120  
1121    public function setName($name)
1122    {
1123      $this->name = $name;
1124    }
1125    public function getName()
1126    {
1127      return $this->name;
1128    }
1129  }
1130  
1131  #[AllowDynamicProperties]
1132  class Google_Service_Datastore_Query extends Google_Collection
1133  {
1134    protected $collection_key = 'projection';
1135    protected $internal_gapi_mappings = array(
1136    );
1137    public $endCursor;
1138    protected $filterType = 'Google_Service_Datastore_Filter';
1139    protected $filterDataType = '';
1140    protected $groupByType = 'Google_Service_Datastore_PropertyReference';
1141    protected $groupByDataType = 'array';
1142    protected $kindsType = 'Google_Service_Datastore_KindExpression';
1143    protected $kindsDataType = 'array';
1144    public $limit;
1145    public $offset;
1146    protected $orderType = 'Google_Service_Datastore_PropertyOrder';
1147    protected $orderDataType = 'array';
1148    protected $projectionType = 'Google_Service_Datastore_PropertyExpression';
1149    protected $projectionDataType = 'array';
1150    public $startCursor;
1151  
1152  
1153    public function setEndCursor($endCursor)
1154    {
1155      $this->endCursor = $endCursor;
1156    }
1157    public function getEndCursor()
1158    {
1159      return $this->endCursor;
1160    }
1161    public function setFilter(Google_Service_Datastore_Filter $filter)
1162    {
1163      $this->filter = $filter;
1164    }
1165    public function getFilter()
1166    {
1167      return $this->filter;
1168    }
1169    public function setGroupBy($groupBy)
1170    {
1171      $this->groupBy = $groupBy;
1172    }
1173    public function getGroupBy()
1174    {
1175      return $this->groupBy;
1176    }
1177    public function setKinds($kinds)
1178    {
1179      $this->kinds = $kinds;
1180    }
1181    public function getKinds()
1182    {
1183      return $this->kinds;
1184    }
1185    public function setLimit($limit)
1186    {
1187      $this->limit = $limit;
1188    }
1189    public function getLimit()
1190    {
1191      return $this->limit;
1192    }
1193    public function setOffset($offset)
1194    {
1195      $this->offset = $offset;
1196    }
1197    public function getOffset()
1198    {
1199      return $this->offset;
1200    }
1201    public function setOrder($order)
1202    {
1203      $this->order = $order;
1204    }
1205    public function getOrder()
1206    {
1207      return $this->order;
1208    }
1209    public function setProjection($projection)
1210    {
1211      $this->projection = $projection;
1212    }
1213    public function getProjection()
1214    {
1215      return $this->projection;
1216    }
1217    public function setStartCursor($startCursor)
1218    {
1219      $this->startCursor = $startCursor;
1220    }
1221    public function getStartCursor()
1222    {
1223      return $this->startCursor;
1224    }
1225  }
1226  
1227  #[AllowDynamicProperties]
1228  class Google_Service_Datastore_QueryResultBatch extends Google_Collection
1229  {
1230    protected $collection_key = 'entityResults';
1231    protected $internal_gapi_mappings = array(
1232    );
1233    public $endCursor;
1234    public $entityResultType;
1235    protected $entityResultsType = 'Google_Service_Datastore_EntityResult';
1236    protected $entityResultsDataType = 'array';
1237    public $moreResults;
1238    public $skippedResults;
1239  
1240  
1241    public function setEndCursor($endCursor)
1242    {
1243      $this->endCursor = $endCursor;
1244    }
1245    public function getEndCursor()
1246    {
1247      return $this->endCursor;
1248    }
1249    public function setEntityResultType($entityResultType)
1250    {
1251      $this->entityResultType = $entityResultType;
1252    }
1253    public function getEntityResultType()
1254    {
1255      return $this->entityResultType;
1256    }
1257    public function setEntityResults($entityResults)
1258    {
1259      $this->entityResults = $entityResults;
1260    }
1261    public function getEntityResults()
1262    {
1263      return $this->entityResults;
1264    }
1265    public function setMoreResults($moreResults)
1266    {
1267      $this->moreResults = $moreResults;
1268    }
1269    public function getMoreResults()
1270    {
1271      return $this->moreResults;
1272    }
1273    public function setSkippedResults($skippedResults)
1274    {
1275      $this->skippedResults = $skippedResults;
1276    }
1277    public function getSkippedResults()
1278    {
1279      return $this->skippedResults;
1280    }
1281  }
1282  
1283  #[AllowDynamicProperties]
1284  class Google_Service_Datastore_ReadOptions extends Google_Model
1285  {
1286    protected $internal_gapi_mappings = array(
1287    );
1288    public $readConsistency;
1289    public $transaction;
1290  
1291  
1292    public function setReadConsistency($readConsistency)
1293    {
1294      $this->readConsistency = $readConsistency;
1295    }
1296    public function getReadConsistency()
1297    {
1298      return $this->readConsistency;
1299    }
1300    public function setTransaction($transaction)
1301    {
1302      $this->transaction = $transaction;
1303    }
1304    public function getTransaction()
1305    {
1306      return $this->transaction;
1307    }
1308  }
1309  
1310  #[AllowDynamicProperties]
1311  class Google_Service_Datastore_ResponseHeader extends Google_Model
1312  {
1313    protected $internal_gapi_mappings = array(
1314    );
1315    public $kind;
1316  
1317  
1318    public function setKind($kind)
1319    {
1320      $this->kind = $kind;
1321    }
1322    public function getKind()
1323    {
1324      return $this->kind;
1325    }
1326  }
1327  
1328  #[AllowDynamicProperties]
1329  class Google_Service_Datastore_RollbackRequest extends Google_Model
1330  {
1331    protected $internal_gapi_mappings = array(
1332    );
1333    public $transaction;
1334  
1335  
1336    public function setTransaction($transaction)
1337    {
1338      $this->transaction = $transaction;
1339    }
1340    public function getTransaction()
1341    {
1342      return $this->transaction;
1343    }
1344  }
1345  
1346  #[AllowDynamicProperties]
1347  class Google_Service_Datastore_RollbackResponse extends Google_Model
1348  {
1349    protected $internal_gapi_mappings = array(
1350    );
1351    protected $headerType = 'Google_Service_Datastore_ResponseHeader';
1352    protected $headerDataType = '';
1353  
1354  
1355    public function setHeader(Google_Service_Datastore_ResponseHeader $header)
1356    {
1357      $this->header = $header;
1358    }
1359    public function getHeader()
1360    {
1361      return $this->header;
1362    }
1363  }
1364  
1365  #[AllowDynamicProperties]
1366  class Google_Service_Datastore_RunQueryRequest extends Google_Model
1367  {
1368    protected $internal_gapi_mappings = array(
1369    );
1370    protected $gqlQueryType = 'Google_Service_Datastore_GqlQuery';
1371    protected $gqlQueryDataType = '';
1372    protected $partitionIdType = 'Google_Service_Datastore_PartitionId';
1373    protected $partitionIdDataType = '';
1374    protected $queryType = 'Google_Service_Datastore_Query';
1375    protected $queryDataType = '';
1376    protected $readOptionsType = 'Google_Service_Datastore_ReadOptions';
1377    protected $readOptionsDataType = '';
1378  
1379  
1380    public function setGqlQuery(Google_Service_Datastore_GqlQuery $gqlQuery)
1381    {
1382      $this->gqlQuery = $gqlQuery;
1383    }
1384    public function getGqlQuery()
1385    {
1386      return $this->gqlQuery;
1387    }
1388    public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId)
1389    {
1390      $this->partitionId = $partitionId;
1391    }
1392    public function getPartitionId()
1393    {
1394      return $this->partitionId;
1395    }
1396    public function setQuery(Google_Service_Datastore_Query $query)
1397    {
1398      $this->query = $query;
1399    }
1400    public function getQuery()
1401    {
1402      return $this->query;
1403    }
1404    public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions)
1405    {
1406      $this->readOptions = $readOptions;
1407    }
1408    public function getReadOptions()
1409    {
1410      return $this->readOptions;
1411    }
1412  }
1413  
1414  #[AllowDynamicProperties]
1415  class Google_Service_Datastore_RunQueryResponse extends Google_Model
1416  {
1417    protected $internal_gapi_mappings = array(
1418    );
1419    protected $batchType = 'Google_Service_Datastore_QueryResultBatch';
1420    protected $batchDataType = '';
1421    protected $headerType = 'Google_Service_Datastore_ResponseHeader';
1422    protected $headerDataType = '';
1423  
1424  
1425    public function setBatch(Google_Service_Datastore_QueryResultBatch $batch)
1426    {
1427      $this->batch = $batch;
1428    }
1429    public function getBatch()
1430    {
1431      return $this->batch;
1432    }
1433    public function setHeader(Google_Service_Datastore_ResponseHeader $header)
1434    {
1435      $this->header = $header;
1436    }
1437    public function getHeader()
1438    {
1439      return $this->header;
1440    }
1441  }
1442  
1443  #[AllowDynamicProperties]
1444  class Google_Service_Datastore_Value extends Google_Collection
1445  {
1446    protected $collection_key = 'listValue';
1447    protected $internal_gapi_mappings = array(
1448    );
1449    public $blobKeyValue;
1450    public $blobValue;
1451    public $booleanValue;
1452    public $dateTimeValue;
1453    public $doubleValue;
1454    protected $entityValueType = 'Google_Service_Datastore_Entity';
1455    protected $entityValueDataType = '';
1456    public $indexed;
1457    public $integerValue;
1458    protected $keyValueType = 'Google_Service_Datastore_Key';
1459    protected $keyValueDataType = '';
1460    protected $listValueType = 'Google_Service_Datastore_Value';
1461    protected $listValueDataType = 'array';
1462    public $meaning;
1463    public $stringValue;
1464  
1465  
1466    public function setBlobKeyValue($blobKeyValue)
1467    {
1468      $this->blobKeyValue = $blobKeyValue;
1469    }
1470    public function getBlobKeyValue()
1471    {
1472      return $this->blobKeyValue;
1473    }
1474    public function setBlobValue($blobValue)
1475    {
1476      $this->blobValue = $blobValue;
1477    }
1478    public function getBlobValue()
1479    {
1480      return $this->blobValue;
1481    }
1482    public function setBooleanValue($booleanValue)
1483    {
1484      $this->booleanValue = $booleanValue;
1485    }
1486    public function getBooleanValue()
1487    {
1488      return $this->booleanValue;
1489    }
1490    public function setDateTimeValue($dateTimeValue)
1491    {
1492      $this->dateTimeValue = $dateTimeValue;
1493    }
1494    public function getDateTimeValue()
1495    {
1496      return $this->dateTimeValue;
1497    }
1498    public function setDoubleValue($doubleValue)
1499    {
1500      $this->doubleValue = $doubleValue;
1501    }
1502    public function getDoubleValue()
1503    {
1504      return $this->doubleValue;
1505    }
1506    public function setEntityValue(Google_Service_Datastore_Entity $entityValue)
1507    {
1508      $this->entityValue = $entityValue;
1509    }
1510    public function getEntityValue()
1511    {
1512      return $this->entityValue;
1513    }
1514    public function setIndexed($indexed)
1515    {
1516      $this->indexed = $indexed;
1517    }
1518    public function getIndexed()
1519    {
1520      return $this->indexed;
1521    }
1522    public function setIntegerValue($integerValue)
1523    {
1524      $this->integerValue = $integerValue;
1525    }
1526    public function getIntegerValue()
1527    {
1528      return $this->integerValue;
1529    }
1530    public function setKeyValue(Google_Service_Datastore_Key $keyValue)
1531    {
1532      $this->keyValue = $keyValue;
1533    }
1534    public function getKeyValue()
1535    {
1536      return $this->keyValue;
1537    }
1538    public function setListValue($listValue)
1539    {
1540      $this->listValue = $listValue;
1541    }
1542    public function getListValue()
1543    {
1544      return $this->listValue;
1545    }
1546    public function setMeaning($meaning)
1547    {
1548      $this->meaning = $meaning;
1549    }
1550    public function getMeaning()
1551    {
1552      return $this->meaning;
1553    }
1554    public function setStringValue($stringValue)
1555    {
1556      $this->stringValue = $stringValue;
1557    }
1558    public function getStringValue()
1559    {
1560      return $this->stringValue;
1561    }
1562  }