V1/GenerativeService/Types.pm untested

filter: Statementstmt 0.0% 0 / 345 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 350 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Ai::Generativelanguage::V1::GenerativeService::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 'TaskType',
11 as (Int | Str);
12  
13 declare 'GenerateContentRequest',
14 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentRequest'];
15  
16 coerce 'GenerateContentRequest',
17 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentRequest'->new($_) };
18  
19 declare 'RepeatedGenerateContentRequest',
20 as ArrayRef[GenerateContentRequest()];
21  
22 coerce 'RepeatedGenerateContentRequest',
23 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentRequest'->new($_) } @$_ ] };
24  
25 declare 'MapStringGenerateContentRequest',
26 as HashRef[GenerateContentRequest()];
27  
28 declare 'GenerationConfig',
29 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::GenerationConfig'];
30  
31 coerce 'GenerationConfig',
32 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::GenerationConfig'->new($_) };
33  
34 declare 'RepeatedGenerationConfig',
35 as ArrayRef[GenerationConfig()];
36  
37 coerce 'RepeatedGenerationConfig',
38 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::GenerationConfig'->new($_) } @$_ ] };
39  
40 declare 'MapStringGenerationConfig',
41 as HashRef[GenerationConfig()];
42  
43 declare 'GenerateContentResponse',
44 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentResponse'];
45  
46 coerce 'GenerateContentResponse',
47 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentResponse'->new($_) };
48  
49 declare 'RepeatedGenerateContentResponse',
50 as ArrayRef[GenerateContentResponse()];
51  
52 coerce 'RepeatedGenerateContentResponse',
53 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentResponse'->new($_) } @$_ ] };
54  
55 declare 'MapStringGenerateContentResponse',
56 as HashRef[GenerateContentResponse()];
57  
58 declare 'PromptFeedback',
59 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentResponse::PromptFeedback'];
60  
61 coerce 'PromptFeedback',
62 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentResponse::PromptFeedback'->new($_) };
63  
64 declare 'RepeatedPromptFeedback',
65 as ArrayRef[PromptFeedback()];
66  
67 coerce 'RepeatedPromptFeedback',
68 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentResponse::PromptFeedback'->new($_) } @$_ ] };
69  
70 declare 'MapStringPromptFeedback',
71 as HashRef[PromptFeedback()];
72  
73 declare 'BlockReason',
74 as (Int | Str);
75  
76 declare 'UsageMetadata',
77 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentResponse::UsageMetadata'];
78  
79 coerce 'UsageMetadata',
80 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentResponse::UsageMetadata'->new($_) };
81  
82 declare 'RepeatedUsageMetadata',
83 as ArrayRef[UsageMetadata()];
84  
85 coerce 'RepeatedUsageMetadata',
86 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::GenerateContentResponse::UsageMetadata'->new($_) } @$_ ] };
87  
88 declare 'MapStringUsageMetadata',
89 as HashRef[UsageMetadata()];
90  
91 declare 'Candidate',
92 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::Candidate'];
93  
94 coerce 'Candidate',
95 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::Candidate'->new($_) };
96  
97 declare 'RepeatedCandidate',
98 as ArrayRef[Candidate()];
99  
100 coerce 'RepeatedCandidate',
101 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::Candidate'->new($_) } @$_ ] };
102  
103 declare 'MapStringCandidate',
104 as HashRef[Candidate()];
105  
106 declare 'FinishReason',
107 as (Int | Str);
108  
109 declare 'UrlContextMetadata',
110 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::UrlContextMetadata'];
111  
112 coerce 'UrlContextMetadata',
113 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::UrlContextMetadata'->new($_) };
114  
115 declare 'RepeatedUrlContextMetadata',
116 as ArrayRef[UrlContextMetadata()];
117  
118 coerce 'RepeatedUrlContextMetadata',
119 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::UrlContextMetadata'->new($_) } @$_ ] };
120  
121 declare 'MapStringUrlContextMetadata',
122 as HashRef[UrlContextMetadata()];
123  
124 declare 'UrlMetadata',
125 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::UrlMetadata'];
126  
127 coerce 'UrlMetadata',
128 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::UrlMetadata'->new($_) };
129  
130 declare 'RepeatedUrlMetadata',
131 as ArrayRef[UrlMetadata()];
132  
133 coerce 'RepeatedUrlMetadata',
134 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::UrlMetadata'->new($_) } @$_ ] };
135  
136 declare 'MapStringUrlMetadata',
137 as HashRef[UrlMetadata()];
138  
139 declare 'UrlRetrievalStatus',
140 as (Int | Str);
141  
142 declare 'LogprobsResult',
143 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::LogprobsResult'];
144  
145 coerce 'LogprobsResult',
146 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::LogprobsResult'->new($_) };
147  
148 declare 'RepeatedLogprobsResult',
149 as ArrayRef[LogprobsResult()];
150  
151 coerce 'RepeatedLogprobsResult',
152 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::LogprobsResult'->new($_) } @$_ ] };
153  
154 declare 'MapStringLogprobsResult',
155 as HashRef[LogprobsResult()];
156  
157 declare 'Candidate',
158 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::LogprobsResult::Candidate'];
159  
160 coerce 'Candidate',
161 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::LogprobsResult::Candidate'->new($_) };
162  
163 declare 'RepeatedCandidate',
164 as ArrayRef[Candidate()];
165  
166 coerce 'RepeatedCandidate',
167 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::LogprobsResult::Candidate'->new($_) } @$_ ] };
168  
169 declare 'MapStringCandidate',
170 as HashRef[Candidate()];
171  
172 declare 'TopCandidates',
173 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::LogprobsResult::TopCandidates'];
174  
175 coerce 'TopCandidates',
176 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::LogprobsResult::TopCandidates'->new($_) };
177  
178 declare 'RepeatedTopCandidates',
179 as ArrayRef[TopCandidates()];
180  
181 coerce 'RepeatedTopCandidates',
182 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::LogprobsResult::TopCandidates'->new($_) } @$_ ] };
183  
184 declare 'MapStringTopCandidates',
185 as HashRef[TopCandidates()];
186  
187 declare 'RetrievalMetadata',
188 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::RetrievalMetadata'];
189  
190 coerce 'RetrievalMetadata',
191 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::RetrievalMetadata'->new($_) };
192  
193 declare 'RepeatedRetrievalMetadata',
194 as ArrayRef[RetrievalMetadata()];
195  
196 coerce 'RepeatedRetrievalMetadata',
197 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::RetrievalMetadata'->new($_) } @$_ ] };
198  
199 declare 'MapStringRetrievalMetadata',
200 as HashRef[RetrievalMetadata()];
201  
202 declare 'GroundingMetadata',
203 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::GroundingMetadata'];
204  
205 coerce 'GroundingMetadata',
206 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::GroundingMetadata'->new($_) };
207  
208 declare 'RepeatedGroundingMetadata',
209 as ArrayRef[GroundingMetadata()];
210  
211 coerce 'RepeatedGroundingMetadata',
212 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::GroundingMetadata'->new($_) } @$_ ] };
213  
214 declare 'MapStringGroundingMetadata',
215 as HashRef[GroundingMetadata()];
216  
217 declare 'SearchEntryPoint',
218 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::SearchEntryPoint'];
219  
220 coerce 'SearchEntryPoint',
221 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::SearchEntryPoint'->new($_) };
222  
223 declare 'RepeatedSearchEntryPoint',
224 as ArrayRef[SearchEntryPoint()];
225  
226 coerce 'RepeatedSearchEntryPoint',
227 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::SearchEntryPoint'->new($_) } @$_ ] };
228  
229 declare 'MapStringSearchEntryPoint',
230 as HashRef[SearchEntryPoint()];
231  
232 declare 'GroundingChunk',
233 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::GroundingChunk'];
234  
235 coerce 'GroundingChunk',
236 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::GroundingChunk'->new($_) };
237  
238 declare 'RepeatedGroundingChunk',
239 as ArrayRef[GroundingChunk()];
240  
241 coerce 'RepeatedGroundingChunk',
242 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::GroundingChunk'->new($_) } @$_ ] };
243  
244 declare 'MapStringGroundingChunk',
245 as HashRef[GroundingChunk()];
246  
247 declare 'Web',
248 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::GroundingChunk::Web'];
249  
250 coerce 'Web',
251 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::GroundingChunk::Web'->new($_) };
252  
253 declare 'RepeatedWeb',
254 as ArrayRef[Web()];
255  
256 coerce 'RepeatedWeb',
257 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::GroundingChunk::Web'->new($_) } @$_ ] };
258  
259 declare 'MapStringWeb',
260 as HashRef[Web()];
261  
262 declare 'Segment',
263 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::Segment'];
264  
265 coerce 'Segment',
266 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::Segment'->new($_) };
267  
268 declare 'RepeatedSegment',
269 as ArrayRef[Segment()];
270  
271 coerce 'RepeatedSegment',
272 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::Segment'->new($_) } @$_ ] };
273  
274 declare 'MapStringSegment',
275 as HashRef[Segment()];
276  
277 declare 'GroundingSupport',
278 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::GroundingSupport'];
279  
280 coerce 'GroundingSupport',
281 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::GroundingSupport'->new($_) };
282  
283 declare 'RepeatedGroundingSupport',
284 as ArrayRef[GroundingSupport()];
285  
286 coerce 'RepeatedGroundingSupport',
287 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::GroundingSupport'->new($_) } @$_ ] };
288  
289 declare 'MapStringGroundingSupport',
290 as HashRef[GroundingSupport()];
291  
292 declare 'EmbedContentRequest',
293 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::EmbedContentRequest'];
294  
295 coerce 'EmbedContentRequest',
296 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::EmbedContentRequest'->new($_) };
297  
298 declare 'RepeatedEmbedContentRequest',
299 as ArrayRef[EmbedContentRequest()];
300  
301 coerce 'RepeatedEmbedContentRequest',
302 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::EmbedContentRequest'->new($_) } @$_ ] };
303  
304 declare 'MapStringEmbedContentRequest',
305 as HashRef[EmbedContentRequest()];
306  
307 declare 'ContentEmbedding',
308 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::ContentEmbedding'];
309  
310 coerce 'ContentEmbedding',
311 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::ContentEmbedding'->new($_) };
312  
313 declare 'RepeatedContentEmbedding',
314 as ArrayRef[ContentEmbedding()];
315  
316 coerce 'RepeatedContentEmbedding',
317 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::ContentEmbedding'->new($_) } @$_ ] };
318  
319 declare 'MapStringContentEmbedding',
320 as HashRef[ContentEmbedding()];
321  
322 declare 'EmbedContentResponse',
323 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::EmbedContentResponse'];
324  
325 coerce 'EmbedContentResponse',
326 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::EmbedContentResponse'->new($_) };
327  
328 declare 'RepeatedEmbedContentResponse',
329 as ArrayRef[EmbedContentResponse()];
330  
331 coerce 'RepeatedEmbedContentResponse',
332 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::EmbedContentResponse'->new($_) } @$_ ] };
333  
334 declare 'MapStringEmbedContentResponse',
335 as HashRef[EmbedContentResponse()];
336  
337 declare 'BatchEmbedContentsRequest',
338 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::BatchEmbedContentsRequest'];
339  
340 coerce 'BatchEmbedContentsRequest',
341 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::BatchEmbedContentsRequest'->new($_) };
342  
343 declare 'RepeatedBatchEmbedContentsRequest',
344 as ArrayRef[BatchEmbedContentsRequest()];
345  
346 coerce 'RepeatedBatchEmbedContentsRequest',
347 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::BatchEmbedContentsRequest'->new($_) } @$_ ] };
348  
349 declare 'MapStringBatchEmbedContentsRequest',
350 as HashRef[BatchEmbedContentsRequest()];
351  
352 declare 'BatchEmbedContentsResponse',
353 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::BatchEmbedContentsResponse'];
354  
355 coerce 'BatchEmbedContentsResponse',
356 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::BatchEmbedContentsResponse'->new($_) };
357  
358 declare 'RepeatedBatchEmbedContentsResponse',
359 as ArrayRef[BatchEmbedContentsResponse()];
360  
361 coerce 'RepeatedBatchEmbedContentsResponse',
362 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::BatchEmbedContentsResponse'->new($_) } @$_ ] };
363  
364 declare 'MapStringBatchEmbedContentsResponse',
365 as HashRef[BatchEmbedContentsResponse()];
366  
367 declare 'CountTokensRequest',
368 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::CountTokensRequest'];
369  
370 coerce 'CountTokensRequest',
371 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::CountTokensRequest'->new($_) };
372  
373 declare 'RepeatedCountTokensRequest',
374 as ArrayRef[CountTokensRequest()];
375  
376 coerce 'RepeatedCountTokensRequest',
377 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::CountTokensRequest'->new($_) } @$_ ] };
378  
379 declare 'MapStringCountTokensRequest',
380 as HashRef[CountTokensRequest()];
381  
382 declare 'CountTokensResponse',
383 as InstanceOf['Google::Ai::Generativelanguage::V1::GenerativeService::CountTokensResponse'];
384  
385 coerce 'CountTokensResponse',
386 from HashRef, via { 'Google::Ai::Generativelanguage::V1::GenerativeService::CountTokensResponse'->new($_) };
387  
388 declare 'RepeatedCountTokensResponse',
389 as ArrayRef[CountTokensResponse()];
390  
391 coerce 'RepeatedCountTokensResponse',
392 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1::GenerativeService::CountTokensResponse'->new($_) } @$_ ] };
393  
394 declare 'MapStringCountTokensResponse',
395 as HashRef[CountTokensResponse()];
396  
397 1;
398  
399 __END__