V1alpha1/MediaTranslation/Types.pm untested

filter: Statementstmt 0.0% 0 / 108 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 113 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Cloud::Mediatranslation::V1alpha1::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::V1alpha1::MediaTranslation::TranslateSpeechConfig'];
12  
13 coerce 'TranslateSpeechConfig',
14 from HashRef, via { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::TranslateSpeechConfig'->new($_) };
15  
16 declare 'RepeatedTranslateSpeechConfig',
17 as ArrayRef[TranslateSpeechConfig()];
18  
19 coerce 'RepeatedTranslateSpeechConfig',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::TranslateSpeechConfig'->new($_) } @$_ ] };
21  
22 declare 'MapStringTranslateSpeechConfig',
23 as HashRef[TranslateSpeechConfig()];
24  
25 declare 'StreamingTranslateSpeechConfig',
26 as InstanceOf['Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechConfig'];
27  
28 coerce 'StreamingTranslateSpeechConfig',
29 from HashRef, via { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechConfig'->new($_) };
30  
31 declare 'RepeatedStreamingTranslateSpeechConfig',
32 as ArrayRef[StreamingTranslateSpeechConfig()];
33  
34 coerce 'RepeatedStreamingTranslateSpeechConfig',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechConfig'->new($_) } @$_ ] };
36  
37 declare 'MapStringStreamingTranslateSpeechConfig',
38 as HashRef[StreamingTranslateSpeechConfig()];
39  
40 declare 'StreamingTranslateSpeechRequest',
41 as InstanceOf['Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechRequest'];
42  
43 coerce 'StreamingTranslateSpeechRequest',
44 from HashRef, via { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechRequest'->new($_) };
45  
46 declare 'RepeatedStreamingTranslateSpeechRequest',
47 as ArrayRef[StreamingTranslateSpeechRequest()];
48  
49 coerce 'RepeatedStreamingTranslateSpeechRequest',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechRequest'->new($_) } @$_ ] };
51  
52 declare 'MapStringStreamingTranslateSpeechRequest',
53 as HashRef[StreamingTranslateSpeechRequest()];
54  
55 declare 'StreamingTranslateSpeechResult',
56 as InstanceOf['Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechResult'];
57  
58 coerce 'StreamingTranslateSpeechResult',
59 from HashRef, via { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechResult'->new($_) };
60  
61 declare 'RepeatedStreamingTranslateSpeechResult',
62 as ArrayRef[StreamingTranslateSpeechResult()];
63  
64 coerce 'RepeatedStreamingTranslateSpeechResult',
65 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechResult'->new($_) } @$_ ] };
66  
67 declare 'MapStringStreamingTranslateSpeechResult',
68 as HashRef[StreamingTranslateSpeechResult()];
69  
70 declare 'TextTranslationResult',
71 as InstanceOf['Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechResult::TextTranslationResult'];
72  
73 coerce 'TextTranslationResult',
74 from HashRef, via { 'Google::Cloud::Mediatranslation::V1alpha1::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::V1alpha1::MediaTranslation::StreamingTranslateSpeechResult::TextTranslationResult'->new($_) } @$_ ] };
81  
82 declare 'MapStringTextTranslationResult',
83 as HashRef[TextTranslationResult()];
84  
85 declare 'AudioTranslationResult',
86 as InstanceOf['Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechResult::AudioTranslationResult'];
87  
88 coerce 'AudioTranslationResult',
89 from HashRef, via { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechResult::AudioTranslationResult'->new($_) };
90  
91 declare 'RepeatedAudioTranslationResult',
92 as ArrayRef[AudioTranslationResult()];
93  
94 coerce 'RepeatedAudioTranslationResult',
95 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechResult::AudioTranslationResult'->new($_) } @$_ ] };
96  
97 declare 'MapStringAudioTranslationResult',
98 as HashRef[AudioTranslationResult()];
99  
100 declare 'StreamingTranslateSpeechResponse',
101 as InstanceOf['Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechResponse'];
102  
103 coerce 'StreamingTranslateSpeechResponse',
104 from HashRef, via { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechResponse'->new($_) };
105  
106 declare 'RepeatedStreamingTranslateSpeechResponse',
107 as ArrayRef[StreamingTranslateSpeechResponse()];
108  
109 coerce 'RepeatedStreamingTranslateSpeechResponse',
110 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Mediatranslation::V1alpha1::MediaTranslation::StreamingTranslateSpeechResponse'->new($_) } @$_ ] };
111  
112 declare 'MapStringStreamingTranslateSpeechResponse',
113 as HashRef[StreamingTranslateSpeechResponse()];
114  
115 declare 'SpeechEventType',
116 as (Int | Str);
117  
118 1;
119  
120 __END__