| 1 | package Google::Cloud::Vision::V1::ProductSearch::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 'ProductSearchParams', | ||
| 11 | as InstanceOf['Google::Cloud::Vision::V1::ProductSearch::ProductSearchParams']; | ||
| 12 | |||
| 13 | coerce 'ProductSearchParams', | ||
| 14 | from HashRef, via { 'Google::Cloud::Vision::V1::ProductSearch::ProductSearchParams'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedProductSearchParams', | ||
| 17 | as ArrayRef[ProductSearchParams()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedProductSearchParams', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ProductSearch::ProductSearchParams'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringProductSearchParams', | ||
| 23 | as HashRef[ProductSearchParams()]; | ||
| 24 | |||
| 25 | declare 'ProductSearchResults', | ||
| 26 | as InstanceOf['Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults']; | ||
| 27 | |||
| 28 | coerce 'ProductSearchResults', | ||
| 29 | from HashRef, via { 'Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedProductSearchResults', | ||
| 32 | as ArrayRef[ProductSearchResults()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedProductSearchResults', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringProductSearchResults', | ||
| 38 | as HashRef[ProductSearchResults()]; | ||
| 39 | |||
| 40 | declare 'Result', | ||
| 41 | as InstanceOf['Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults::Result']; | ||
| 42 | |||
| 43 | coerce 'Result', | ||
| 44 | from HashRef, via { 'Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults::Result'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedResult', | ||
| 47 | as ArrayRef[Result()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedResult', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults::Result'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringResult', | ||
| 53 | as HashRef[Result()]; | ||
| 54 | |||
| 55 | declare 'ObjectAnnotation', | ||
| 56 | as InstanceOf['Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults::ObjectAnnotation']; | ||
| 57 | |||
| 58 | coerce 'ObjectAnnotation', | ||
| 59 | from HashRef, via { 'Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults::ObjectAnnotation'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedObjectAnnotation', | ||
| 62 | as ArrayRef[ObjectAnnotation()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedObjectAnnotation', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults::ObjectAnnotation'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringObjectAnnotation', | ||
| 68 | as HashRef[ObjectAnnotation()]; | ||
| 69 | |||
| 70 | declare 'GroupedResult', | ||
| 71 | as InstanceOf['Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults::GroupedResult']; | ||
| 72 | |||
| 73 | coerce 'GroupedResult', | ||
| 74 | from HashRef, via { 'Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults::GroupedResult'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedGroupedResult', | ||
| 77 | as ArrayRef[GroupedResult()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedGroupedResult', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ProductSearch::ProductSearchResults::GroupedResult'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringGroupedResult', | ||
| 83 | as HashRef[GroupedResult()]; | ||
| 84 | |||
| 85 | 1; | ||
| 86 | |||
| 87 | __END__ |