| 1 | package Google::Cloud::Contentwarehouse::V1::Histogram::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 'HistogramQuery', | ||
| 11 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQuery']; | ||
| 12 | |||
| 13 | coerce 'HistogramQuery', | ||
| 14 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQuery'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedHistogramQuery', | ||
| 17 | as ArrayRef[HistogramQuery()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedHistogramQuery', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQuery'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringHistogramQuery', | ||
| 23 | as HashRef[HistogramQuery()]; | ||
| 24 | |||
| 25 | declare 'HistogramQueryPropertyNameFilter', | ||
| 26 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryPropertyNameFilter']; | ||
| 27 | |||
| 28 | coerce 'HistogramQueryPropertyNameFilter', | ||
| 29 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryPropertyNameFilter'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedHistogramQueryPropertyNameFilter', | ||
| 32 | as ArrayRef[HistogramQueryPropertyNameFilter()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedHistogramQueryPropertyNameFilter', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryPropertyNameFilter'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringHistogramQueryPropertyNameFilter', | ||
| 38 | as HashRef[HistogramQueryPropertyNameFilter()]; | ||
| 39 | |||
| 40 | declare 'HistogramYAxis', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'HistogramQueryResult', | ||
| 44 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryResult']; | ||
| 45 | |||
| 46 | coerce 'HistogramQueryResult', | ||
| 47 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryResult'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedHistogramQueryResult', | ||
| 50 | as ArrayRef[HistogramQueryResult()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedHistogramQueryResult', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryResult'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringHistogramQueryResult', | ||
| 56 | as HashRef[HistogramQueryResult()]; | ||
| 57 | |||
| 58 | declare 'HistogramEntry', | ||
| 59 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryResult::HistogramEntry']; | ||
| 60 | |||
| 61 | coerce 'HistogramEntry', | ||
| 62 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryResult::HistogramEntry'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedHistogramEntry', | ||
| 65 | as ArrayRef[HistogramEntry()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedHistogramEntry', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryResult::HistogramEntry'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringHistogramEntry', | ||
| 71 | as HashRef[HistogramEntry()]; | ||
| 72 | |||
| 73 | 1; | ||
| 74 | |||
| 75 | __END__ |