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