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 |
|
---|
18 | namespace Google\Service\Datastore;
|
---|
19 |
|
---|
20 | class RunQueryRequest extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string
|
---|
24 | */
|
---|
25 | public $databaseId;
|
---|
26 | protected $explainOptionsType = ExplainOptions::class;
|
---|
27 | protected $explainOptionsDataType = '';
|
---|
28 | protected $gqlQueryType = GqlQuery::class;
|
---|
29 | protected $gqlQueryDataType = '';
|
---|
30 | protected $partitionIdType = PartitionId::class;
|
---|
31 | protected $partitionIdDataType = '';
|
---|
32 | protected $propertyMaskType = PropertyMask::class;
|
---|
33 | protected $propertyMaskDataType = '';
|
---|
34 | protected $queryType = Query::class;
|
---|
35 | protected $queryDataType = '';
|
---|
36 | protected $readOptionsType = ReadOptions::class;
|
---|
37 | protected $readOptionsDataType = '';
|
---|
38 |
|
---|
39 | /**
|
---|
40 | * @param string
|
---|
41 | */
|
---|
42 | public function setDatabaseId($databaseId)
|
---|
43 | {
|
---|
44 | $this->databaseId = $databaseId;
|
---|
45 | }
|
---|
46 | /**
|
---|
47 | * @return string
|
---|
48 | */
|
---|
49 | public function getDatabaseId()
|
---|
50 | {
|
---|
51 | return $this->databaseId;
|
---|
52 | }
|
---|
53 | /**
|
---|
54 | * @param ExplainOptions
|
---|
55 | */
|
---|
56 | public function setExplainOptions(ExplainOptions $explainOptions)
|
---|
57 | {
|
---|
58 | $this->explainOptions = $explainOptions;
|
---|
59 | }
|
---|
60 | /**
|
---|
61 | * @return ExplainOptions
|
---|
62 | */
|
---|
63 | public function getExplainOptions()
|
---|
64 | {
|
---|
65 | return $this->explainOptions;
|
---|
66 | }
|
---|
67 | /**
|
---|
68 | * @param GqlQuery
|
---|
69 | */
|
---|
70 | public function setGqlQuery(GqlQuery $gqlQuery)
|
---|
71 | {
|
---|
72 | $this->gqlQuery = $gqlQuery;
|
---|
73 | }
|
---|
74 | /**
|
---|
75 | * @return GqlQuery
|
---|
76 | */
|
---|
77 | public function getGqlQuery()
|
---|
78 | {
|
---|
79 | return $this->gqlQuery;
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * @param PartitionId
|
---|
83 | */
|
---|
84 | public function setPartitionId(PartitionId $partitionId)
|
---|
85 | {
|
---|
86 | $this->partitionId = $partitionId;
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * @return PartitionId
|
---|
90 | */
|
---|
91 | public function getPartitionId()
|
---|
92 | {
|
---|
93 | return $this->partitionId;
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * @param PropertyMask
|
---|
97 | */
|
---|
98 | public function setPropertyMask(PropertyMask $propertyMask)
|
---|
99 | {
|
---|
100 | $this->propertyMask = $propertyMask;
|
---|
101 | }
|
---|
102 | /**
|
---|
103 | * @return PropertyMask
|
---|
104 | */
|
---|
105 | public function getPropertyMask()
|
---|
106 | {
|
---|
107 | return $this->propertyMask;
|
---|
108 | }
|
---|
109 | /**
|
---|
110 | * @param Query
|
---|
111 | */
|
---|
112 | public function setQuery(Query $query)
|
---|
113 | {
|
---|
114 | $this->query = $query;
|
---|
115 | }
|
---|
116 | /**
|
---|
117 | * @return Query
|
---|
118 | */
|
---|
119 | public function getQuery()
|
---|
120 | {
|
---|
121 | return $this->query;
|
---|
122 | }
|
---|
123 | /**
|
---|
124 | * @param ReadOptions
|
---|
125 | */
|
---|
126 | public function setReadOptions(ReadOptions $readOptions)
|
---|
127 | {
|
---|
128 | $this->readOptions = $readOptions;
|
---|
129 | }
|
---|
130 | /**
|
---|
131 | * @return ReadOptions
|
---|
132 | */
|
---|
133 | public function getReadOptions()
|
---|
134 | {
|
---|
135 | return $this->readOptions;
|
---|
136 | }
|
---|
137 | }
|
---|
138 |
|
---|
139 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
140 | class_alias(RunQueryRequest::class, 'Google_Service_Datastore_RunQueryRequest');
|
---|