1<?php
2/*
3 * Copyright 2014 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
18namespace Google\Service\Datastore;
19
20class RunQueryRequest extends \Google\Model
21{
22  protected $gqlQueryType = GqlQuery::class;
23  protected $gqlQueryDataType = '';
24  protected $partitionIdType = PartitionId::class;
25  protected $partitionIdDataType = '';
26  protected $queryType = Query::class;
27  protected $queryDataType = '';
28  protected $readOptionsType = ReadOptions::class;
29  protected $readOptionsDataType = '';
30
31  /**
32   * @param GqlQuery
33   */
34  public function setGqlQuery(GqlQuery $gqlQuery)
35  {
36    $this->gqlQuery = $gqlQuery;
37  }
38  /**
39   * @return GqlQuery
40   */
41  public function getGqlQuery()
42  {
43    return $this->gqlQuery;
44  }
45  /**
46   * @param PartitionId
47   */
48  public function setPartitionId(PartitionId $partitionId)
49  {
50    $this->partitionId = $partitionId;
51  }
52  /**
53   * @return PartitionId
54   */
55  public function getPartitionId()
56  {
57    return $this->partitionId;
58  }
59  /**
60   * @param Query
61   */
62  public function setQuery(Query $query)
63  {
64    $this->query = $query;
65  }
66  /**
67   * @return Query
68   */
69  public function getQuery()
70  {
71    return $this->query;
72  }
73  /**
74   * @param ReadOptions
75   */
76  public function setReadOptions(ReadOptions $readOptions)
77  {
78    $this->readOptions = $readOptions;
79  }
80  /**
81   * @return ReadOptions
82   */
83  public function getReadOptions()
84  {
85    return $this->readOptions;
86  }
87}
88
89// Adding a class alias for backwards compatibility with the previous class name.
90class_alias(RunQueryRequest::class, 'Google_Service_Datastore_RunQueryRequest');
91