| 1 | package Google::Chromeos::Uidetection::V1::UiDetection::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 'UiDetectionRequest', | ||
| 11 | as InstanceOf['Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionRequest']; | ||
| 12 | |||
| 13 | coerce 'UiDetectionRequest', | ||
| 14 | from HashRef, via { 'Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedUiDetectionRequest', | ||
| 17 | as ArrayRef[UiDetectionRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedUiDetectionRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringUiDetectionRequest', | ||
| 23 | as HashRef[UiDetectionRequest()]; | ||
| 24 | |||
| 25 | declare 'DetectionRequest', | ||
| 26 | as InstanceOf['Google::Chromeos::Uidetection::V1::UiDetection::DetectionRequest']; | ||
| 27 | |||
| 28 | coerce 'DetectionRequest', | ||
| 29 | from HashRef, via { 'Google::Chromeos::Uidetection::V1::UiDetection::DetectionRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedDetectionRequest', | ||
| 32 | as ArrayRef[DetectionRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedDetectionRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Chromeos::Uidetection::V1::UiDetection::DetectionRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringDetectionRequest', | ||
| 38 | as HashRef[DetectionRequest()]; | ||
| 39 | |||
| 40 | declare 'TestMetadata', | ||
| 41 | as InstanceOf['Google::Chromeos::Uidetection::V1::UiDetection::TestMetadata']; | ||
| 42 | |||
| 43 | coerce 'TestMetadata', | ||
| 44 | from HashRef, via { 'Google::Chromeos::Uidetection::V1::UiDetection::TestMetadata'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedTestMetadata', | ||
| 47 | as ArrayRef[TestMetadata()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedTestMetadata', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Chromeos::Uidetection::V1::UiDetection::TestMetadata'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringTestMetadata', | ||
| 53 | as HashRef[TestMetadata()]; | ||
| 54 | |||
| 55 | declare 'WordDetectionRequest', | ||
| 56 | as InstanceOf['Google::Chromeos::Uidetection::V1::UiDetection::WordDetectionRequest']; | ||
| 57 | |||
| 58 | coerce 'WordDetectionRequest', | ||
| 59 | from HashRef, via { 'Google::Chromeos::Uidetection::V1::UiDetection::WordDetectionRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedWordDetectionRequest', | ||
| 62 | as ArrayRef[WordDetectionRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedWordDetectionRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Chromeos::Uidetection::V1::UiDetection::WordDetectionRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringWordDetectionRequest', | ||
| 68 | as HashRef[WordDetectionRequest()]; | ||
| 69 | |||
| 70 | declare 'TextBlockDetectionRequest', | ||
| 71 | as InstanceOf['Google::Chromeos::Uidetection::V1::UiDetection::TextBlockDetectionRequest']; | ||
| 72 | |||
| 73 | coerce 'TextBlockDetectionRequest', | ||
| 74 | from HashRef, via { 'Google::Chromeos::Uidetection::V1::UiDetection::TextBlockDetectionRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedTextBlockDetectionRequest', | ||
| 77 | as ArrayRef[TextBlockDetectionRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedTextBlockDetectionRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Chromeos::Uidetection::V1::UiDetection::TextBlockDetectionRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringTextBlockDetectionRequest', | ||
| 83 | as HashRef[TextBlockDetectionRequest()]; | ||
| 84 | |||
| 85 | declare 'CustomIconDetectionRequest', | ||
| 86 | as InstanceOf['Google::Chromeos::Uidetection::V1::UiDetection::CustomIconDetectionRequest']; | ||
| 87 | |||
| 88 | coerce 'CustomIconDetectionRequest', | ||
| 89 | from HashRef, via { 'Google::Chromeos::Uidetection::V1::UiDetection::CustomIconDetectionRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedCustomIconDetectionRequest', | ||
| 92 | as ArrayRef[CustomIconDetectionRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedCustomIconDetectionRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Chromeos::Uidetection::V1::UiDetection::CustomIconDetectionRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringCustomIconDetectionRequest', | ||
| 98 | as HashRef[CustomIconDetectionRequest()]; | ||
| 99 | |||
| 100 | declare 'UiDetectionResponse', | ||
| 101 | as InstanceOf['Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionResponse']; | ||
| 102 | |||
| 103 | coerce 'UiDetectionResponse', | ||
| 104 | from HashRef, via { 'Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionResponse'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedUiDetectionResponse', | ||
| 107 | as ArrayRef[UiDetectionResponse()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedUiDetectionResponse', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionResponse'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringUiDetectionResponse', | ||
| 113 | as HashRef[UiDetectionResponse()]; | ||
| 114 | |||
| 115 | declare 'BoundingBox', | ||
| 116 | as InstanceOf['Google::Chromeos::Uidetection::V1::UiDetection::BoundingBox']; | ||
| 117 | |||
| 118 | coerce 'BoundingBox', | ||
| 119 | from HashRef, via { 'Google::Chromeos::Uidetection::V1::UiDetection::BoundingBox'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedBoundingBox', | ||
| 122 | as ArrayRef[BoundingBox()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedBoundingBox', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Chromeos::Uidetection::V1::UiDetection::BoundingBox'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringBoundingBox', | ||
| 128 | as HashRef[BoundingBox()]; | ||
| 129 | |||
| 130 | 1; | ||
| 131 | |||
| 132 | __END__ |