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\Spanner;
|
---|
19 |
|
---|
20 | class ExecuteSqlRequest extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var bool
|
---|
24 | */
|
---|
25 | public $dataBoostEnabled;
|
---|
26 | protected $directedReadOptionsType = DirectedReadOptions::class;
|
---|
27 | protected $directedReadOptionsDataType = '';
|
---|
28 | protected $paramTypesType = Type::class;
|
---|
29 | protected $paramTypesDataType = 'map';
|
---|
30 | /**
|
---|
31 | * @var array[]
|
---|
32 | */
|
---|
33 | public $params;
|
---|
34 | /**
|
---|
35 | * @var string
|
---|
36 | */
|
---|
37 | public $partitionToken;
|
---|
38 | /**
|
---|
39 | * @var string
|
---|
40 | */
|
---|
41 | public $queryMode;
|
---|
42 | protected $queryOptionsType = QueryOptions::class;
|
---|
43 | protected $queryOptionsDataType = '';
|
---|
44 | protected $requestOptionsType = RequestOptions::class;
|
---|
45 | protected $requestOptionsDataType = '';
|
---|
46 | /**
|
---|
47 | * @var string
|
---|
48 | */
|
---|
49 | public $resumeToken;
|
---|
50 | /**
|
---|
51 | * @var string
|
---|
52 | */
|
---|
53 | public $seqno;
|
---|
54 | /**
|
---|
55 | * @var string
|
---|
56 | */
|
---|
57 | public $sql;
|
---|
58 | protected $transactionType = TransactionSelector::class;
|
---|
59 | protected $transactionDataType = '';
|
---|
60 |
|
---|
61 | /**
|
---|
62 | * @param bool
|
---|
63 | */
|
---|
64 | public function setDataBoostEnabled($dataBoostEnabled)
|
---|
65 | {
|
---|
66 | $this->dataBoostEnabled = $dataBoostEnabled;
|
---|
67 | }
|
---|
68 | /**
|
---|
69 | * @return bool
|
---|
70 | */
|
---|
71 | public function getDataBoostEnabled()
|
---|
72 | {
|
---|
73 | return $this->dataBoostEnabled;
|
---|
74 | }
|
---|
75 | /**
|
---|
76 | * @param DirectedReadOptions
|
---|
77 | */
|
---|
78 | public function setDirectedReadOptions(DirectedReadOptions $directedReadOptions)
|
---|
79 | {
|
---|
80 | $this->directedReadOptions = $directedReadOptions;
|
---|
81 | }
|
---|
82 | /**
|
---|
83 | * @return DirectedReadOptions
|
---|
84 | */
|
---|
85 | public function getDirectedReadOptions()
|
---|
86 | {
|
---|
87 | return $this->directedReadOptions;
|
---|
88 | }
|
---|
89 | /**
|
---|
90 | * @param Type[]
|
---|
91 | */
|
---|
92 | public function setParamTypes($paramTypes)
|
---|
93 | {
|
---|
94 | $this->paramTypes = $paramTypes;
|
---|
95 | }
|
---|
96 | /**
|
---|
97 | * @return Type[]
|
---|
98 | */
|
---|
99 | public function getParamTypes()
|
---|
100 | {
|
---|
101 | return $this->paramTypes;
|
---|
102 | }
|
---|
103 | /**
|
---|
104 | * @param array[]
|
---|
105 | */
|
---|
106 | public function setParams($params)
|
---|
107 | {
|
---|
108 | $this->params = $params;
|
---|
109 | }
|
---|
110 | /**
|
---|
111 | * @return array[]
|
---|
112 | */
|
---|
113 | public function getParams()
|
---|
114 | {
|
---|
115 | return $this->params;
|
---|
116 | }
|
---|
117 | /**
|
---|
118 | * @param string
|
---|
119 | */
|
---|
120 | public function setPartitionToken($partitionToken)
|
---|
121 | {
|
---|
122 | $this->partitionToken = $partitionToken;
|
---|
123 | }
|
---|
124 | /**
|
---|
125 | * @return string
|
---|
126 | */
|
---|
127 | public function getPartitionToken()
|
---|
128 | {
|
---|
129 | return $this->partitionToken;
|
---|
130 | }
|
---|
131 | /**
|
---|
132 | * @param string
|
---|
133 | */
|
---|
134 | public function setQueryMode($queryMode)
|
---|
135 | {
|
---|
136 | $this->queryMode = $queryMode;
|
---|
137 | }
|
---|
138 | /**
|
---|
139 | * @return string
|
---|
140 | */
|
---|
141 | public function getQueryMode()
|
---|
142 | {
|
---|
143 | return $this->queryMode;
|
---|
144 | }
|
---|
145 | /**
|
---|
146 | * @param QueryOptions
|
---|
147 | */
|
---|
148 | public function setQueryOptions(QueryOptions $queryOptions)
|
---|
149 | {
|
---|
150 | $this->queryOptions = $queryOptions;
|
---|
151 | }
|
---|
152 | /**
|
---|
153 | * @return QueryOptions
|
---|
154 | */
|
---|
155 | public function getQueryOptions()
|
---|
156 | {
|
---|
157 | return $this->queryOptions;
|
---|
158 | }
|
---|
159 | /**
|
---|
160 | * @param RequestOptions
|
---|
161 | */
|
---|
162 | public function setRequestOptions(RequestOptions $requestOptions)
|
---|
163 | {
|
---|
164 | $this->requestOptions = $requestOptions;
|
---|
165 | }
|
---|
166 | /**
|
---|
167 | * @return RequestOptions
|
---|
168 | */
|
---|
169 | public function getRequestOptions()
|
---|
170 | {
|
---|
171 | return $this->requestOptions;
|
---|
172 | }
|
---|
173 | /**
|
---|
174 | * @param string
|
---|
175 | */
|
---|
176 | public function setResumeToken($resumeToken)
|
---|
177 | {
|
---|
178 | $this->resumeToken = $resumeToken;
|
---|
179 | }
|
---|
180 | /**
|
---|
181 | * @return string
|
---|
182 | */
|
---|
183 | public function getResumeToken()
|
---|
184 | {
|
---|
185 | return $this->resumeToken;
|
---|
186 | }
|
---|
187 | /**
|
---|
188 | * @param string
|
---|
189 | */
|
---|
190 | public function setSeqno($seqno)
|
---|
191 | {
|
---|
192 | $this->seqno = $seqno;
|
---|
193 | }
|
---|
194 | /**
|
---|
195 | * @return string
|
---|
196 | */
|
---|
197 | public function getSeqno()
|
---|
198 | {
|
---|
199 | return $this->seqno;
|
---|
200 | }
|
---|
201 | /**
|
---|
202 | * @param string
|
---|
203 | */
|
---|
204 | public function setSql($sql)
|
---|
205 | {
|
---|
206 | $this->sql = $sql;
|
---|
207 | }
|
---|
208 | /**
|
---|
209 | * @return string
|
---|
210 | */
|
---|
211 | public function getSql()
|
---|
212 | {
|
---|
213 | return $this->sql;
|
---|
214 | }
|
---|
215 | /**
|
---|
216 | * @param TransactionSelector
|
---|
217 | */
|
---|
218 | public function setTransaction(TransactionSelector $transaction)
|
---|
219 | {
|
---|
220 | $this->transaction = $transaction;
|
---|
221 | }
|
---|
222 | /**
|
---|
223 | * @return TransactionSelector
|
---|
224 | */
|
---|
225 | public function getTransaction()
|
---|
226 | {
|
---|
227 | return $this->transaction;
|
---|
228 | }
|
---|
229 | }
|
---|
230 |
|
---|
231 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
232 | class_alias(ExecuteSqlRequest::class, 'Google_Service_Spanner_ExecuteSqlRequest');
|
---|