| 1 | package Google::Datastore::V1beta3::Datastore::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 'LookupRequest', | ||
| 11 | as InstanceOf['Google::Datastore::V1beta3::Datastore::LookupRequest']; | ||
| 12 | |||
| 13 | coerce 'LookupRequest', | ||
| 14 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::LookupRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedLookupRequest', | ||
| 17 | as ArrayRef[LookupRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedLookupRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::LookupRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringLookupRequest', | ||
| 23 | as HashRef[LookupRequest()]; | ||
| 24 | |||
| 25 | declare 'LookupResponse', | ||
| 26 | as InstanceOf['Google::Datastore::V1beta3::Datastore::LookupResponse']; | ||
| 27 | |||
| 28 | coerce 'LookupResponse', | ||
| 29 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::LookupResponse'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedLookupResponse', | ||
| 32 | as ArrayRef[LookupResponse()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedLookupResponse', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::LookupResponse'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringLookupResponse', | ||
| 38 | as HashRef[LookupResponse()]; | ||
| 39 | |||
| 40 | declare 'RunQueryRequest', | ||
| 41 | as InstanceOf['Google::Datastore::V1beta3::Datastore::RunQueryRequest']; | ||
| 42 | |||
| 43 | coerce 'RunQueryRequest', | ||
| 44 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::RunQueryRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedRunQueryRequest', | ||
| 47 | as ArrayRef[RunQueryRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedRunQueryRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::RunQueryRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringRunQueryRequest', | ||
| 53 | as HashRef[RunQueryRequest()]; | ||
| 54 | |||
| 55 | declare 'RunQueryResponse', | ||
| 56 | as InstanceOf['Google::Datastore::V1beta3::Datastore::RunQueryResponse']; | ||
| 57 | |||
| 58 | coerce 'RunQueryResponse', | ||
| 59 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::RunQueryResponse'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedRunQueryResponse', | ||
| 62 | as ArrayRef[RunQueryResponse()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedRunQueryResponse', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::RunQueryResponse'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringRunQueryResponse', | ||
| 68 | as HashRef[RunQueryResponse()]; | ||
| 69 | |||
| 70 | declare 'BeginTransactionRequest', | ||
| 71 | as InstanceOf['Google::Datastore::V1beta3::Datastore::BeginTransactionRequest']; | ||
| 72 | |||
| 73 | coerce 'BeginTransactionRequest', | ||
| 74 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::BeginTransactionRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedBeginTransactionRequest', | ||
| 77 | as ArrayRef[BeginTransactionRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedBeginTransactionRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::BeginTransactionRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringBeginTransactionRequest', | ||
| 83 | as HashRef[BeginTransactionRequest()]; | ||
| 84 | |||
| 85 | declare 'BeginTransactionResponse', | ||
| 86 | as InstanceOf['Google::Datastore::V1beta3::Datastore::BeginTransactionResponse']; | ||
| 87 | |||
| 88 | coerce 'BeginTransactionResponse', | ||
| 89 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::BeginTransactionResponse'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedBeginTransactionResponse', | ||
| 92 | as ArrayRef[BeginTransactionResponse()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedBeginTransactionResponse', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::BeginTransactionResponse'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringBeginTransactionResponse', | ||
| 98 | as HashRef[BeginTransactionResponse()]; | ||
| 99 | |||
| 100 | declare 'RollbackRequest', | ||
| 101 | as InstanceOf['Google::Datastore::V1beta3::Datastore::RollbackRequest']; | ||
| 102 | |||
| 103 | coerce 'RollbackRequest', | ||
| 104 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::RollbackRequest'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedRollbackRequest', | ||
| 107 | as ArrayRef[RollbackRequest()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedRollbackRequest', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::RollbackRequest'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringRollbackRequest', | ||
| 113 | as HashRef[RollbackRequest()]; | ||
| 114 | |||
| 115 | declare 'RollbackResponse', | ||
| 116 | as InstanceOf['Google::Datastore::V1beta3::Datastore::RollbackResponse']; | ||
| 117 | |||
| 118 | coerce 'RollbackResponse', | ||
| 119 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::RollbackResponse'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedRollbackResponse', | ||
| 122 | as ArrayRef[RollbackResponse()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedRollbackResponse', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::RollbackResponse'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringRollbackResponse', | ||
| 128 | as HashRef[RollbackResponse()]; | ||
| 129 | |||
| 130 | declare 'CommitRequest', | ||
| 131 | as InstanceOf['Google::Datastore::V1beta3::Datastore::CommitRequest']; | ||
| 132 | |||
| 133 | coerce 'CommitRequest', | ||
| 134 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::CommitRequest'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedCommitRequest', | ||
| 137 | as ArrayRef[CommitRequest()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedCommitRequest', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::CommitRequest'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringCommitRequest', | ||
| 143 | as HashRef[CommitRequest()]; | ||
| 144 | |||
| 145 | declare 'Mode', | ||
| 146 | as (Int | Str); | ||
| 147 | |||
| 148 | declare 'CommitResponse', | ||
| 149 | as InstanceOf['Google::Datastore::V1beta3::Datastore::CommitResponse']; | ||
| 150 | |||
| 151 | coerce 'CommitResponse', | ||
| 152 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::CommitResponse'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedCommitResponse', | ||
| 155 | as ArrayRef[CommitResponse()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedCommitResponse', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::CommitResponse'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringCommitResponse', | ||
| 161 | as HashRef[CommitResponse()]; | ||
| 162 | |||
| 163 | declare 'AllocateIdsRequest', | ||
| 164 | as InstanceOf['Google::Datastore::V1beta3::Datastore::AllocateIdsRequest']; | ||
| 165 | |||
| 166 | coerce 'AllocateIdsRequest', | ||
| 167 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::AllocateIdsRequest'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedAllocateIdsRequest', | ||
| 170 | as ArrayRef[AllocateIdsRequest()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedAllocateIdsRequest', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::AllocateIdsRequest'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringAllocateIdsRequest', | ||
| 176 | as HashRef[AllocateIdsRequest()]; | ||
| 177 | |||
| 178 | declare 'AllocateIdsResponse', | ||
| 179 | as InstanceOf['Google::Datastore::V1beta3::Datastore::AllocateIdsResponse']; | ||
| 180 | |||
| 181 | coerce 'AllocateIdsResponse', | ||
| 182 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::AllocateIdsResponse'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedAllocateIdsResponse', | ||
| 185 | as ArrayRef[AllocateIdsResponse()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedAllocateIdsResponse', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::AllocateIdsResponse'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringAllocateIdsResponse', | ||
| 191 | as HashRef[AllocateIdsResponse()]; | ||
| 192 | |||
| 193 | declare 'ReserveIdsRequest', | ||
| 194 | as InstanceOf['Google::Datastore::V1beta3::Datastore::ReserveIdsRequest']; | ||
| 195 | |||
| 196 | coerce 'ReserveIdsRequest', | ||
| 197 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::ReserveIdsRequest'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedReserveIdsRequest', | ||
| 200 | as ArrayRef[ReserveIdsRequest()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedReserveIdsRequest', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::ReserveIdsRequest'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringReserveIdsRequest', | ||
| 206 | as HashRef[ReserveIdsRequest()]; | ||
| 207 | |||
| 208 | declare 'ReserveIdsResponse', | ||
| 209 | as InstanceOf['Google::Datastore::V1beta3::Datastore::ReserveIdsResponse']; | ||
| 210 | |||
| 211 | coerce 'ReserveIdsResponse', | ||
| 212 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::ReserveIdsResponse'->new($_) }; | ||
| 213 | |||
| 214 | declare 'RepeatedReserveIdsResponse', | ||
| 215 | as ArrayRef[ReserveIdsResponse()]; | ||
| 216 | |||
| 217 | coerce 'RepeatedReserveIdsResponse', | ||
| 218 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::ReserveIdsResponse'->new($_) } @$_ ] }; | ||
| 219 | |||
| 220 | declare 'MapStringReserveIdsResponse', | ||
| 221 | as HashRef[ReserveIdsResponse()]; | ||
| 222 | |||
| 223 | declare 'Mutation', | ||
| 224 | as InstanceOf['Google::Datastore::V1beta3::Datastore::Mutation']; | ||
| 225 | |||
| 226 | coerce 'Mutation', | ||
| 227 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::Mutation'->new($_) }; | ||
| 228 | |||
| 229 | declare 'RepeatedMutation', | ||
| 230 | as ArrayRef[Mutation()]; | ||
| 231 | |||
| 232 | coerce 'RepeatedMutation', | ||
| 233 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::Mutation'->new($_) } @$_ ] }; | ||
| 234 | |||
| 235 | declare 'MapStringMutation', | ||
| 236 | as HashRef[Mutation()]; | ||
| 237 | |||
| 238 | declare 'MutationResult', | ||
| 239 | as InstanceOf['Google::Datastore::V1beta3::Datastore::MutationResult']; | ||
| 240 | |||
| 241 | coerce 'MutationResult', | ||
| 242 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::MutationResult'->new($_) }; | ||
| 243 | |||
| 244 | declare 'RepeatedMutationResult', | ||
| 245 | as ArrayRef[MutationResult()]; | ||
| 246 | |||
| 247 | coerce 'RepeatedMutationResult', | ||
| 248 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::MutationResult'->new($_) } @$_ ] }; | ||
| 249 | |||
| 250 | declare 'MapStringMutationResult', | ||
| 251 | as HashRef[MutationResult()]; | ||
| 252 | |||
| 253 | declare 'ReadOptions', | ||
| 254 | as InstanceOf['Google::Datastore::V1beta3::Datastore::ReadOptions']; | ||
| 255 | |||
| 256 | coerce 'ReadOptions', | ||
| 257 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::ReadOptions'->new($_) }; | ||
| 258 | |||
| 259 | declare 'RepeatedReadOptions', | ||
| 260 | as ArrayRef[ReadOptions()]; | ||
| 261 | |||
| 262 | coerce 'RepeatedReadOptions', | ||
| 263 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::ReadOptions'->new($_) } @$_ ] }; | ||
| 264 | |||
| 265 | declare 'MapStringReadOptions', | ||
| 266 | as HashRef[ReadOptions()]; | ||
| 267 | |||
| 268 | declare 'ReadConsistency', | ||
| 269 | as (Int | Str); | ||
| 270 | |||
| 271 | declare 'TransactionOptions', | ||
| 272 | as InstanceOf['Google::Datastore::V1beta3::Datastore::TransactionOptions']; | ||
| 273 | |||
| 274 | coerce 'TransactionOptions', | ||
| 275 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::TransactionOptions'->new($_) }; | ||
| 276 | |||
| 277 | declare 'RepeatedTransactionOptions', | ||
| 278 | as ArrayRef[TransactionOptions()]; | ||
| 279 | |||
| 280 | coerce 'RepeatedTransactionOptions', | ||
| 281 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::TransactionOptions'->new($_) } @$_ ] }; | ||
| 282 | |||
| 283 | declare 'MapStringTransactionOptions', | ||
| 284 | as HashRef[TransactionOptions()]; | ||
| 285 | |||
| 286 | declare 'ReadWrite', | ||
| 287 | as InstanceOf['Google::Datastore::V1beta3::Datastore::TransactionOptions::ReadWrite']; | ||
| 288 | |||
| 289 | coerce 'ReadWrite', | ||
| 290 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::TransactionOptions::ReadWrite'->new($_) }; | ||
| 291 | |||
| 292 | declare 'RepeatedReadWrite', | ||
| 293 | as ArrayRef[ReadWrite()]; | ||
| 294 | |||
| 295 | coerce 'RepeatedReadWrite', | ||
| 296 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::TransactionOptions::ReadWrite'->new($_) } @$_ ] }; | ||
| 297 | |||
| 298 | declare 'MapStringReadWrite', | ||
| 299 | as HashRef[ReadWrite()]; | ||
| 300 | |||
| 301 | declare 'ReadOnly', | ||
| 302 | as InstanceOf['Google::Datastore::V1beta3::Datastore::TransactionOptions::ReadOnly']; | ||
| 303 | |||
| 304 | coerce 'ReadOnly', | ||
| 305 | from HashRef, via { 'Google::Datastore::V1beta3::Datastore::TransactionOptions::ReadOnly'->new($_) }; | ||
| 306 | |||
| 307 | declare 'RepeatedReadOnly', | ||
| 308 | as ArrayRef[ReadOnly()]; | ||
| 309 | |||
| 310 | coerce 'RepeatedReadOnly', | ||
| 311 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Datastore::TransactionOptions::ReadOnly'->new($_) } @$_ ] }; | ||
| 312 | |||
| 313 | declare 'MapStringReadOnly', | ||
| 314 | as HashRef[ReadOnly()]; | ||
| 315 | |||
| 316 | 1; | ||
| 317 | |||
| 318 | __END__ |