| 1 | package Google::Spanner::V1::Spanner::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'CreateSessionRequest', | ||
| 11 | as InstanceOf['Google::Spanner::V1::Spanner::CreateSessionRequest']; | ||
| 12 | |||
| 13 | coerce 'CreateSessionRequest', | ||
| 14 | from HashRef, via { 'Google::Spanner::V1::Spanner::CreateSessionRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCreateSessionRequest', | ||
| 17 | as ArrayRef[CreateSessionRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCreateSessionRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::CreateSessionRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCreateSessionRequest', | ||
| 23 | as HashRef[CreateSessionRequest()]; | ||
| 24 | |||
| 25 | declare 'BatchCreateSessionsRequest', | ||
| 26 | as InstanceOf['Google::Spanner::V1::Spanner::BatchCreateSessionsRequest']; | ||
| 27 | |||
| 28 | coerce 'BatchCreateSessionsRequest', | ||
| 29 | from HashRef, via { 'Google::Spanner::V1::Spanner::BatchCreateSessionsRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedBatchCreateSessionsRequest', | ||
| 32 | as ArrayRef[BatchCreateSessionsRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedBatchCreateSessionsRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::BatchCreateSessionsRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringBatchCreateSessionsRequest', | ||
| 38 | as HashRef[BatchCreateSessionsRequest()]; | ||
| 39 | |||
| 40 | declare 'BatchCreateSessionsResponse', | ||
| 41 | as InstanceOf['Google::Spanner::V1::Spanner::BatchCreateSessionsResponse']; | ||
| 42 | |||
| 43 | coerce 'BatchCreateSessionsResponse', | ||
| 44 | from HashRef, via { 'Google::Spanner::V1::Spanner::BatchCreateSessionsResponse'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedBatchCreateSessionsResponse', | ||
| 47 | as ArrayRef[BatchCreateSessionsResponse()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedBatchCreateSessionsResponse', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::BatchCreateSessionsResponse'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringBatchCreateSessionsResponse', | ||
| 53 | as HashRef[BatchCreateSessionsResponse()]; | ||
| 54 | |||
| 55 | declare 'Session', | ||
| 56 | as InstanceOf['Google::Spanner::V1::Spanner::Session']; | ||
| 57 | |||
| 58 | coerce 'Session', | ||
| 59 | from HashRef, via { 'Google::Spanner::V1::Spanner::Session'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedSession', | ||
| 62 | as ArrayRef[Session()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedSession', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::Session'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringSession', | ||
| 68 | as HashRef[Session()]; | ||
| 69 | |||
| 70 | declare 'LabelsEntry', | ||
| 71 | as InstanceOf['Google::Spanner::V1::Spanner::Session::LabelsEntry']; | ||
| 72 | |||
| 73 | coerce 'LabelsEntry', | ||
| 74 | from HashRef, via { 'Google::Spanner::V1::Spanner::Session::LabelsEntry'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedLabelsEntry', | ||
| 77 | as ArrayRef[LabelsEntry()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedLabelsEntry', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::Session::LabelsEntry'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringLabelsEntry', | ||
| 83 | as HashRef[LabelsEntry()]; | ||
| 84 | |||
| 85 | declare 'GetSessionRequest', | ||
| 86 | as InstanceOf['Google::Spanner::V1::Spanner::GetSessionRequest']; | ||
| 87 | |||
| 88 | coerce 'GetSessionRequest', | ||
| 89 | from HashRef, via { 'Google::Spanner::V1::Spanner::GetSessionRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedGetSessionRequest', | ||
| 92 | as ArrayRef[GetSessionRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedGetSessionRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::GetSessionRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringGetSessionRequest', | ||
| 98 | as HashRef[GetSessionRequest()]; | ||
| 99 | |||
| 100 | declare 'ListSessionsRequest', | ||
| 101 | as InstanceOf['Google::Spanner::V1::Spanner::ListSessionsRequest']; | ||
| 102 | |||
| 103 | coerce 'ListSessionsRequest', | ||
| 104 | from HashRef, via { 'Google::Spanner::V1::Spanner::ListSessionsRequest'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedListSessionsRequest', | ||
| 107 | as ArrayRef[ListSessionsRequest()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedListSessionsRequest', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::ListSessionsRequest'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringListSessionsRequest', | ||
| 113 | as HashRef[ListSessionsRequest()]; | ||
| 114 | |||
| 115 | declare 'ListSessionsResponse', | ||
| 116 | as InstanceOf['Google::Spanner::V1::Spanner::ListSessionsResponse']; | ||
| 117 | |||
| 118 | coerce 'ListSessionsResponse', | ||
| 119 | from HashRef, via { 'Google::Spanner::V1::Spanner::ListSessionsResponse'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedListSessionsResponse', | ||
| 122 | as ArrayRef[ListSessionsResponse()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedListSessionsResponse', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::ListSessionsResponse'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringListSessionsResponse', | ||
| 128 | as HashRef[ListSessionsResponse()]; | ||
| 129 | |||
| 130 | declare 'DeleteSessionRequest', | ||
| 131 | as InstanceOf['Google::Spanner::V1::Spanner::DeleteSessionRequest']; | ||
| 132 | |||
| 133 | coerce 'DeleteSessionRequest', | ||
| 134 | from HashRef, via { 'Google::Spanner::V1::Spanner::DeleteSessionRequest'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedDeleteSessionRequest', | ||
| 137 | as ArrayRef[DeleteSessionRequest()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedDeleteSessionRequest', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::DeleteSessionRequest'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringDeleteSessionRequest', | ||
| 143 | as HashRef[DeleteSessionRequest()]; | ||
| 144 | |||
| 145 | declare 'RequestOptions', | ||
| 146 | as InstanceOf['Google::Spanner::V1::Spanner::RequestOptions']; | ||
| 147 | |||
| 148 | coerce 'RequestOptions', | ||
| 149 | from HashRef, via { 'Google::Spanner::V1::Spanner::RequestOptions'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedRequestOptions', | ||
| 152 | as ArrayRef[RequestOptions()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedRequestOptions', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::RequestOptions'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringRequestOptions', | ||
| 158 | as HashRef[RequestOptions()]; | ||
| 159 | |||
| 160 | declare 'Priority', | ||
| 161 | as (Int | Str); | ||
| 162 | |||
| 163 | declare 'ClientContext', | ||
| 164 | as InstanceOf['Google::Spanner::V1::Spanner::RequestOptions::ClientContext']; | ||
| 165 | |||
| 166 | coerce 'ClientContext', | ||
| 167 | from HashRef, via { 'Google::Spanner::V1::Spanner::RequestOptions::ClientContext'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedClientContext', | ||
| 170 | as ArrayRef[ClientContext()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedClientContext', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::RequestOptions::ClientContext'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringClientContext', | ||
| 176 | as HashRef[ClientContext()]; | ||
| 177 | |||
| 178 | declare 'SecureContextEntry', | ||
| 179 | as InstanceOf['Google::Spanner::V1::Spanner::RequestOptions::ClientContext::SecureContextEntry']; | ||
| 180 | |||
| 181 | coerce 'SecureContextEntry', | ||
| 182 | from HashRef, via { 'Google::Spanner::V1::Spanner::RequestOptions::ClientContext::SecureContextEntry'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedSecureContextEntry', | ||
| 185 | as ArrayRef[SecureContextEntry()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedSecureContextEntry', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::RequestOptions::ClientContext::SecureContextEntry'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringSecureContextEntry', | ||
| 191 | as HashRef[SecureContextEntry()]; | ||
| 192 | |||
| 193 | declare 'DirectedReadOptions', | ||
| 194 | as InstanceOf['Google::Spanner::V1::Spanner::DirectedReadOptions']; | ||
| 195 | |||
| 196 | coerce 'DirectedReadOptions', | ||
| 197 | from HashRef, via { 'Google::Spanner::V1::Spanner::DirectedReadOptions'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedDirectedReadOptions', | ||
| 200 | as ArrayRef[DirectedReadOptions()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedDirectedReadOptions', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::DirectedReadOptions'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringDirectedReadOptions', | ||
| 206 | as HashRef[DirectedReadOptions()]; | ||
| 207 | |||
| 208 | declare 'ReplicaSelection', | ||
| 209 | as InstanceOf['Google::Spanner::V1::Spanner::DirectedReadOptions::ReplicaSelection']; | ||
| 210 | |||
| 211 | coerce 'ReplicaSelection', | ||
| 212 | from HashRef, via { 'Google::Spanner::V1::Spanner::DirectedReadOptions::ReplicaSelection'->new($_) }; | ||
| 213 | |||
| 214 | declare 'RepeatedReplicaSelection', | ||
| 215 | as ArrayRef[ReplicaSelection()]; | ||
| 216 | |||
| 217 | coerce 'RepeatedReplicaSelection', | ||
| 218 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::DirectedReadOptions::ReplicaSelection'->new($_) } @$_ ] }; | ||
| 219 | |||
| 220 | declare 'MapStringReplicaSelection', | ||
| 221 | as HashRef[ReplicaSelection()]; | ||
| 222 | |||
| 223 | declare 'Type', | ||
| 224 | as (Int | Str); | ||
| 225 | |||
| 226 | declare 'IncludeReplicas', | ||
| 227 | as InstanceOf['Google::Spanner::V1::Spanner::DirectedReadOptions::IncludeReplicas']; | ||
| 228 | |||
| 229 | coerce 'IncludeReplicas', | ||
| 230 | from HashRef, via { 'Google::Spanner::V1::Spanner::DirectedReadOptions::IncludeReplicas'->new($_) }; | ||
| 231 | |||
| 232 | declare 'RepeatedIncludeReplicas', | ||
| 233 | as ArrayRef[IncludeReplicas()]; | ||
| 234 | |||
| 235 | coerce 'RepeatedIncludeReplicas', | ||
| 236 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::DirectedReadOptions::IncludeReplicas'->new($_) } @$_ ] }; | ||
| 237 | |||
| 238 | declare 'MapStringIncludeReplicas', | ||
| 239 | as HashRef[IncludeReplicas()]; | ||
| 240 | |||
| 241 | declare 'ExcludeReplicas', | ||
| 242 | as InstanceOf['Google::Spanner::V1::Spanner::DirectedReadOptions::ExcludeReplicas']; | ||
| 243 | |||
| 244 | coerce 'ExcludeReplicas', | ||
| 245 | from HashRef, via { 'Google::Spanner::V1::Spanner::DirectedReadOptions::ExcludeReplicas'->new($_) }; | ||
| 246 | |||
| 247 | declare 'RepeatedExcludeReplicas', | ||
| 248 | as ArrayRef[ExcludeReplicas()]; | ||
| 249 | |||
| 250 | coerce 'RepeatedExcludeReplicas', | ||
| 251 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::DirectedReadOptions::ExcludeReplicas'->new($_) } @$_ ] }; | ||
| 252 | |||
| 253 | declare 'MapStringExcludeReplicas', | ||
| 254 | as HashRef[ExcludeReplicas()]; | ||
| 255 | |||
| 256 | declare 'ExecuteSqlRequest', | ||
| 257 | as InstanceOf['Google::Spanner::V1::Spanner::ExecuteSqlRequest']; | ||
| 258 | |||
| 259 | coerce 'ExecuteSqlRequest', | ||
| 260 | from HashRef, via { 'Google::Spanner::V1::Spanner::ExecuteSqlRequest'->new($_) }; | ||
| 261 | |||
| 262 | declare 'RepeatedExecuteSqlRequest', | ||
| 263 | as ArrayRef[ExecuteSqlRequest()]; | ||
| 264 | |||
| 265 | coerce 'RepeatedExecuteSqlRequest', | ||
| 266 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::ExecuteSqlRequest'->new($_) } @$_ ] }; | ||
| 267 | |||
| 268 | declare 'MapStringExecuteSqlRequest', | ||
| 269 | as HashRef[ExecuteSqlRequest()]; | ||
| 270 | |||
| 271 | declare 'QueryMode', | ||
| 272 | as (Int | Str); | ||
| 273 | |||
| 274 | declare 'QueryOptions', | ||
| 275 | as InstanceOf['Google::Spanner::V1::Spanner::ExecuteSqlRequest::QueryOptions']; | ||
| 276 | |||
| 277 | coerce 'QueryOptions', | ||
| 278 | from HashRef, via { 'Google::Spanner::V1::Spanner::ExecuteSqlRequest::QueryOptions'->new($_) }; | ||
| 279 | |||
| 280 | declare 'RepeatedQueryOptions', | ||
| 281 | as ArrayRef[QueryOptions()]; | ||
| 282 | |||
| 283 | coerce 'RepeatedQueryOptions', | ||
| 284 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::ExecuteSqlRequest::QueryOptions'->new($_) } @$_ ] }; | ||
| 285 | |||
| 286 | declare 'MapStringQueryOptions', | ||
| 287 | as HashRef[QueryOptions()]; | ||
| 288 | |||
| 289 | declare 'ParamTypesEntry', | ||
| 290 | as InstanceOf['Google::Spanner::V1::Spanner::ExecuteSqlRequest::ParamTypesEntry']; | ||
| 291 | |||
| 292 | coerce 'ParamTypesEntry', | ||
| 293 | from HashRef, via { 'Google::Spanner::V1::Spanner::ExecuteSqlRequest::ParamTypesEntry'->new($_) }; | ||
| 294 | |||
| 295 | declare 'RepeatedParamTypesEntry', | ||
| 296 | as ArrayRef[ParamTypesEntry()]; | ||
| 297 | |||
| 298 | coerce 'RepeatedParamTypesEntry', | ||
| 299 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::ExecuteSqlRequest::ParamTypesEntry'->new($_) } @$_ ] }; | ||
| 300 | |||
| 301 | declare 'MapStringParamTypesEntry', | ||
| 302 | as HashRef[ParamTypesEntry()]; | ||
| 303 | |||
| 304 | declare 'ExecuteBatchDmlRequest', | ||
| 305 | as InstanceOf['Google::Spanner::V1::Spanner::ExecuteBatchDmlRequest']; | ||
| 306 | |||
| 307 | coerce 'ExecuteBatchDmlRequest', | ||
| 308 | from HashRef, via { 'Google::Spanner::V1::Spanner::ExecuteBatchDmlRequest'->new($_) }; | ||
| 309 | |||
| 310 | declare 'RepeatedExecuteBatchDmlRequest', | ||
| 311 | as ArrayRef[ExecuteBatchDmlRequest()]; | ||
| 312 | |||
| 313 | coerce 'RepeatedExecuteBatchDmlRequest', | ||
| 314 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::ExecuteBatchDmlRequest'->new($_) } @$_ ] }; | ||
| 315 | |||
| 316 | declare 'MapStringExecuteBatchDmlRequest', | ||
| 317 | as HashRef[ExecuteBatchDmlRequest()]; | ||
| 318 | |||
| 319 | declare 'Statement', | ||
| 320 | as InstanceOf['Google::Spanner::V1::Spanner::ExecuteBatchDmlRequest::Statement']; | ||
| 321 | |||
| 322 | coerce 'Statement', | ||
| 323 | from HashRef, via { 'Google::Spanner::V1::Spanner::ExecuteBatchDmlRequest::Statement'->new($_) }; | ||
| 324 | |||
| 325 | declare 'RepeatedStatement', | ||
| 326 | as ArrayRef[Statement()]; | ||
| 327 | |||
| 328 | coerce 'RepeatedStatement', | ||
| 329 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::ExecuteBatchDmlRequest::Statement'->new($_) } @$_ ] }; | ||
| 330 | |||
| 331 | declare 'MapStringStatement', | ||
| 332 | as HashRef[Statement()]; | ||
| 333 | |||
| 334 | declare 'ParamTypesEntry', | ||
| 335 | as InstanceOf['Google::Spanner::V1::Spanner::ExecuteBatchDmlRequest::Statement::ParamTypesEntry']; | ||
| 336 | |||
| 337 | coerce 'ParamTypesEntry', | ||
| 338 | from HashRef, via { 'Google::Spanner::V1::Spanner::ExecuteBatchDmlRequest::Statement::ParamTypesEntry'->new($_) }; | ||
| 339 | |||
| 340 | declare 'RepeatedParamTypesEntry', | ||
| 341 | as ArrayRef[ParamTypesEntry()]; | ||
| 342 | |||
| 343 | coerce 'RepeatedParamTypesEntry', | ||
| 344 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::ExecuteBatchDmlRequest::Statement::ParamTypesEntry'->new($_) } @$_ ] }; | ||
| 345 | |||
| 346 | declare 'MapStringParamTypesEntry', | ||
| 347 | as HashRef[ParamTypesEntry()]; | ||
| 348 | |||
| 349 | declare 'ExecuteBatchDmlResponse', | ||
| 350 | as InstanceOf['Google::Spanner::V1::Spanner::ExecuteBatchDmlResponse']; | ||
| 351 | |||
| 352 | coerce 'ExecuteBatchDmlResponse', | ||
| 353 | from HashRef, via { 'Google::Spanner::V1::Spanner::ExecuteBatchDmlResponse'->new($_) }; | ||
| 354 | |||
| 355 | declare 'RepeatedExecuteBatchDmlResponse', | ||
| 356 | as ArrayRef[ExecuteBatchDmlResponse()]; | ||
| 357 | |||
| 358 | coerce 'RepeatedExecuteBatchDmlResponse', | ||
| 359 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::ExecuteBatchDmlResponse'->new($_) } @$_ ] }; | ||
| 360 | |||
| 361 | declare 'MapStringExecuteBatchDmlResponse', | ||
| 362 | as HashRef[ExecuteBatchDmlResponse()]; | ||
| 363 | |||
| 364 | declare 'PartitionOptions', | ||
| 365 | as InstanceOf['Google::Spanner::V1::Spanner::PartitionOptions']; | ||
| 366 | |||
| 367 | coerce 'PartitionOptions', | ||
| 368 | from HashRef, via { 'Google::Spanner::V1::Spanner::PartitionOptions'->new($_) }; | ||
| 369 | |||
| 370 | declare 'RepeatedPartitionOptions', | ||
| 371 | as ArrayRef[PartitionOptions()]; | ||
| 372 | |||
| 373 | coerce 'RepeatedPartitionOptions', | ||
| 374 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::PartitionOptions'->new($_) } @$_ ] }; | ||
| 375 | |||
| 376 | declare 'MapStringPartitionOptions', | ||
| 377 | as HashRef[PartitionOptions()]; | ||
| 378 | |||
| 379 | declare 'PartitionQueryRequest', | ||
| 380 | as InstanceOf['Google::Spanner::V1::Spanner::PartitionQueryRequest']; | ||
| 381 | |||
| 382 | coerce 'PartitionQueryRequest', | ||
| 383 | from HashRef, via { 'Google::Spanner::V1::Spanner::PartitionQueryRequest'->new($_) }; | ||
| 384 | |||
| 385 | declare 'RepeatedPartitionQueryRequest', | ||
| 386 | as ArrayRef[PartitionQueryRequest()]; | ||
| 387 | |||
| 388 | coerce 'RepeatedPartitionQueryRequest', | ||
| 389 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::PartitionQueryRequest'->new($_) } @$_ ] }; | ||
| 390 | |||
| 391 | declare 'MapStringPartitionQueryRequest', | ||
| 392 | as HashRef[PartitionQueryRequest()]; | ||
| 393 | |||
| 394 | declare 'ParamTypesEntry', | ||
| 395 | as InstanceOf['Google::Spanner::V1::Spanner::PartitionQueryRequest::ParamTypesEntry']; | ||
| 396 | |||
| 397 | coerce 'ParamTypesEntry', | ||
| 398 | from HashRef, via { 'Google::Spanner::V1::Spanner::PartitionQueryRequest::ParamTypesEntry'->new($_) }; | ||
| 399 | |||
| 400 | declare 'RepeatedParamTypesEntry', | ||
| 401 | as ArrayRef[ParamTypesEntry()]; | ||
| 402 | |||
| 403 | coerce 'RepeatedParamTypesEntry', | ||
| 404 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::PartitionQueryRequest::ParamTypesEntry'->new($_) } @$_ ] }; | ||
| 405 | |||
| 406 | declare 'MapStringParamTypesEntry', | ||
| 407 | as HashRef[ParamTypesEntry()]; | ||
| 408 | |||
| 409 | declare 'PartitionReadRequest', | ||
| 410 | as InstanceOf['Google::Spanner::V1::Spanner::PartitionReadRequest']; | ||
| 411 | |||
| 412 | coerce 'PartitionReadRequest', | ||
| 413 | from HashRef, via { 'Google::Spanner::V1::Spanner::PartitionReadRequest'->new($_) }; | ||
| 414 | |||
| 415 | declare 'RepeatedPartitionReadRequest', | ||
| 416 | as ArrayRef[PartitionReadRequest()]; | ||
| 417 | |||
| 418 | coerce 'RepeatedPartitionReadRequest', | ||
| 419 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::PartitionReadRequest'->new($_) } @$_ ] }; | ||
| 420 | |||
| 421 | declare 'MapStringPartitionReadRequest', | ||
| 422 | as HashRef[PartitionReadRequest()]; | ||
| 423 | |||
| 424 | declare 'Partition', | ||
| 425 | as InstanceOf['Google::Spanner::V1::Spanner::Partition']; | ||
| 426 | |||
| 427 | coerce 'Partition', | ||
| 428 | from HashRef, via { 'Google::Spanner::V1::Spanner::Partition'->new($_) }; | ||
| 429 | |||
| 430 | declare 'RepeatedPartition', | ||
| 431 | as ArrayRef[Partition()]; | ||
| 432 | |||
| 433 | coerce 'RepeatedPartition', | ||
| 434 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::Partition'->new($_) } @$_ ] }; | ||
| 435 | |||
| 436 | declare 'MapStringPartition', | ||
| 437 | as HashRef[Partition()]; | ||
| 438 | |||
| 439 | declare 'PartitionResponse', | ||
| 440 | as InstanceOf['Google::Spanner::V1::Spanner::PartitionResponse']; | ||
| 441 | |||
| 442 | coerce 'PartitionResponse', | ||
| 443 | from HashRef, via { 'Google::Spanner::V1::Spanner::PartitionResponse'->new($_) }; | ||
| 444 | |||
| 445 | declare 'RepeatedPartitionResponse', | ||
| 446 | as ArrayRef[PartitionResponse()]; | ||
| 447 | |||
| 448 | coerce 'RepeatedPartitionResponse', | ||
| 449 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::PartitionResponse'->new($_) } @$_ ] }; | ||
| 450 | |||
| 451 | declare 'MapStringPartitionResponse', | ||
| 452 | as HashRef[PartitionResponse()]; | ||
| 453 | |||
| 454 | declare 'ReadRequest', | ||
| 455 | as InstanceOf['Google::Spanner::V1::Spanner::ReadRequest']; | ||
| 456 | |||
| 457 | coerce 'ReadRequest', | ||
| 458 | from HashRef, via { 'Google::Spanner::V1::Spanner::ReadRequest'->new($_) }; | ||
| 459 | |||
| 460 | declare 'RepeatedReadRequest', | ||
| 461 | as ArrayRef[ReadRequest()]; | ||
| 462 | |||
| 463 | coerce 'RepeatedReadRequest', | ||
| 464 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::ReadRequest'->new($_) } @$_ ] }; | ||
| 465 | |||
| 466 | declare 'MapStringReadRequest', | ||
| 467 | as HashRef[ReadRequest()]; | ||
| 468 | |||
| 469 | declare 'OrderBy', | ||
| 470 | as (Int | Str); | ||
| 471 | |||
| 472 | declare 'LockHint', | ||
| 473 | as (Int | Str); | ||
| 474 | |||
| 475 | declare 'BeginTransactionRequest', | ||
| 476 | as InstanceOf['Google::Spanner::V1::Spanner::BeginTransactionRequest']; | ||
| 477 | |||
| 478 | coerce 'BeginTransactionRequest', | ||
| 479 | from HashRef, via { 'Google::Spanner::V1::Spanner::BeginTransactionRequest'->new($_) }; | ||
| 480 | |||
| 481 | declare 'RepeatedBeginTransactionRequest', | ||
| 482 | as ArrayRef[BeginTransactionRequest()]; | ||
| 483 | |||
| 484 | coerce 'RepeatedBeginTransactionRequest', | ||
| 485 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::BeginTransactionRequest'->new($_) } @$_ ] }; | ||
| 486 | |||
| 487 | declare 'MapStringBeginTransactionRequest', | ||
| 488 | as HashRef[BeginTransactionRequest()]; | ||
| 489 | |||
| 490 | declare 'CommitRequest', | ||
| 491 | as InstanceOf['Google::Spanner::V1::Spanner::CommitRequest']; | ||
| 492 | |||
| 493 | coerce 'CommitRequest', | ||
| 494 | from HashRef, via { 'Google::Spanner::V1::Spanner::CommitRequest'->new($_) }; | ||
| 495 | |||
| 496 | declare 'RepeatedCommitRequest', | ||
| 497 | as ArrayRef[CommitRequest()]; | ||
| 498 | |||
| 499 | coerce 'RepeatedCommitRequest', | ||
| 500 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::CommitRequest'->new($_) } @$_ ] }; | ||
| 501 | |||
| 502 | declare 'MapStringCommitRequest', | ||
| 503 | as HashRef[CommitRequest()]; | ||
| 504 | |||
| 505 | declare 'RollbackRequest', | ||
| 506 | as InstanceOf['Google::Spanner::V1::Spanner::RollbackRequest']; | ||
| 507 | |||
| 508 | coerce 'RollbackRequest', | ||
| 509 | from HashRef, via { 'Google::Spanner::V1::Spanner::RollbackRequest'->new($_) }; | ||
| 510 | |||
| 511 | declare 'RepeatedRollbackRequest', | ||
| 512 | as ArrayRef[RollbackRequest()]; | ||
| 513 | |||
| 514 | coerce 'RepeatedRollbackRequest', | ||
| 515 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::RollbackRequest'->new($_) } @$_ ] }; | ||
| 516 | |||
| 517 | declare 'MapStringRollbackRequest', | ||
| 518 | as HashRef[RollbackRequest()]; | ||
| 519 | |||
| 520 | declare 'BatchWriteRequest', | ||
| 521 | as InstanceOf['Google::Spanner::V1::Spanner::BatchWriteRequest']; | ||
| 522 | |||
| 523 | coerce 'BatchWriteRequest', | ||
| 524 | from HashRef, via { 'Google::Spanner::V1::Spanner::BatchWriteRequest'->new($_) }; | ||
| 525 | |||
| 526 | declare 'RepeatedBatchWriteRequest', | ||
| 527 | as ArrayRef[BatchWriteRequest()]; | ||
| 528 | |||
| 529 | coerce 'RepeatedBatchWriteRequest', | ||
| 530 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::BatchWriteRequest'->new($_) } @$_ ] }; | ||
| 531 | |||
| 532 | declare 'MapStringBatchWriteRequest', | ||
| 533 | as HashRef[BatchWriteRequest()]; | ||
| 534 | |||
| 535 | declare 'MutationGroup', | ||
| 536 | as InstanceOf['Google::Spanner::V1::Spanner::BatchWriteRequest::MutationGroup']; | ||
| 537 | |||
| 538 | coerce 'MutationGroup', | ||
| 539 | from HashRef, via { 'Google::Spanner::V1::Spanner::BatchWriteRequest::MutationGroup'->new($_) }; | ||
| 540 | |||
| 541 | declare 'RepeatedMutationGroup', | ||
| 542 | as ArrayRef[MutationGroup()]; | ||
| 543 | |||
| 544 | coerce 'RepeatedMutationGroup', | ||
| 545 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::BatchWriteRequest::MutationGroup'->new($_) } @$_ ] }; | ||
| 546 | |||
| 547 | declare 'MapStringMutationGroup', | ||
| 548 | as HashRef[MutationGroup()]; | ||
| 549 | |||
| 550 | declare 'BatchWriteResponse', | ||
| 551 | as InstanceOf['Google::Spanner::V1::Spanner::BatchWriteResponse']; | ||
| 552 | |||
| 553 | coerce 'BatchWriteResponse', | ||
| 554 | from HashRef, via { 'Google::Spanner::V1::Spanner::BatchWriteResponse'->new($_) }; | ||
| 555 | |||
| 556 | declare 'RepeatedBatchWriteResponse', | ||
| 557 | as ArrayRef[BatchWriteResponse()]; | ||
| 558 | |||
| 559 | coerce 'RepeatedBatchWriteResponse', | ||
| 560 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::BatchWriteResponse'->new($_) } @$_ ] }; | ||
| 561 | |||
| 562 | declare 'MapStringBatchWriteResponse', | ||
| 563 | as HashRef[BatchWriteResponse()]; | ||
| 564 | |||
| 565 | declare 'FetchCacheUpdateRequest', | ||
| 566 | as InstanceOf['Google::Spanner::V1::Spanner::FetchCacheUpdateRequest']; | ||
| 567 | |||
| 568 | coerce 'FetchCacheUpdateRequest', | ||
| 569 | from HashRef, via { 'Google::Spanner::V1::Spanner::FetchCacheUpdateRequest'->new($_) }; | ||
| 570 | |||
| 571 | declare 'RepeatedFetchCacheUpdateRequest', | ||
| 572 | as ArrayRef[FetchCacheUpdateRequest()]; | ||
| 573 | |||
| 574 | coerce 'RepeatedFetchCacheUpdateRequest', | ||
| 575 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Spanner::FetchCacheUpdateRequest'->new($_) } @$_ ] }; | ||
| 576 | |||
| 577 | declare 'MapStringFetchCacheUpdateRequest', | ||
| 578 | as HashRef[FetchCacheUpdateRequest()]; | ||
| 579 | |||
| 580 | 1; | ||
| 581 | |||
| 582 | __END__ |