| 1 | package Google::Cloud::Datalabeling::V1beta1::Evaluation::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 'Evaluation', | ||
| 11 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::Evaluation']; | ||
| 12 | |||
| 13 | coerce 'Evaluation', | ||
| 14 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::Evaluation'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedEvaluation', | ||
| 17 | as ArrayRef[Evaluation()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedEvaluation', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::Evaluation'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringEvaluation', | ||
| 23 | as HashRef[Evaluation()]; | ||
| 24 | |||
| 25 | declare 'EvaluationConfig', | ||
| 26 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::EvaluationConfig']; | ||
| 27 | |||
| 28 | coerce 'EvaluationConfig', | ||
| 29 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::EvaluationConfig'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedEvaluationConfig', | ||
| 32 | as ArrayRef[EvaluationConfig()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedEvaluationConfig', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::EvaluationConfig'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringEvaluationConfig', | ||
| 38 | as HashRef[EvaluationConfig()]; | ||
| 39 | |||
| 40 | declare 'BoundingBoxEvaluationOptions', | ||
| 41 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::BoundingBoxEvaluationOptions']; | ||
| 42 | |||
| 43 | coerce 'BoundingBoxEvaluationOptions', | ||
| 44 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::BoundingBoxEvaluationOptions'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedBoundingBoxEvaluationOptions', | ||
| 47 | as ArrayRef[BoundingBoxEvaluationOptions()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedBoundingBoxEvaluationOptions', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::BoundingBoxEvaluationOptions'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringBoundingBoxEvaluationOptions', | ||
| 53 | as HashRef[BoundingBoxEvaluationOptions()]; | ||
| 54 | |||
| 55 | declare 'EvaluationMetrics', | ||
| 56 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::EvaluationMetrics']; | ||
| 57 | |||
| 58 | coerce 'EvaluationMetrics', | ||
| 59 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::EvaluationMetrics'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedEvaluationMetrics', | ||
| 62 | as ArrayRef[EvaluationMetrics()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedEvaluationMetrics', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::EvaluationMetrics'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringEvaluationMetrics', | ||
| 68 | as HashRef[EvaluationMetrics()]; | ||
| 69 | |||
| 70 | declare 'ClassificationMetrics', | ||
| 71 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::ClassificationMetrics']; | ||
| 72 | |||
| 73 | coerce 'ClassificationMetrics', | ||
| 74 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::ClassificationMetrics'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedClassificationMetrics', | ||
| 77 | as ArrayRef[ClassificationMetrics()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedClassificationMetrics', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::ClassificationMetrics'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringClassificationMetrics', | ||
| 83 | as HashRef[ClassificationMetrics()]; | ||
| 84 | |||
| 85 | declare 'ObjectDetectionMetrics', | ||
| 86 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::ObjectDetectionMetrics']; | ||
| 87 | |||
| 88 | coerce 'ObjectDetectionMetrics', | ||
| 89 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::ObjectDetectionMetrics'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedObjectDetectionMetrics', | ||
| 92 | as ArrayRef[ObjectDetectionMetrics()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedObjectDetectionMetrics', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::ObjectDetectionMetrics'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringObjectDetectionMetrics', | ||
| 98 | as HashRef[ObjectDetectionMetrics()]; | ||
| 99 | |||
| 100 | declare 'PrCurve', | ||
| 101 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::PrCurve']; | ||
| 102 | |||
| 103 | coerce 'PrCurve', | ||
| 104 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::PrCurve'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedPrCurve', | ||
| 107 | as ArrayRef[PrCurve()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedPrCurve', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::PrCurve'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringPrCurve', | ||
| 113 | as HashRef[PrCurve()]; | ||
| 114 | |||
| 115 | declare 'ConfidenceMetricsEntry', | ||
| 116 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::PrCurve::ConfidenceMetricsEntry']; | ||
| 117 | |||
| 118 | coerce 'ConfidenceMetricsEntry', | ||
| 119 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::PrCurve::ConfidenceMetricsEntry'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedConfidenceMetricsEntry', | ||
| 122 | as ArrayRef[ConfidenceMetricsEntry()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedConfidenceMetricsEntry', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::PrCurve::ConfidenceMetricsEntry'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringConfidenceMetricsEntry', | ||
| 128 | as HashRef[ConfidenceMetricsEntry()]; | ||
| 129 | |||
| 130 | declare 'ConfusionMatrix', | ||
| 131 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::ConfusionMatrix']; | ||
| 132 | |||
| 133 | coerce 'ConfusionMatrix', | ||
| 134 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::ConfusionMatrix'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedConfusionMatrix', | ||
| 137 | as ArrayRef[ConfusionMatrix()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedConfusionMatrix', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::ConfusionMatrix'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringConfusionMatrix', | ||
| 143 | as HashRef[ConfusionMatrix()]; | ||
| 144 | |||
| 145 | declare 'ConfusionMatrixEntry', | ||
| 146 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::ConfusionMatrix::ConfusionMatrixEntry']; | ||
| 147 | |||
| 148 | coerce 'ConfusionMatrixEntry', | ||
| 149 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::ConfusionMatrix::ConfusionMatrixEntry'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedConfusionMatrixEntry', | ||
| 152 | as ArrayRef[ConfusionMatrixEntry()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedConfusionMatrixEntry', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::ConfusionMatrix::ConfusionMatrixEntry'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringConfusionMatrixEntry', | ||
| 158 | as HashRef[ConfusionMatrixEntry()]; | ||
| 159 | |||
| 160 | declare 'Row', | ||
| 161 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Evaluation::ConfusionMatrix::Row']; | ||
| 162 | |||
| 163 | coerce 'Row', | ||
| 164 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::ConfusionMatrix::Row'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedRow', | ||
| 167 | as ArrayRef[Row()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedRow', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Evaluation::ConfusionMatrix::Row'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringRow', | ||
| 173 | as HashRef[Row()]; | ||
| 174 | |||
| 175 | 1; | ||
| 176 | |||
| 177 | __END__ |