| 1 | package Google::Ai::Generativelanguage::V1beta::PredictionService::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 'PredictRequest', | ||
| 11 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::PredictionService::PredictRequest']; | ||
| 12 | |||
| 13 | coerce 'PredictRequest', | ||
| 14 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedPredictRequest', | ||
| 17 | as ArrayRef[PredictRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedPredictRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringPredictRequest', | ||
| 23 | as HashRef[PredictRequest()]; | ||
| 24 | |||
| 25 | declare 'PredictLongRunningRequest', | ||
| 26 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningRequest']; | ||
| 27 | |||
| 28 | coerce 'PredictLongRunningRequest', | ||
| 29 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedPredictLongRunningRequest', | ||
| 32 | as ArrayRef[PredictLongRunningRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedPredictLongRunningRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringPredictLongRunningRequest', | ||
| 38 | as HashRef[PredictLongRunningRequest()]; | ||
| 39 | |||
| 40 | declare 'PredictResponse', | ||
| 41 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::PredictionService::PredictResponse']; | ||
| 42 | |||
| 43 | coerce 'PredictResponse', | ||
| 44 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictResponse'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedPredictResponse', | ||
| 47 | as ArrayRef[PredictResponse()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedPredictResponse', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictResponse'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringPredictResponse', | ||
| 53 | as HashRef[PredictResponse()]; | ||
| 54 | |||
| 55 | declare 'PredictLongRunningResponse', | ||
| 56 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningResponse']; | ||
| 57 | |||
| 58 | coerce 'PredictLongRunningResponse', | ||
| 59 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningResponse'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedPredictLongRunningResponse', | ||
| 62 | as ArrayRef[PredictLongRunningResponse()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedPredictLongRunningResponse', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningResponse'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringPredictLongRunningResponse', | ||
| 68 | as HashRef[PredictLongRunningResponse()]; | ||
| 69 | |||
| 70 | declare 'PredictLongRunningMetadata', | ||
| 71 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningMetadata']; | ||
| 72 | |||
| 73 | coerce 'PredictLongRunningMetadata', | ||
| 74 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningMetadata'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedPredictLongRunningMetadata', | ||
| 77 | as ArrayRef[PredictLongRunningMetadata()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedPredictLongRunningMetadata', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningMetadata'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringPredictLongRunningMetadata', | ||
| 83 | as HashRef[PredictLongRunningMetadata()]; | ||
| 84 | |||
| 85 | declare 'Media', | ||
| 86 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::PredictionService::Media']; | ||
| 87 | |||
| 88 | coerce 'Media', | ||
| 89 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::PredictionService::Media'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedMedia', | ||
| 92 | as ArrayRef[Media()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedMedia', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::PredictionService::Media'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringMedia', | ||
| 98 | as HashRef[Media()]; | ||
| 99 | |||
| 100 | declare 'Video', | ||
| 101 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::PredictionService::Video']; | ||
| 102 | |||
| 103 | coerce 'Video', | ||
| 104 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::PredictionService::Video'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedVideo', | ||
| 107 | as ArrayRef[Video()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedVideo', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::PredictionService::Video'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringVideo', | ||
| 113 | as HashRef[Video()]; | ||
| 114 | |||
| 115 | declare 'PredictLongRunningGeneratedVideoResponse', | ||
| 116 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningGeneratedVideoResponse']; | ||
| 117 | |||
| 118 | coerce 'PredictLongRunningGeneratedVideoResponse', | ||
| 119 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningGeneratedVideoResponse'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedPredictLongRunningGeneratedVideoResponse', | ||
| 122 | as ArrayRef[PredictLongRunningGeneratedVideoResponse()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedPredictLongRunningGeneratedVideoResponse', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::PredictionService::PredictLongRunningGeneratedVideoResponse'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringPredictLongRunningGeneratedVideoResponse', | ||
| 128 | as HashRef[PredictLongRunningGeneratedVideoResponse()]; | ||
| 129 | |||
| 130 | 1; | ||
| 131 | |||
| 132 | __END__ |