| 1 | package Google::Cloud::Automl::V1beta1::DataStats::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 'DataStats', | ||
| 11 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::DataStats']; | ||
| 12 | |||
| 13 | coerce 'DataStats', | ||
| 14 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::DataStats'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDataStats', | ||
| 17 | as ArrayRef[DataStats()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDataStats', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::DataStats'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDataStats', | ||
| 23 | as HashRef[DataStats()]; | ||
| 24 | |||
| 25 | declare 'Float64Stats', | ||
| 26 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::Float64Stats']; | ||
| 27 | |||
| 28 | coerce 'Float64Stats', | ||
| 29 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::Float64Stats'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedFloat64Stats', | ||
| 32 | as ArrayRef[Float64Stats()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedFloat64Stats', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::Float64Stats'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringFloat64Stats', | ||
| 38 | as HashRef[Float64Stats()]; | ||
| 39 | |||
| 40 | declare 'HistogramBucket', | ||
| 41 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::Float64Stats::HistogramBucket']; | ||
| 42 | |||
| 43 | coerce 'HistogramBucket', | ||
| 44 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::Float64Stats::HistogramBucket'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedHistogramBucket', | ||
| 47 | as ArrayRef[HistogramBucket()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedHistogramBucket', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::Float64Stats::HistogramBucket'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringHistogramBucket', | ||
| 53 | as HashRef[HistogramBucket()]; | ||
| 54 | |||
| 55 | declare 'StringStats', | ||
| 56 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::StringStats']; | ||
| 57 | |||
| 58 | coerce 'StringStats', | ||
| 59 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::StringStats'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedStringStats', | ||
| 62 | as ArrayRef[StringStats()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedStringStats', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::StringStats'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringStringStats', | ||
| 68 | as HashRef[StringStats()]; | ||
| 69 | |||
| 70 | declare 'UnigramStats', | ||
| 71 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::StringStats::UnigramStats']; | ||
| 72 | |||
| 73 | coerce 'UnigramStats', | ||
| 74 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::StringStats::UnigramStats'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedUnigramStats', | ||
| 77 | as ArrayRef[UnigramStats()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedUnigramStats', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::StringStats::UnigramStats'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringUnigramStats', | ||
| 83 | as HashRef[UnigramStats()]; | ||
| 84 | |||
| 85 | declare 'TimestampStats', | ||
| 86 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::TimestampStats']; | ||
| 87 | |||
| 88 | coerce 'TimestampStats', | ||
| 89 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::TimestampStats'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedTimestampStats', | ||
| 92 | as ArrayRef[TimestampStats()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedTimestampStats', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::TimestampStats'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringTimestampStats', | ||
| 98 | as HashRef[TimestampStats()]; | ||
| 99 | |||
| 100 | declare 'GranularStats', | ||
| 101 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::TimestampStats::GranularStats']; | ||
| 102 | |||
| 103 | coerce 'GranularStats', | ||
| 104 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::TimestampStats::GranularStats'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedGranularStats', | ||
| 107 | as ArrayRef[GranularStats()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedGranularStats', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::TimestampStats::GranularStats'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringGranularStats', | ||
| 113 | as HashRef[GranularStats()]; | ||
| 114 | |||
| 115 | declare 'BucketsEntry', | ||
| 116 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::TimestampStats::GranularStats::BucketsEntry']; | ||
| 117 | |||
| 118 | coerce 'BucketsEntry', | ||
| 119 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::TimestampStats::GranularStats::BucketsEntry'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedBucketsEntry', | ||
| 122 | as ArrayRef[BucketsEntry()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedBucketsEntry', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::TimestampStats::GranularStats::BucketsEntry'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringBucketsEntry', | ||
| 128 | as HashRef[BucketsEntry()]; | ||
| 129 | |||
| 130 | declare 'GranularStatsEntry', | ||
| 131 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::TimestampStats::GranularStatsEntry']; | ||
| 132 | |||
| 133 | coerce 'GranularStatsEntry', | ||
| 134 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::TimestampStats::GranularStatsEntry'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedGranularStatsEntry', | ||
| 137 | as ArrayRef[GranularStatsEntry()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedGranularStatsEntry', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::TimestampStats::GranularStatsEntry'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringGranularStatsEntry', | ||
| 143 | as HashRef[GranularStatsEntry()]; | ||
| 144 | |||
| 145 | declare 'ArrayStats', | ||
| 146 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::ArrayStats']; | ||
| 147 | |||
| 148 | coerce 'ArrayStats', | ||
| 149 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::ArrayStats'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedArrayStats', | ||
| 152 | as ArrayRef[ArrayStats()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedArrayStats', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::ArrayStats'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringArrayStats', | ||
| 158 | as HashRef[ArrayStats()]; | ||
| 159 | |||
| 160 | declare 'StructStats', | ||
| 161 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::StructStats']; | ||
| 162 | |||
| 163 | coerce 'StructStats', | ||
| 164 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::StructStats'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedStructStats', | ||
| 167 | as ArrayRef[StructStats()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedStructStats', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::StructStats'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringStructStats', | ||
| 173 | as HashRef[StructStats()]; | ||
| 174 | |||
| 175 | declare 'FieldStatsEntry', | ||
| 176 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::StructStats::FieldStatsEntry']; | ||
| 177 | |||
| 178 | coerce 'FieldStatsEntry', | ||
| 179 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::StructStats::FieldStatsEntry'->new($_) }; | ||
| 180 | |||
| 181 | declare 'RepeatedFieldStatsEntry', | ||
| 182 | as ArrayRef[FieldStatsEntry()]; | ||
| 183 | |||
| 184 | coerce 'RepeatedFieldStatsEntry', | ||
| 185 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::StructStats::FieldStatsEntry'->new($_) } @$_ ] }; | ||
| 186 | |||
| 187 | declare 'MapStringFieldStatsEntry', | ||
| 188 | as HashRef[FieldStatsEntry()]; | ||
| 189 | |||
| 190 | declare 'CategoryStats', | ||
| 191 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::CategoryStats']; | ||
| 192 | |||
| 193 | coerce 'CategoryStats', | ||
| 194 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::CategoryStats'->new($_) }; | ||
| 195 | |||
| 196 | declare 'RepeatedCategoryStats', | ||
| 197 | as ArrayRef[CategoryStats()]; | ||
| 198 | |||
| 199 | coerce 'RepeatedCategoryStats', | ||
| 200 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::CategoryStats'->new($_) } @$_ ] }; | ||
| 201 | |||
| 202 | declare 'MapStringCategoryStats', | ||
| 203 | as HashRef[CategoryStats()]; | ||
| 204 | |||
| 205 | declare 'SingleCategoryStats', | ||
| 206 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::CategoryStats::SingleCategoryStats']; | ||
| 207 | |||
| 208 | coerce 'SingleCategoryStats', | ||
| 209 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::CategoryStats::SingleCategoryStats'->new($_) }; | ||
| 210 | |||
| 211 | declare 'RepeatedSingleCategoryStats', | ||
| 212 | as ArrayRef[SingleCategoryStats()]; | ||
| 213 | |||
| 214 | coerce 'RepeatedSingleCategoryStats', | ||
| 215 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::CategoryStats::SingleCategoryStats'->new($_) } @$_ ] }; | ||
| 216 | |||
| 217 | declare 'MapStringSingleCategoryStats', | ||
| 218 | as HashRef[SingleCategoryStats()]; | ||
| 219 | |||
| 220 | declare 'CorrelationStats', | ||
| 221 | as InstanceOf['Google::Cloud::Automl::V1beta1::DataStats::CorrelationStats']; | ||
| 222 | |||
| 223 | coerce 'CorrelationStats', | ||
| 224 | from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataStats::CorrelationStats'->new($_) }; | ||
| 225 | |||
| 226 | declare 'RepeatedCorrelationStats', | ||
| 227 | as ArrayRef[CorrelationStats()]; | ||
| 228 | |||
| 229 | coerce 'RepeatedCorrelationStats', | ||
| 230 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataStats::CorrelationStats'->new($_) } @$_ ] }; | ||
| 231 | |||
| 232 | declare 'MapStringCorrelationStats', | ||
| 233 | as HashRef[CorrelationStats()]; | ||
| 234 | |||
| 235 | 1; | ||
| 236 | |||
| 237 | __END__ |