V1beta1/LanguageService/Types.pm untested

filter: Statementstmt 0.0% 0 / 280 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 285 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::V1beta1::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::V1beta1::LanguageService::Document'];
15  
16 coerce 'Document',
17 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::Document'->new($_) };
18  
19 declare 'RepeatedDocument',
20 as ArrayRef[Document()];
21  
22 coerce 'RepeatedDocument',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::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::V1beta1::LanguageService::Sentence'];
33  
34 coerce 'Sentence',
35 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::Sentence'->new($_) };
36  
37 declare 'RepeatedSentence',
38 as ArrayRef[Sentence()];
39  
40 coerce 'RepeatedSentence',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::Sentence'->new($_) } @$_ ] };
42  
43 declare 'MapStringSentence',
44 as HashRef[Sentence()];
45  
46 declare 'Entity',
47 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::Entity'];
48  
49 coerce 'Entity',
50 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::Entity'->new($_) };
51  
52 declare 'RepeatedEntity',
53 as ArrayRef[Entity()];
54  
55 coerce 'RepeatedEntity',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::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::V1beta1::LanguageService::Entity::MetadataEntry'];
66  
67 coerce 'MetadataEntry',
68 from HashRef, via { 'Google::Cloud::Language::V1beta1::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::V1beta1::LanguageService::Entity::MetadataEntry'->new($_) } @$_ ] };
75  
76 declare 'MapStringMetadataEntry',
77 as HashRef[MetadataEntry()];
78  
79 declare 'Token',
80 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::Token'];
81  
82 coerce 'Token',
83 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::Token'->new($_) };
84  
85 declare 'RepeatedToken',
86 as ArrayRef[Token()];
87  
88 coerce 'RepeatedToken',
89 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::Token'->new($_) } @$_ ] };
90  
91 declare 'MapStringToken',
92 as HashRef[Token()];
93  
94 declare 'Sentiment',
95 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::Sentiment'];
96  
97 coerce 'Sentiment',
98 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::Sentiment'->new($_) };
99  
100 declare 'RepeatedSentiment',
101 as ArrayRef[Sentiment()];
102  
103 coerce 'RepeatedSentiment',
104 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::Sentiment'->new($_) } @$_ ] };
105  
106 declare 'MapStringSentiment',
107 as HashRef[Sentiment()];
108  
109 declare 'PartOfSpeech',
110 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::PartOfSpeech'];
111  
112 coerce 'PartOfSpeech',
113 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::PartOfSpeech'->new($_) };
114  
115 declare 'RepeatedPartOfSpeech',
116 as ArrayRef[PartOfSpeech()];
117  
118 coerce 'RepeatedPartOfSpeech',
119 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::PartOfSpeech'->new($_) } @$_ ] };
120  
121 declare 'MapStringPartOfSpeech',
122 as HashRef[PartOfSpeech()];
123  
124 declare 'Tag',
125 as (Int | Str);
126  
127 declare 'Aspect',
128 as (Int | Str);
129  
130 declare 'Case',
131 as (Int | Str);
132  
133 declare 'Form',
134 as (Int | Str);
135  
136 declare 'Gender',
137 as (Int | Str);
138  
139 declare 'Mood',
140 as (Int | Str);
141  
142 declare 'Number',
143 as (Int | Str);
144  
145 declare 'Person',
146 as (Int | Str);
147  
148 declare 'Proper',
149 as (Int | Str);
150  
151 declare 'Reciprocity',
152 as (Int | Str);
153  
154 declare 'Tense',
155 as (Int | Str);
156  
157 declare 'Voice',
158 as (Int | Str);
159  
160 declare 'DependencyEdge',
161 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::DependencyEdge'];
162  
163 coerce 'DependencyEdge',
164 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::DependencyEdge'->new($_) };
165  
166 declare 'RepeatedDependencyEdge',
167 as ArrayRef[DependencyEdge()];
168  
169 coerce 'RepeatedDependencyEdge',
170 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::DependencyEdge'->new($_) } @$_ ] };
171  
172 declare 'MapStringDependencyEdge',
173 as HashRef[DependencyEdge()];
174  
175 declare 'Label',
176 as (Int | Str);
177  
178 declare 'EntityMention',
179 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::EntityMention'];
180  
181 coerce 'EntityMention',
182 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::EntityMention'->new($_) };
183  
184 declare 'RepeatedEntityMention',
185 as ArrayRef[EntityMention()];
186  
187 coerce 'RepeatedEntityMention',
188 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::EntityMention'->new($_) } @$_ ] };
189  
190 declare 'MapStringEntityMention',
191 as HashRef[EntityMention()];
192  
193 declare 'Type',
194 as (Int | Str);
195  
196 declare 'TextSpan',
197 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::TextSpan'];
198  
199 coerce 'TextSpan',
200 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::TextSpan'->new($_) };
201  
202 declare 'RepeatedTextSpan',
203 as ArrayRef[TextSpan()];
204  
205 coerce 'RepeatedTextSpan',
206 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::TextSpan'->new($_) } @$_ ] };
207  
208 declare 'MapStringTextSpan',
209 as HashRef[TextSpan()];
210  
211 declare 'AnalyzeSentimentRequest',
212 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSentimentRequest'];
213  
214 coerce 'AnalyzeSentimentRequest',
215 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSentimentRequest'->new($_) };
216  
217 declare 'RepeatedAnalyzeSentimentRequest',
218 as ArrayRef[AnalyzeSentimentRequest()];
219  
220 coerce 'RepeatedAnalyzeSentimentRequest',
221 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSentimentRequest'->new($_) } @$_ ] };
222  
223 declare 'MapStringAnalyzeSentimentRequest',
224 as HashRef[AnalyzeSentimentRequest()];
225  
226 declare 'AnalyzeSentimentResponse',
227 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSentimentResponse'];
228  
229 coerce 'AnalyzeSentimentResponse',
230 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSentimentResponse'->new($_) };
231  
232 declare 'RepeatedAnalyzeSentimentResponse',
233 as ArrayRef[AnalyzeSentimentResponse()];
234  
235 coerce 'RepeatedAnalyzeSentimentResponse',
236 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSentimentResponse'->new($_) } @$_ ] };
237  
238 declare 'MapStringAnalyzeSentimentResponse',
239 as HashRef[AnalyzeSentimentResponse()];
240  
241 declare 'AnalyzeEntitiesRequest',
242 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::AnalyzeEntitiesRequest'];
243  
244 coerce 'AnalyzeEntitiesRequest',
245 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeEntitiesRequest'->new($_) };
246  
247 declare 'RepeatedAnalyzeEntitiesRequest',
248 as ArrayRef[AnalyzeEntitiesRequest()];
249  
250 coerce 'RepeatedAnalyzeEntitiesRequest',
251 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeEntitiesRequest'->new($_) } @$_ ] };
252  
253 declare 'MapStringAnalyzeEntitiesRequest',
254 as HashRef[AnalyzeEntitiesRequest()];
255  
256 declare 'AnalyzeEntitiesResponse',
257 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::AnalyzeEntitiesResponse'];
258  
259 coerce 'AnalyzeEntitiesResponse',
260 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeEntitiesResponse'->new($_) };
261  
262 declare 'RepeatedAnalyzeEntitiesResponse',
263 as ArrayRef[AnalyzeEntitiesResponse()];
264  
265 coerce 'RepeatedAnalyzeEntitiesResponse',
266 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeEntitiesResponse'->new($_) } @$_ ] };
267  
268 declare 'MapStringAnalyzeEntitiesResponse',
269 as HashRef[AnalyzeEntitiesResponse()];
270  
271 declare 'AnalyzeSyntaxRequest',
272 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSyntaxRequest'];
273  
274 coerce 'AnalyzeSyntaxRequest',
275 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSyntaxRequest'->new($_) };
276  
277 declare 'RepeatedAnalyzeSyntaxRequest',
278 as ArrayRef[AnalyzeSyntaxRequest()];
279  
280 coerce 'RepeatedAnalyzeSyntaxRequest',
281 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSyntaxRequest'->new($_) } @$_ ] };
282  
283 declare 'MapStringAnalyzeSyntaxRequest',
284 as HashRef[AnalyzeSyntaxRequest()];
285  
286 declare 'AnalyzeSyntaxResponse',
287 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSyntaxResponse'];
288  
289 coerce 'AnalyzeSyntaxResponse',
290 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSyntaxResponse'->new($_) };
291  
292 declare 'RepeatedAnalyzeSyntaxResponse',
293 as ArrayRef[AnalyzeSyntaxResponse()];
294  
295 coerce 'RepeatedAnalyzeSyntaxResponse',
296 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::AnalyzeSyntaxResponse'->new($_) } @$_ ] };
297  
298 declare 'MapStringAnalyzeSyntaxResponse',
299 as HashRef[AnalyzeSyntaxResponse()];
300  
301 declare 'AnnotateTextRequest',
302 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::AnnotateTextRequest'];
303  
304 coerce 'AnnotateTextRequest',
305 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::AnnotateTextRequest'->new($_) };
306  
307 declare 'RepeatedAnnotateTextRequest',
308 as ArrayRef[AnnotateTextRequest()];
309  
310 coerce 'RepeatedAnnotateTextRequest',
311 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::AnnotateTextRequest'->new($_) } @$_ ] };
312  
313 declare 'MapStringAnnotateTextRequest',
314 as HashRef[AnnotateTextRequest()];
315  
316 declare 'Features',
317 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::AnnotateTextRequest::Features'];
318  
319 coerce 'Features',
320 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::AnnotateTextRequest::Features'->new($_) };
321  
322 declare 'RepeatedFeatures',
323 as ArrayRef[Features()];
324  
325 coerce 'RepeatedFeatures',
326 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::AnnotateTextRequest::Features'->new($_) } @$_ ] };
327  
328 declare 'MapStringFeatures',
329 as HashRef[Features()];
330  
331 declare 'AnnotateTextResponse',
332 as InstanceOf['Google::Cloud::Language::V1beta1::LanguageService::AnnotateTextResponse'];
333  
334 coerce 'AnnotateTextResponse',
335 from HashRef, via { 'Google::Cloud::Language::V1beta1::LanguageService::AnnotateTextResponse'->new($_) };
336  
337 declare 'RepeatedAnnotateTextResponse',
338 as ArrayRef[AnnotateTextResponse()];
339  
340 coerce 'RepeatedAnnotateTextResponse',
341 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1beta1::LanguageService::AnnotateTextResponse'->new($_) } @$_ ] };
342  
343 declare 'MapStringAnnotateTextResponse',
344 as HashRef[AnnotateTextResponse()];
345  
346 1;
347  
348 __END__