| 1 | package Google::Datastore::V1::AggregationResult::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 'AggregationResult', | ||
| 11 | as InstanceOf['Google::Datastore::V1::AggregationResult::AggregationResult']; | ||
| 12 | |||
| 13 | coerce 'AggregationResult', | ||
| 14 | from HashRef, via { 'Google::Datastore::V1::AggregationResult::AggregationResult'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAggregationResult', | ||
| 17 | as ArrayRef[AggregationResult()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAggregationResult', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1::AggregationResult::AggregationResult'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAggregationResult', | ||
| 23 | as HashRef[AggregationResult()]; | ||
| 24 | |||
| 25 | declare 'AggregatePropertiesEntry', | ||
| 26 | as InstanceOf['Google::Datastore::V1::AggregationResult::AggregationResult::AggregatePropertiesEntry']; | ||
| 27 | |||
| 28 | coerce 'AggregatePropertiesEntry', | ||
| 29 | from HashRef, via { 'Google::Datastore::V1::AggregationResult::AggregationResult::AggregatePropertiesEntry'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedAggregatePropertiesEntry', | ||
| 32 | as ArrayRef[AggregatePropertiesEntry()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedAggregatePropertiesEntry', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1::AggregationResult::AggregationResult::AggregatePropertiesEntry'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringAggregatePropertiesEntry', | ||
| 38 | as HashRef[AggregatePropertiesEntry()]; | ||
| 39 | |||
| 40 | declare 'AggregationResultBatch', | ||
| 41 | as InstanceOf['Google::Datastore::V1::AggregationResult::AggregationResultBatch']; | ||
| 42 | |||
| 43 | coerce 'AggregationResultBatch', | ||
| 44 | from HashRef, via { 'Google::Datastore::V1::AggregationResult::AggregationResultBatch'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedAggregationResultBatch', | ||
| 47 | as ArrayRef[AggregationResultBatch()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedAggregationResultBatch', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1::AggregationResult::AggregationResultBatch'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringAggregationResultBatch', | ||
| 53 | as HashRef[AggregationResultBatch()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |