V1beta2/LanguageService/Types.pm untested

filter: Statementstmt 0.0% 0 / 412 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 417 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::V1beta2::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::V1beta2::LanguageService::Document'];
15  
16 coerce 'Document',
17 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::Document'->new($_) };
18  
19 declare 'RepeatedDocument',
20 as ArrayRef[Document()];
21  
22 coerce 'RepeatedDocument',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::Document'->new($_) } @$_ ] };
24  
25 declare 'MapStringDocument',
26 as HashRef[Document()];
27  
28 declare 'Type',
29 as (Int | Str);
30  
31 declare 'BoilerplateHandling',
32 as (Int | Str);
33  
34 declare 'Sentence',
35 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::Sentence'];
36  
37 coerce 'Sentence',
38 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::Sentence'->new($_) };
39  
40 declare 'RepeatedSentence',
41 as ArrayRef[Sentence()];
42  
43 coerce 'RepeatedSentence',
44 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::Sentence'->new($_) } @$_ ] };
45  
46 declare 'MapStringSentence',
47 as HashRef[Sentence()];
48  
49 declare 'Entity',
50 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::Entity'];
51  
52 coerce 'Entity',
53 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::Entity'->new($_) };
54  
55 declare 'RepeatedEntity',
56 as ArrayRef[Entity()];
57  
58 coerce 'RepeatedEntity',
59 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::Entity'->new($_) } @$_ ] };
60  
61 declare 'MapStringEntity',
62 as HashRef[Entity()];
63  
64 declare 'Type',
65 as (Int | Str);
66  
67 declare 'MetadataEntry',
68 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::Entity::MetadataEntry'];
69  
70 coerce 'MetadataEntry',
71 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::Entity::MetadataEntry'->new($_) };
72  
73 declare 'RepeatedMetadataEntry',
74 as ArrayRef[MetadataEntry()];
75  
76 coerce 'RepeatedMetadataEntry',
77 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::Entity::MetadataEntry'->new($_) } @$_ ] };
78  
79 declare 'MapStringMetadataEntry',
80 as HashRef[MetadataEntry()];
81  
82 declare 'Token',
83 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::Token'];
84  
85 coerce 'Token',
86 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::Token'->new($_) };
87  
88 declare 'RepeatedToken',
89 as ArrayRef[Token()];
90  
91 coerce 'RepeatedToken',
92 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::Token'->new($_) } @$_ ] };
93  
94 declare 'MapStringToken',
95 as HashRef[Token()];
96  
97 declare 'Sentiment',
98 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::Sentiment'];
99  
100 coerce 'Sentiment',
101 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::Sentiment'->new($_) };
102  
103 declare 'RepeatedSentiment',
104 as ArrayRef[Sentiment()];
105  
106 coerce 'RepeatedSentiment',
107 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::Sentiment'->new($_) } @$_ ] };
108  
109 declare 'MapStringSentiment',
110 as HashRef[Sentiment()];
111  
112 declare 'PartOfSpeech',
113 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::PartOfSpeech'];
114  
115 coerce 'PartOfSpeech',
116 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::PartOfSpeech'->new($_) };
117  
118 declare 'RepeatedPartOfSpeech',
119 as ArrayRef[PartOfSpeech()];
120  
121 coerce 'RepeatedPartOfSpeech',
122 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::PartOfSpeech'->new($_) } @$_ ] };
123  
124 declare 'MapStringPartOfSpeech',
125 as HashRef[PartOfSpeech()];
126  
127 declare 'Tag',
128 as (Int | Str);
129  
130 declare 'Aspect',
131 as (Int | Str);
132  
133 declare 'Case',
134 as (Int | Str);
135  
136 declare 'Form',
137 as (Int | Str);
138  
139 declare 'Gender',
140 as (Int | Str);
141  
142 declare 'Mood',
143 as (Int | Str);
144  
145 declare 'Number',
146 as (Int | Str);
147  
148 declare 'Person',
149 as (Int | Str);
150  
151 declare 'Proper',
152 as (Int | Str);
153  
154 declare 'Reciprocity',
155 as (Int | Str);
156  
157 declare 'Tense',
158 as (Int | Str);
159  
160 declare 'Voice',
161 as (Int | Str);
162  
163 declare 'DependencyEdge',
164 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::DependencyEdge'];
165  
166 coerce 'DependencyEdge',
167 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::DependencyEdge'->new($_) };
168  
169 declare 'RepeatedDependencyEdge',
170 as ArrayRef[DependencyEdge()];
171  
172 coerce 'RepeatedDependencyEdge',
173 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::DependencyEdge'->new($_) } @$_ ] };
174  
175 declare 'MapStringDependencyEdge',
176 as HashRef[DependencyEdge()];
177  
178 declare 'Label',
179 as (Int | Str);
180  
181 declare 'EntityMention',
182 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::EntityMention'];
183  
184 coerce 'EntityMention',
185 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::EntityMention'->new($_) };
186  
187 declare 'RepeatedEntityMention',
188 as ArrayRef[EntityMention()];
189  
190 coerce 'RepeatedEntityMention',
191 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::EntityMention'->new($_) } @$_ ] };
192  
193 declare 'MapStringEntityMention',
194 as HashRef[EntityMention()];
195  
196 declare 'Type',
197 as (Int | Str);
198  
199 declare 'TextSpan',
200 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::TextSpan'];
201  
202 coerce 'TextSpan',
203 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::TextSpan'->new($_) };
204  
205 declare 'RepeatedTextSpan',
206 as ArrayRef[TextSpan()];
207  
208 coerce 'RepeatedTextSpan',
209 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::TextSpan'->new($_) } @$_ ] };
210  
211 declare 'MapStringTextSpan',
212 as HashRef[TextSpan()];
213  
214 declare 'ClassificationCategory',
215 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::ClassificationCategory'];
216  
217 coerce 'ClassificationCategory',
218 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::ClassificationCategory'->new($_) };
219  
220 declare 'RepeatedClassificationCategory',
221 as ArrayRef[ClassificationCategory()];
222  
223 coerce 'RepeatedClassificationCategory',
224 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::ClassificationCategory'->new($_) } @$_ ] };
225  
226 declare 'MapStringClassificationCategory',
227 as HashRef[ClassificationCategory()];
228  
229 declare 'ClassificationModelOptions',
230 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::ClassificationModelOptions'];
231  
232 coerce 'ClassificationModelOptions',
233 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::ClassificationModelOptions'->new($_) };
234  
235 declare 'RepeatedClassificationModelOptions',
236 as ArrayRef[ClassificationModelOptions()];
237  
238 coerce 'RepeatedClassificationModelOptions',
239 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::ClassificationModelOptions'->new($_) } @$_ ] };
240  
241 declare 'MapStringClassificationModelOptions',
242 as HashRef[ClassificationModelOptions()];
243  
244 declare 'V1Model',
245 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::ClassificationModelOptions::V1Model'];
246  
247 coerce 'V1Model',
248 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::ClassificationModelOptions::V1Model'->new($_) };
249  
250 declare 'RepeatedV1Model',
251 as ArrayRef[V1Model()];
252  
253 coerce 'RepeatedV1Model',
254 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::ClassificationModelOptions::V1Model'->new($_) } @$_ ] };
255  
256 declare 'MapStringV1Model',
257 as HashRef[V1Model()];
258  
259 declare 'V2Model',
260 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::ClassificationModelOptions::V2Model'];
261  
262 coerce 'V2Model',
263 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::ClassificationModelOptions::V2Model'->new($_) };
264  
265 declare 'RepeatedV2Model',
266 as ArrayRef[V2Model()];
267  
268 coerce 'RepeatedV2Model',
269 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::ClassificationModelOptions::V2Model'->new($_) } @$_ ] };
270  
271 declare 'MapStringV2Model',
272 as HashRef[V2Model()];
273  
274 declare 'ContentCategoriesVersion',
275 as (Int | Str);
276  
277 declare 'AnalyzeSentimentRequest',
278 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSentimentRequest'];
279  
280 coerce 'AnalyzeSentimentRequest',
281 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSentimentRequest'->new($_) };
282  
283 declare 'RepeatedAnalyzeSentimentRequest',
284 as ArrayRef[AnalyzeSentimentRequest()];
285  
286 coerce 'RepeatedAnalyzeSentimentRequest',
287 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSentimentRequest'->new($_) } @$_ ] };
288  
289 declare 'MapStringAnalyzeSentimentRequest',
290 as HashRef[AnalyzeSentimentRequest()];
291  
292 declare 'AnalyzeSentimentResponse',
293 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSentimentResponse'];
294  
295 coerce 'AnalyzeSentimentResponse',
296 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSentimentResponse'->new($_) };
297  
298 declare 'RepeatedAnalyzeSentimentResponse',
299 as ArrayRef[AnalyzeSentimentResponse()];
300  
301 coerce 'RepeatedAnalyzeSentimentResponse',
302 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSentimentResponse'->new($_) } @$_ ] };
303  
304 declare 'MapStringAnalyzeSentimentResponse',
305 as HashRef[AnalyzeSentimentResponse()];
306  
307 declare 'AnalyzeEntitySentimentRequest',
308 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitySentimentRequest'];
309  
310 coerce 'AnalyzeEntitySentimentRequest',
311 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitySentimentRequest'->new($_) };
312  
313 declare 'RepeatedAnalyzeEntitySentimentRequest',
314 as ArrayRef[AnalyzeEntitySentimentRequest()];
315  
316 coerce 'RepeatedAnalyzeEntitySentimentRequest',
317 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitySentimentRequest'->new($_) } @$_ ] };
318  
319 declare 'MapStringAnalyzeEntitySentimentRequest',
320 as HashRef[AnalyzeEntitySentimentRequest()];
321  
322 declare 'AnalyzeEntitySentimentResponse',
323 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitySentimentResponse'];
324  
325 coerce 'AnalyzeEntitySentimentResponse',
326 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitySentimentResponse'->new($_) };
327  
328 declare 'RepeatedAnalyzeEntitySentimentResponse',
329 as ArrayRef[AnalyzeEntitySentimentResponse()];
330  
331 coerce 'RepeatedAnalyzeEntitySentimentResponse',
332 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitySentimentResponse'->new($_) } @$_ ] };
333  
334 declare 'MapStringAnalyzeEntitySentimentResponse',
335 as HashRef[AnalyzeEntitySentimentResponse()];
336  
337 declare 'AnalyzeEntitiesRequest',
338 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitiesRequest'];
339  
340 coerce 'AnalyzeEntitiesRequest',
341 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitiesRequest'->new($_) };
342  
343 declare 'RepeatedAnalyzeEntitiesRequest',
344 as ArrayRef[AnalyzeEntitiesRequest()];
345  
346 coerce 'RepeatedAnalyzeEntitiesRequest',
347 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitiesRequest'->new($_) } @$_ ] };
348  
349 declare 'MapStringAnalyzeEntitiesRequest',
350 as HashRef[AnalyzeEntitiesRequest()];
351  
352 declare 'AnalyzeEntitiesResponse',
353 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitiesResponse'];
354  
355 coerce 'AnalyzeEntitiesResponse',
356 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitiesResponse'->new($_) };
357  
358 declare 'RepeatedAnalyzeEntitiesResponse',
359 as ArrayRef[AnalyzeEntitiesResponse()];
360  
361 coerce 'RepeatedAnalyzeEntitiesResponse',
362 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeEntitiesResponse'->new($_) } @$_ ] };
363  
364 declare 'MapStringAnalyzeEntitiesResponse',
365 as HashRef[AnalyzeEntitiesResponse()];
366  
367 declare 'AnalyzeSyntaxRequest',
368 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSyntaxRequest'];
369  
370 coerce 'AnalyzeSyntaxRequest',
371 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSyntaxRequest'->new($_) };
372  
373 declare 'RepeatedAnalyzeSyntaxRequest',
374 as ArrayRef[AnalyzeSyntaxRequest()];
375  
376 coerce 'RepeatedAnalyzeSyntaxRequest',
377 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSyntaxRequest'->new($_) } @$_ ] };
378  
379 declare 'MapStringAnalyzeSyntaxRequest',
380 as HashRef[AnalyzeSyntaxRequest()];
381  
382 declare 'AnalyzeSyntaxResponse',
383 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSyntaxResponse'];
384  
385 coerce 'AnalyzeSyntaxResponse',
386 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSyntaxResponse'->new($_) };
387  
388 declare 'RepeatedAnalyzeSyntaxResponse',
389 as ArrayRef[AnalyzeSyntaxResponse()];
390  
391 coerce 'RepeatedAnalyzeSyntaxResponse',
392 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnalyzeSyntaxResponse'->new($_) } @$_ ] };
393  
394 declare 'MapStringAnalyzeSyntaxResponse',
395 as HashRef[AnalyzeSyntaxResponse()];
396  
397 declare 'ClassifyTextRequest',
398 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::ClassifyTextRequest'];
399  
400 coerce 'ClassifyTextRequest',
401 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::ClassifyTextRequest'->new($_) };
402  
403 declare 'RepeatedClassifyTextRequest',
404 as ArrayRef[ClassifyTextRequest()];
405  
406 coerce 'RepeatedClassifyTextRequest',
407 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::ClassifyTextRequest'->new($_) } @$_ ] };
408  
409 declare 'MapStringClassifyTextRequest',
410 as HashRef[ClassifyTextRequest()];
411  
412 declare 'ClassifyTextResponse',
413 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::ClassifyTextResponse'];
414  
415 coerce 'ClassifyTextResponse',
416 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::ClassifyTextResponse'->new($_) };
417  
418 declare 'RepeatedClassifyTextResponse',
419 as ArrayRef[ClassifyTextResponse()];
420  
421 coerce 'RepeatedClassifyTextResponse',
422 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::ClassifyTextResponse'->new($_) } @$_ ] };
423  
424 declare 'MapStringClassifyTextResponse',
425 as HashRef[ClassifyTextResponse()];
426  
427 declare 'ModerateTextRequest',
428 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::ModerateTextRequest'];
429  
430 coerce 'ModerateTextRequest',
431 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::ModerateTextRequest'->new($_) };
432  
433 declare 'RepeatedModerateTextRequest',
434 as ArrayRef[ModerateTextRequest()];
435  
436 coerce 'RepeatedModerateTextRequest',
437 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::ModerateTextRequest'->new($_) } @$_ ] };
438  
439 declare 'MapStringModerateTextRequest',
440 as HashRef[ModerateTextRequest()];
441  
442 declare 'ModerateTextResponse',
443 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::ModerateTextResponse'];
444  
445 coerce 'ModerateTextResponse',
446 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::ModerateTextResponse'->new($_) };
447  
448 declare 'RepeatedModerateTextResponse',
449 as ArrayRef[ModerateTextResponse()];
450  
451 coerce 'RepeatedModerateTextResponse',
452 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::ModerateTextResponse'->new($_) } @$_ ] };
453  
454 declare 'MapStringModerateTextResponse',
455 as HashRef[ModerateTextResponse()];
456  
457 declare 'AnnotateTextRequest',
458 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnnotateTextRequest'];
459  
460 coerce 'AnnotateTextRequest',
461 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnnotateTextRequest'->new($_) };
462  
463 declare 'RepeatedAnnotateTextRequest',
464 as ArrayRef[AnnotateTextRequest()];
465  
466 coerce 'RepeatedAnnotateTextRequest',
467 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnnotateTextRequest'->new($_) } @$_ ] };
468  
469 declare 'MapStringAnnotateTextRequest',
470 as HashRef[AnnotateTextRequest()];
471  
472 declare 'Features',
473 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnnotateTextRequest::Features'];
474  
475 coerce 'Features',
476 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnnotateTextRequest::Features'->new($_) };
477  
478 declare 'RepeatedFeatures',
479 as ArrayRef[Features()];
480  
481 coerce 'RepeatedFeatures',
482 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnnotateTextRequest::Features'->new($_) } @$_ ] };
483  
484 declare 'MapStringFeatures',
485 as HashRef[Features()];
486  
487 declare 'AnnotateTextResponse',
488 as InstanceOf['Google::Cloud::Language::V1beta2::LanguageService::AnnotateTextResponse'];
489  
490 coerce 'AnnotateTextResponse',
491 from HashRef, via { 'Google::Cloud::Language::V1beta2::LanguageService::AnnotateTextResponse'->new($_) };
492  
493 declare 'RepeatedAnnotateTextResponse',
494 as ArrayRef[AnnotateTextResponse()];
495  
496 coerce 'RepeatedAnnotateTextResponse',
497 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta2::LanguageService::AnnotateTextResponse'->new($_) } @$_ ] };
498  
499 declare 'MapStringAnnotateTextResponse',
500 as HashRef[AnnotateTextResponse()];
501  
502 1;
503  
504 __END__