| 1 | package Google::Cloud::Talent::V4::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::Talent::V4::Histogram::HistogramQuery']; | ||
| 12 | |||
| 13 | coerce 'HistogramQuery', | ||
| 14 | from HashRef, via { 'Google::Cloud::Talent::V4::Histogram::HistogramQuery'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedHistogramQuery', | ||
| 17 | as ArrayRef[HistogramQuery()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedHistogramQuery', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Talent::V4::Histogram::HistogramQuery'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringHistogramQuery', | ||
| 23 | as HashRef[HistogramQuery()]; | ||
| 24 | |||
| 25 | declare 'HistogramQueryResult', | ||
| 26 | as InstanceOf['Google::Cloud::Talent::V4::Histogram::HistogramQueryResult']; | ||
| 27 | |||
| 28 | coerce 'HistogramQueryResult', | ||
| 29 | from HashRef, via { 'Google::Cloud::Talent::V4::Histogram::HistogramQueryResult'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedHistogramQueryResult', | ||
| 32 | as ArrayRef[HistogramQueryResult()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedHistogramQueryResult', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Talent::V4::Histogram::HistogramQueryResult'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringHistogramQueryResult', | ||
| 38 | as HashRef[HistogramQueryResult()]; | ||
| 39 | |||
| 40 | declare 'HistogramEntry', | ||
| 41 | as InstanceOf['Google::Cloud::Talent::V4::Histogram::HistogramQueryResult::HistogramEntry']; | ||
| 42 | |||
| 43 | coerce 'HistogramEntry', | ||
| 44 | from HashRef, via { 'Google::Cloud::Talent::V4::Histogram::HistogramQueryResult::HistogramEntry'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedHistogramEntry', | ||
| 47 | as ArrayRef[HistogramEntry()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedHistogramEntry', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Talent::V4::Histogram::HistogramQueryResult::HistogramEntry'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringHistogramEntry', | ||
| 53 | as HashRef[HistogramEntry()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |