| 1 | package Google::Cloud::Datalabeling::V1beta1::Dataset::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 'DataType', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'Dataset', | ||
| 14 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::Dataset']; | ||
| 15 | |||
| 16 | coerce 'Dataset', | ||
| 17 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::Dataset'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedDataset', | ||
| 20 | as ArrayRef[Dataset()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedDataset', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::Dataset'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringDataset', | ||
| 26 | as HashRef[Dataset()]; | ||
| 27 | |||
| 28 | declare 'InputConfig', | ||
| 29 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::InputConfig']; | ||
| 30 | |||
| 31 | coerce 'InputConfig', | ||
| 32 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::InputConfig'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedInputConfig', | ||
| 35 | as ArrayRef[InputConfig()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedInputConfig', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::InputConfig'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringInputConfig', | ||
| 41 | as HashRef[InputConfig()]; | ||
| 42 | |||
| 43 | declare 'TextMetadata', | ||
| 44 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::TextMetadata']; | ||
| 45 | |||
| 46 | coerce 'TextMetadata', | ||
| 47 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::TextMetadata'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedTextMetadata', | ||
| 50 | as ArrayRef[TextMetadata()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedTextMetadata', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::TextMetadata'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringTextMetadata', | ||
| 56 | as HashRef[TextMetadata()]; | ||
| 57 | |||
| 58 | declare 'ClassificationMetadata', | ||
| 59 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::ClassificationMetadata']; | ||
| 60 | |||
| 61 | coerce 'ClassificationMetadata', | ||
| 62 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::ClassificationMetadata'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedClassificationMetadata', | ||
| 65 | as ArrayRef[ClassificationMetadata()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedClassificationMetadata', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::ClassificationMetadata'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringClassificationMetadata', | ||
| 71 | as HashRef[ClassificationMetadata()]; | ||
| 72 | |||
| 73 | declare 'GcsSource', | ||
| 74 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::GcsSource']; | ||
| 75 | |||
| 76 | coerce 'GcsSource', | ||
| 77 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::GcsSource'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedGcsSource', | ||
| 80 | as ArrayRef[GcsSource()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedGcsSource', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::GcsSource'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringGcsSource', | ||
| 86 | as HashRef[GcsSource()]; | ||
| 87 | |||
| 88 | declare 'BigQuerySource', | ||
| 89 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::BigQuerySource']; | ||
| 90 | |||
| 91 | coerce 'BigQuerySource', | ||
| 92 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::BigQuerySource'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedBigQuerySource', | ||
| 95 | as ArrayRef[BigQuerySource()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedBigQuerySource', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::BigQuerySource'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringBigQuerySource', | ||
| 101 | as HashRef[BigQuerySource()]; | ||
| 102 | |||
| 103 | declare 'OutputConfig', | ||
| 104 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::OutputConfig']; | ||
| 105 | |||
| 106 | coerce 'OutputConfig', | ||
| 107 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::OutputConfig'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedOutputConfig', | ||
| 110 | as ArrayRef[OutputConfig()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedOutputConfig', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::OutputConfig'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringOutputConfig', | ||
| 116 | as HashRef[OutputConfig()]; | ||
| 117 | |||
| 118 | declare 'GcsDestination', | ||
| 119 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::GcsDestination']; | ||
| 120 | |||
| 121 | coerce 'GcsDestination', | ||
| 122 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::GcsDestination'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedGcsDestination', | ||
| 125 | as ArrayRef[GcsDestination()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedGcsDestination', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::GcsDestination'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringGcsDestination', | ||
| 131 | as HashRef[GcsDestination()]; | ||
| 132 | |||
| 133 | declare 'GcsFolderDestination', | ||
| 134 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::GcsFolderDestination']; | ||
| 135 | |||
| 136 | coerce 'GcsFolderDestination', | ||
| 137 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::GcsFolderDestination'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedGcsFolderDestination', | ||
| 140 | as ArrayRef[GcsFolderDestination()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedGcsFolderDestination', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::GcsFolderDestination'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringGcsFolderDestination', | ||
| 146 | as HashRef[GcsFolderDestination()]; | ||
| 147 | |||
| 148 | declare 'DataItem', | ||
| 149 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::DataItem']; | ||
| 150 | |||
| 151 | coerce 'DataItem', | ||
| 152 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::DataItem'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedDataItem', | ||
| 155 | as ArrayRef[DataItem()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedDataItem', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::DataItem'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringDataItem', | ||
| 161 | as HashRef[DataItem()]; | ||
| 162 | |||
| 163 | declare 'AnnotatedDataset', | ||
| 164 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::AnnotatedDataset']; | ||
| 165 | |||
| 166 | coerce 'AnnotatedDataset', | ||
| 167 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::AnnotatedDataset'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedAnnotatedDataset', | ||
| 170 | as ArrayRef[AnnotatedDataset()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedAnnotatedDataset', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::AnnotatedDataset'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringAnnotatedDataset', | ||
| 176 | as HashRef[AnnotatedDataset()]; | ||
| 177 | |||
| 178 | declare 'LabelStats', | ||
| 179 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::LabelStats']; | ||
| 180 | |||
| 181 | coerce 'LabelStats', | ||
| 182 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::LabelStats'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedLabelStats', | ||
| 185 | as ArrayRef[LabelStats()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedLabelStats', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::LabelStats'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringLabelStats', | ||
| 191 | as HashRef[LabelStats()]; | ||
| 192 | |||
| 193 | declare 'ExampleCountEntry', | ||
| 194 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::LabelStats::ExampleCountEntry']; | ||
| 195 | |||
| 196 | coerce 'ExampleCountEntry', | ||
| 197 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::LabelStats::ExampleCountEntry'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedExampleCountEntry', | ||
| 200 | as ArrayRef[ExampleCountEntry()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedExampleCountEntry', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::LabelStats::ExampleCountEntry'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringExampleCountEntry', | ||
| 206 | as HashRef[ExampleCountEntry()]; | ||
| 207 | |||
| 208 | declare 'AnnotatedDatasetMetadata', | ||
| 209 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::AnnotatedDatasetMetadata']; | ||
| 210 | |||
| 211 | coerce 'AnnotatedDatasetMetadata', | ||
| 212 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::AnnotatedDatasetMetadata'->new($_) }; | ||
| 213 | |||
| 214 | declare 'RepeatedAnnotatedDatasetMetadata', | ||
| 215 | as ArrayRef[AnnotatedDatasetMetadata()]; | ||
| 216 | |||
| 217 | coerce 'RepeatedAnnotatedDatasetMetadata', | ||
| 218 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::AnnotatedDatasetMetadata'->new($_) } @$_ ] }; | ||
| 219 | |||
| 220 | declare 'MapStringAnnotatedDatasetMetadata', | ||
| 221 | as HashRef[AnnotatedDatasetMetadata()]; | ||
| 222 | |||
| 223 | declare 'Example', | ||
| 224 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Dataset::Example']; | ||
| 225 | |||
| 226 | coerce 'Example', | ||
| 227 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Dataset::Example'->new($_) }; | ||
| 228 | |||
| 229 | declare 'RepeatedExample', | ||
| 230 | as ArrayRef[Example()]; | ||
| 231 | |||
| 232 | coerce 'RepeatedExample', | ||
| 233 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Dataset::Example'->new($_) } @$_ ] }; | ||
| 234 | |||
| 235 | declare 'MapStringExample', | ||
| 236 | as HashRef[Example()]; | ||
| 237 | |||
| 238 | 1; | ||
| 239 | |||
| 240 | __END__ |