| 1 | package Google::Firestore::V1beta1::Common::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 'DocumentMask', | ||
| 11 | as InstanceOf['Google::Firestore::V1beta1::Common::DocumentMask']; | ||
| 12 | |||
| 13 | coerce 'DocumentMask', | ||
| 14 | from HashRef, via { 'Google::Firestore::V1beta1::Common::DocumentMask'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDocumentMask', | ||
| 17 | as ArrayRef[DocumentMask()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDocumentMask', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Common::DocumentMask'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDocumentMask', | ||
| 23 | as HashRef[DocumentMask()]; | ||
| 24 | |||
| 25 | declare 'Precondition', | ||
| 26 | as InstanceOf['Google::Firestore::V1beta1::Common::Precondition']; | ||
| 27 | |||
| 28 | coerce 'Precondition', | ||
| 29 | from HashRef, via { 'Google::Firestore::V1beta1::Common::Precondition'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedPrecondition', | ||
| 32 | as ArrayRef[Precondition()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedPrecondition', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Common::Precondition'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringPrecondition', | ||
| 38 | as HashRef[Precondition()]; | ||
| 39 | |||
| 40 | declare 'TransactionOptions', | ||
| 41 | as InstanceOf['Google::Firestore::V1beta1::Common::TransactionOptions']; | ||
| 42 | |||
| 43 | coerce 'TransactionOptions', | ||
| 44 | from HashRef, via { 'Google::Firestore::V1beta1::Common::TransactionOptions'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedTransactionOptions', | ||
| 47 | as ArrayRef[TransactionOptions()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedTransactionOptions', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Common::TransactionOptions'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringTransactionOptions', | ||
| 53 | as HashRef[TransactionOptions()]; | ||
| 54 | |||
| 55 | declare 'ReadWrite', | ||
| 56 | as InstanceOf['Google::Firestore::V1beta1::Common::TransactionOptions::ReadWrite']; | ||
| 57 | |||
| 58 | coerce 'ReadWrite', | ||
| 59 | from HashRef, via { 'Google::Firestore::V1beta1::Common::TransactionOptions::ReadWrite'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedReadWrite', | ||
| 62 | as ArrayRef[ReadWrite()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedReadWrite', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Common::TransactionOptions::ReadWrite'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringReadWrite', | ||
| 68 | as HashRef[ReadWrite()]; | ||
| 69 | |||
| 70 | declare 'ReadOnly', | ||
| 71 | as InstanceOf['Google::Firestore::V1beta1::Common::TransactionOptions::ReadOnly']; | ||
| 72 | |||
| 73 | coerce 'ReadOnly', | ||
| 74 | from HashRef, via { 'Google::Firestore::V1beta1::Common::TransactionOptions::ReadOnly'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedReadOnly', | ||
| 77 | as ArrayRef[ReadOnly()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedReadOnly', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Common::TransactionOptions::ReadOnly'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringReadOnly', | ||
| 83 | as HashRef[ReadOnly()]; | ||
| 84 | |||
| 85 | 1; | ||
| 86 | |||
| 87 | __END__ |