| 1 | package Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::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 'TranslateSpeechConfig', | ||
| 11 | as InstanceOf['Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::TranslateSpeechConfig']; | ||
| 12 | |||
| 13 | coerce 'TranslateSpeechConfig', | ||
| 14 | from HashRef, via { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::TranslateSpeechConfig'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedTranslateSpeechConfig', | ||
| 17 | as ArrayRef[TranslateSpeechConfig()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedTranslateSpeechConfig', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::TranslateSpeechConfig'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringTranslateSpeechConfig', | ||
| 23 | as HashRef[TranslateSpeechConfig()]; | ||
| 24 | |||
| 25 | declare 'StreamingTranslateSpeechConfig', | ||
| 26 | as InstanceOf['Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechConfig']; | ||
| 27 | |||
| 28 | coerce 'StreamingTranslateSpeechConfig', | ||
| 29 | from HashRef, via { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechConfig'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedStreamingTranslateSpeechConfig', | ||
| 32 | as ArrayRef[StreamingTranslateSpeechConfig()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedStreamingTranslateSpeechConfig', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechConfig'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringStreamingTranslateSpeechConfig', | ||
| 38 | as HashRef[StreamingTranslateSpeechConfig()]; | ||
| 39 | |||
| 40 | declare 'StreamingTranslateSpeechRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechRequest']; | ||
| 42 | |||
| 43 | coerce 'StreamingTranslateSpeechRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedStreamingTranslateSpeechRequest', | ||
| 47 | as ArrayRef[StreamingTranslateSpeechRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedStreamingTranslateSpeechRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringStreamingTranslateSpeechRequest', | ||
| 53 | as HashRef[StreamingTranslateSpeechRequest()]; | ||
| 54 | |||
| 55 | declare 'StreamingTranslateSpeechResult', | ||
| 56 | as InstanceOf['Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechResult']; | ||
| 57 | |||
| 58 | coerce 'StreamingTranslateSpeechResult', | ||
| 59 | from HashRef, via { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechResult'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedStreamingTranslateSpeechResult', | ||
| 62 | as ArrayRef[StreamingTranslateSpeechResult()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedStreamingTranslateSpeechResult', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechResult'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringStreamingTranslateSpeechResult', | ||
| 68 | as HashRef[StreamingTranslateSpeechResult()]; | ||
| 69 | |||
| 70 | declare 'TextTranslationResult', | ||
| 71 | as InstanceOf['Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechResult::TextTranslationResult']; | ||
| 72 | |||
| 73 | coerce 'TextTranslationResult', | ||
| 74 | from HashRef, via { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechResult::TextTranslationResult'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedTextTranslationResult', | ||
| 77 | as ArrayRef[TextTranslationResult()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedTextTranslationResult', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechResult::TextTranslationResult'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringTextTranslationResult', | ||
| 83 | as HashRef[TextTranslationResult()]; | ||
| 84 | |||
| 85 | declare 'StreamingTranslateSpeechResponse', | ||
| 86 | as InstanceOf['Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechResponse']; | ||
| 87 | |||
| 88 | coerce 'StreamingTranslateSpeechResponse', | ||
| 89 | from HashRef, via { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechResponse'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedStreamingTranslateSpeechResponse', | ||
| 92 | as ArrayRef[StreamingTranslateSpeechResponse()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedStreamingTranslateSpeechResponse', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1beta1::MediaTranslation::StreamingTranslateSpeechResponse'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringStreamingTranslateSpeechResponse', | ||
| 98 | as HashRef[StreamingTranslateSpeechResponse()]; | ||
| 99 | |||
| 100 | declare 'SpeechEventType', | ||
| 101 | as (Int | Str); | ||
| 102 | |||
| 103 | 1; | ||
| 104 | |||
| 105 | __END__ |