| 1 | package Google::Cloud::Automl::V1::Io::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 'InputConfig', | ||
| 11 | as InstanceOf['Google::Cloud::Automl::V1::Io::InputConfig']; | ||
| 12 | |||
| 13 | coerce 'InputConfig', | ||
| 14 | from HashRef, via { 'Google::Cloud::Automl::V1::Io::InputConfig'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedInputConfig', | ||
| 17 | as ArrayRef[InputConfig()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedInputConfig', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Io::InputConfig'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringInputConfig', | ||
| 23 | as HashRef[InputConfig()]; | ||
| 24 | |||
| 25 | declare 'ParamsEntry', | ||
| 26 | as InstanceOf['Google::Cloud::Automl::V1::Io::InputConfig::ParamsEntry']; | ||
| 27 | |||
| 28 | coerce 'ParamsEntry', | ||
| 29 | from HashRef, via { 'Google::Cloud::Automl::V1::Io::InputConfig::ParamsEntry'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedParamsEntry', | ||
| 32 | as ArrayRef[ParamsEntry()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedParamsEntry', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Io::InputConfig::ParamsEntry'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringParamsEntry', | ||
| 38 | as HashRef[ParamsEntry()]; | ||
| 39 | |||
| 40 | declare 'BatchPredictInputConfig', | ||
| 41 | as InstanceOf['Google::Cloud::Automl::V1::Io::BatchPredictInputConfig']; | ||
| 42 | |||
| 43 | coerce 'BatchPredictInputConfig', | ||
| 44 | from HashRef, via { 'Google::Cloud::Automl::V1::Io::BatchPredictInputConfig'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedBatchPredictInputConfig', | ||
| 47 | as ArrayRef[BatchPredictInputConfig()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedBatchPredictInputConfig', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Io::BatchPredictInputConfig'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringBatchPredictInputConfig', | ||
| 53 | as HashRef[BatchPredictInputConfig()]; | ||
| 54 | |||
| 55 | declare 'DocumentInputConfig', | ||
| 56 | as InstanceOf['Google::Cloud::Automl::V1::Io::DocumentInputConfig']; | ||
| 57 | |||
| 58 | coerce 'DocumentInputConfig', | ||
| 59 | from HashRef, via { 'Google::Cloud::Automl::V1::Io::DocumentInputConfig'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedDocumentInputConfig', | ||
| 62 | as ArrayRef[DocumentInputConfig()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedDocumentInputConfig', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Io::DocumentInputConfig'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringDocumentInputConfig', | ||
| 68 | as HashRef[DocumentInputConfig()]; | ||
| 69 | |||
| 70 | declare 'OutputConfig', | ||
| 71 | as InstanceOf['Google::Cloud::Automl::V1::Io::OutputConfig']; | ||
| 72 | |||
| 73 | coerce 'OutputConfig', | ||
| 74 | from HashRef, via { 'Google::Cloud::Automl::V1::Io::OutputConfig'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedOutputConfig', | ||
| 77 | as ArrayRef[OutputConfig()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedOutputConfig', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Io::OutputConfig'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringOutputConfig', | ||
| 83 | as HashRef[OutputConfig()]; | ||
| 84 | |||
| 85 | declare 'BatchPredictOutputConfig', | ||
| 86 | as InstanceOf['Google::Cloud::Automl::V1::Io::BatchPredictOutputConfig']; | ||
| 87 | |||
| 88 | coerce 'BatchPredictOutputConfig', | ||
| 89 | from HashRef, via { 'Google::Cloud::Automl::V1::Io::BatchPredictOutputConfig'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedBatchPredictOutputConfig', | ||
| 92 | as ArrayRef[BatchPredictOutputConfig()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedBatchPredictOutputConfig', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Io::BatchPredictOutputConfig'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringBatchPredictOutputConfig', | ||
| 98 | as HashRef[BatchPredictOutputConfig()]; | ||
| 99 | |||
| 100 | declare 'ModelExportOutputConfig', | ||
| 101 | as InstanceOf['Google::Cloud::Automl::V1::Io::ModelExportOutputConfig']; | ||
| 102 | |||
| 103 | coerce 'ModelExportOutputConfig', | ||
| 104 | from HashRef, via { 'Google::Cloud::Automl::V1::Io::ModelExportOutputConfig'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedModelExportOutputConfig', | ||
| 107 | as ArrayRef[ModelExportOutputConfig()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedModelExportOutputConfig', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Io::ModelExportOutputConfig'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringModelExportOutputConfig', | ||
| 113 | as HashRef[ModelExportOutputConfig()]; | ||
| 114 | |||
| 115 | declare 'ParamsEntry', | ||
| 116 | as InstanceOf['Google::Cloud::Automl::V1::Io::ModelExportOutputConfig::ParamsEntry']; | ||
| 117 | |||
| 118 | coerce 'ParamsEntry', | ||
| 119 | from HashRef, via { 'Google::Cloud::Automl::V1::Io::ModelExportOutputConfig::ParamsEntry'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedParamsEntry', | ||
| 122 | as ArrayRef[ParamsEntry()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedParamsEntry', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Io::ModelExportOutputConfig::ParamsEntry'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringParamsEntry', | ||
| 128 | as HashRef[ParamsEntry()]; | ||
| 129 | |||
| 130 | declare 'GcsSource', | ||
| 131 | as InstanceOf['Google::Cloud::Automl::V1::Io::GcsSource']; | ||
| 132 | |||
| 133 | coerce 'GcsSource', | ||
| 134 | from HashRef, via { 'Google::Cloud::Automl::V1::Io::GcsSource'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedGcsSource', | ||
| 137 | as ArrayRef[GcsSource()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedGcsSource', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Io::GcsSource'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringGcsSource', | ||
| 143 | as HashRef[GcsSource()]; | ||
| 144 | |||
| 145 | declare 'GcsDestination', | ||
| 146 | as InstanceOf['Google::Cloud::Automl::V1::Io::GcsDestination']; | ||
| 147 | |||
| 148 | coerce 'GcsDestination', | ||
| 149 | from HashRef, via { 'Google::Cloud::Automl::V1::Io::GcsDestination'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedGcsDestination', | ||
| 152 | as ArrayRef[GcsDestination()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedGcsDestination', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Io::GcsDestination'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringGcsDestination', | ||
| 158 | as HashRef[GcsDestination()]; | ||
| 159 | |||
| 160 | 1; | ||
| 161 | |||
| 162 | __END__ |