| 1 | package Google::Bigtable::V2::RequestStats::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 'ReadIterationStats', | ||
| 11 | as InstanceOf['Google::Bigtable::V2::RequestStats::ReadIterationStats']; | ||
| 12 | |||
| 13 | coerce 'ReadIterationStats', | ||
| 14 | from HashRef, via { 'Google::Bigtable::V2::RequestStats::ReadIterationStats'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedReadIterationStats', | ||
| 17 | as ArrayRef[ReadIterationStats()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedReadIterationStats', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Bigtable::V2::RequestStats::ReadIterationStats'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringReadIterationStats', | ||
| 23 | as HashRef[ReadIterationStats()]; | ||
| 24 | |||
| 25 | declare 'RequestLatencyStats', | ||
| 26 | as InstanceOf['Google::Bigtable::V2::RequestStats::RequestLatencyStats']; | ||
| 27 | |||
| 28 | coerce 'RequestLatencyStats', | ||
| 29 | from HashRef, via { 'Google::Bigtable::V2::RequestStats::RequestLatencyStats'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedRequestLatencyStats', | ||
| 32 | as ArrayRef[RequestLatencyStats()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedRequestLatencyStats', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Bigtable::V2::RequestStats::RequestLatencyStats'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringRequestLatencyStats', | ||
| 38 | as HashRef[RequestLatencyStats()]; | ||
| 39 | |||
| 40 | declare 'FullReadStatsView', | ||
| 41 | as InstanceOf['Google::Bigtable::V2::RequestStats::FullReadStatsView']; | ||
| 42 | |||
| 43 | coerce 'FullReadStatsView', | ||
| 44 | from HashRef, via { 'Google::Bigtable::V2::RequestStats::FullReadStatsView'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedFullReadStatsView', | ||
| 47 | as ArrayRef[FullReadStatsView()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedFullReadStatsView', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Bigtable::V2::RequestStats::FullReadStatsView'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringFullReadStatsView', | ||
| 53 | as HashRef[FullReadStatsView()]; | ||
| 54 | |||
| 55 | declare 'RequestStats', | ||
| 56 | as InstanceOf['Google::Bigtable::V2::RequestStats::RequestStats']; | ||
| 57 | |||
| 58 | coerce 'RequestStats', | ||
| 59 | from HashRef, via { 'Google::Bigtable::V2::RequestStats::RequestStats'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedRequestStats', | ||
| 62 | as ArrayRef[RequestStats()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedRequestStats', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Bigtable::V2::RequestStats::RequestStats'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringRequestStats', | ||
| 68 | as HashRef[RequestStats()]; | ||
| 69 | |||
| 70 | 1; | ||
| 71 | |||
| 72 | __END__ |