V2/LanguageService/Types.pm untested

filter: Statementstmt 0.0% 0 / 268 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 273 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::Language::V2::LanguageService::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 'EncodingType',
11 as (Int | Str);
12  
13 declare 'Document',
14 as InstanceOf['Google::Cloud::Language::V2::LanguageService::Document'];
15  
16 coerce 'Document',
17 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::Document'->new($_) };
18  
19 declare 'RepeatedDocument',
20 as ArrayRef[Document()];
21  
22 coerce 'RepeatedDocument',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::Document'->new($_) } @$_ ] };
24  
25 declare 'MapStringDocument',
26 as HashRef[Document()];
27  
28 declare 'Type',
29 as (Int | Str);
30  
31 declare 'Sentence',
32 as InstanceOf['Google::Cloud::Language::V2::LanguageService::Sentence'];
33  
34 coerce 'Sentence',
35 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::Sentence'->new($_) };
36  
37 declare 'RepeatedSentence',
38 as ArrayRef[Sentence()];
39  
40 coerce 'RepeatedSentence',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::Sentence'->new($_) } @$_ ] };
42  
43 declare 'MapStringSentence',
44 as HashRef[Sentence()];
45  
46 declare 'Entity',
47 as InstanceOf['Google::Cloud::Language::V2::LanguageService::Entity'];
48  
49 coerce 'Entity',
50 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::Entity'->new($_) };
51  
52 declare 'RepeatedEntity',
53 as ArrayRef[Entity()];
54  
55 coerce 'RepeatedEntity',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::Entity'->new($_) } @$_ ] };
57  
58 declare 'MapStringEntity',
59 as HashRef[Entity()];
60  
61 declare 'Type',
62 as (Int | Str);
63  
64 declare 'MetadataEntry',
65 as InstanceOf['Google::Cloud::Language::V2::LanguageService::Entity::MetadataEntry'];
66  
67 coerce 'MetadataEntry',
68 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::Entity::MetadataEntry'->new($_) };
69  
70 declare 'RepeatedMetadataEntry',
71 as ArrayRef[MetadataEntry()];
72  
73 coerce 'RepeatedMetadataEntry',
74 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::Entity::MetadataEntry'->new($_) } @$_ ] };
75  
76 declare 'MapStringMetadataEntry',
77 as HashRef[MetadataEntry()];
78  
79 declare 'Sentiment',
80 as InstanceOf['Google::Cloud::Language::V2::LanguageService::Sentiment'];
81  
82 coerce 'Sentiment',
83 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::Sentiment'->new($_) };
84  
85 declare 'RepeatedSentiment',
86 as ArrayRef[Sentiment()];
87  
88 coerce 'RepeatedSentiment',
89 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::Sentiment'->new($_) } @$_ ] };
90  
91 declare 'MapStringSentiment',
92 as HashRef[Sentiment()];
93  
94 declare 'EntityMention',
95 as InstanceOf['Google::Cloud::Language::V2::LanguageService::EntityMention'];
96  
97 coerce 'EntityMention',
98 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::EntityMention'->new($_) };
99  
100 declare 'RepeatedEntityMention',
101 as ArrayRef[EntityMention()];
102  
103 coerce 'RepeatedEntityMention',
104 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::EntityMention'->new($_) } @$_ ] };
105  
106 declare 'MapStringEntityMention',
107 as HashRef[EntityMention()];
108  
109 declare 'Type',
110 as (Int | Str);
111  
112 declare 'TextSpan',
113 as InstanceOf['Google::Cloud::Language::V2::LanguageService::TextSpan'];
114  
115 coerce 'TextSpan',
116 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::TextSpan'->new($_) };
117  
118 declare 'RepeatedTextSpan',
119 as ArrayRef[TextSpan()];
120  
121 coerce 'RepeatedTextSpan',
122 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::TextSpan'->new($_) } @$_ ] };
123  
124 declare 'MapStringTextSpan',
125 as HashRef[TextSpan()];
126  
127 declare 'ClassificationCategory',
128 as InstanceOf['Google::Cloud::Language::V2::LanguageService::ClassificationCategory'];
129  
130 coerce 'ClassificationCategory',
131 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::ClassificationCategory'->new($_) };
132  
133 declare 'RepeatedClassificationCategory',
134 as ArrayRef[ClassificationCategory()];
135  
136 coerce 'RepeatedClassificationCategory',
137 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::ClassificationCategory'->new($_) } @$_ ] };
138  
139 declare 'MapStringClassificationCategory',
140 as HashRef[ClassificationCategory()];
141  
142 declare 'AnalyzeSentimentRequest',
143 as InstanceOf['Google::Cloud::Language::V2::LanguageService::AnalyzeSentimentRequest'];
144  
145 coerce 'AnalyzeSentimentRequest',
146 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::AnalyzeSentimentRequest'->new($_) };
147  
148 declare 'RepeatedAnalyzeSentimentRequest',
149 as ArrayRef[AnalyzeSentimentRequest()];
150  
151 coerce 'RepeatedAnalyzeSentimentRequest',
152 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::AnalyzeSentimentRequest'->new($_) } @$_ ] };
153  
154 declare 'MapStringAnalyzeSentimentRequest',
155 as HashRef[AnalyzeSentimentRequest()];
156  
157 declare 'AnalyzeSentimentResponse',
158 as InstanceOf['Google::Cloud::Language::V2::LanguageService::AnalyzeSentimentResponse'];
159  
160 coerce 'AnalyzeSentimentResponse',
161 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::AnalyzeSentimentResponse'->new($_) };
162  
163 declare 'RepeatedAnalyzeSentimentResponse',
164 as ArrayRef[AnalyzeSentimentResponse()];
165  
166 coerce 'RepeatedAnalyzeSentimentResponse',
167 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::AnalyzeSentimentResponse'->new($_) } @$_ ] };
168  
169 declare 'MapStringAnalyzeSentimentResponse',
170 as HashRef[AnalyzeSentimentResponse()];
171  
172 declare 'AnalyzeEntitiesRequest',
173 as InstanceOf['Google::Cloud::Language::V2::LanguageService::AnalyzeEntitiesRequest'];
174  
175 coerce 'AnalyzeEntitiesRequest',
176 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::AnalyzeEntitiesRequest'->new($_) };
177  
178 declare 'RepeatedAnalyzeEntitiesRequest',
179 as ArrayRef[AnalyzeEntitiesRequest()];
180  
181 coerce 'RepeatedAnalyzeEntitiesRequest',
182 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::AnalyzeEntitiesRequest'->new($_) } @$_ ] };
183  
184 declare 'MapStringAnalyzeEntitiesRequest',
185 as HashRef[AnalyzeEntitiesRequest()];
186  
187 declare 'AnalyzeEntitiesResponse',
188 as InstanceOf['Google::Cloud::Language::V2::LanguageService::AnalyzeEntitiesResponse'];
189  
190 coerce 'AnalyzeEntitiesResponse',
191 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::AnalyzeEntitiesResponse'->new($_) };
192  
193 declare 'RepeatedAnalyzeEntitiesResponse',
194 as ArrayRef[AnalyzeEntitiesResponse()];
195  
196 coerce 'RepeatedAnalyzeEntitiesResponse',
197 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::AnalyzeEntitiesResponse'->new($_) } @$_ ] };
198  
199 declare 'MapStringAnalyzeEntitiesResponse',
200 as HashRef[AnalyzeEntitiesResponse()];
201  
202 declare 'ClassifyTextRequest',
203 as InstanceOf['Google::Cloud::Language::V2::LanguageService::ClassifyTextRequest'];
204  
205 coerce 'ClassifyTextRequest',
206 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::ClassifyTextRequest'->new($_) };
207  
208 declare 'RepeatedClassifyTextRequest',
209 as ArrayRef[ClassifyTextRequest()];
210  
211 coerce 'RepeatedClassifyTextRequest',
212 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::ClassifyTextRequest'->new($_) } @$_ ] };
213  
214 declare 'MapStringClassifyTextRequest',
215 as HashRef[ClassifyTextRequest()];
216  
217 declare 'ClassifyTextResponse',
218 as InstanceOf['Google::Cloud::Language::V2::LanguageService::ClassifyTextResponse'];
219  
220 coerce 'ClassifyTextResponse',
221 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::ClassifyTextResponse'->new($_) };
222  
223 declare 'RepeatedClassifyTextResponse',
224 as ArrayRef[ClassifyTextResponse()];
225  
226 coerce 'RepeatedClassifyTextResponse',
227 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::ClassifyTextResponse'->new($_) } @$_ ] };
228  
229 declare 'MapStringClassifyTextResponse',
230 as HashRef[ClassifyTextResponse()];
231  
232 declare 'ModerateTextRequest',
233 as InstanceOf['Google::Cloud::Language::V2::LanguageService::ModerateTextRequest'];
234  
235 coerce 'ModerateTextRequest',
236 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::ModerateTextRequest'->new($_) };
237  
238 declare 'RepeatedModerateTextRequest',
239 as ArrayRef[ModerateTextRequest()];
240  
241 coerce 'RepeatedModerateTextRequest',
242 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::ModerateTextRequest'->new($_) } @$_ ] };
243  
244 declare 'MapStringModerateTextRequest',
245 as HashRef[ModerateTextRequest()];
246  
247 declare 'ModelVersion',
248 as (Int | Str);
249  
250 declare 'ModerateTextResponse',
251 as InstanceOf['Google::Cloud::Language::V2::LanguageService::ModerateTextResponse'];
252  
253 coerce 'ModerateTextResponse',
254 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::ModerateTextResponse'->new($_) };
255  
256 declare 'RepeatedModerateTextResponse',
257 as ArrayRef[ModerateTextResponse()];
258  
259 coerce 'RepeatedModerateTextResponse',
260 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::ModerateTextResponse'->new($_) } @$_ ] };
261  
262 declare 'MapStringModerateTextResponse',
263 as HashRef[ModerateTextResponse()];
264  
265 declare 'AnnotateTextRequest',
266 as InstanceOf['Google::Cloud::Language::V2::LanguageService::AnnotateTextRequest'];
267  
268 coerce 'AnnotateTextRequest',
269 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::AnnotateTextRequest'->new($_) };
270  
271 declare 'RepeatedAnnotateTextRequest',
272 as ArrayRef[AnnotateTextRequest()];
273  
274 coerce 'RepeatedAnnotateTextRequest',
275 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::AnnotateTextRequest'->new($_) } @$_ ] };
276  
277 declare 'MapStringAnnotateTextRequest',
278 as HashRef[AnnotateTextRequest()];
279  
280 declare 'Features',
281 as InstanceOf['Google::Cloud::Language::V2::LanguageService::AnnotateTextRequest::Features'];
282  
283 coerce 'Features',
284 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::AnnotateTextRequest::Features'->new($_) };
285  
286 declare 'RepeatedFeatures',
287 as ArrayRef[Features()];
288  
289 coerce 'RepeatedFeatures',
290 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::AnnotateTextRequest::Features'->new($_) } @$_ ] };
291  
292 declare 'MapStringFeatures',
293 as HashRef[Features()];
294  
295 declare 'AnnotateTextResponse',
296 as InstanceOf['Google::Cloud::Language::V2::LanguageService::AnnotateTextResponse'];
297  
298 coerce 'AnnotateTextResponse',
299 from HashRef, via { 'Google::Cloud::Language::V2::LanguageService::AnnotateTextResponse'->new($_) };
300  
301 declare 'RepeatedAnnotateTextResponse',
302 as ArrayRef[AnnotateTextResponse()];
303  
304 coerce 'RepeatedAnnotateTextResponse',
305 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V2::LanguageService::AnnotateTextResponse'->new($_) } @$_ ] };
306  
307 declare 'MapStringAnnotateTextResponse',
308 as HashRef[AnnotateTextResponse()];
309  
310 1;
311  
312 __END__