V1beta/Content/Types.pm untested

filter: Statementstmt 0.0% 0 / 428 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 433 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::V1beta::Content::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 'Type',
11 as (Int | Str);
12  
13 declare 'Modality',
14 as (Int | Str);
15  
16 declare 'Content',
17 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::Content'];
18  
19 coerce 'Content',
20 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::Content'->new($_) };
21  
22 declare 'RepeatedContent',
23 as ArrayRef[Content()];
24  
25 coerce 'RepeatedContent',
26 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::Content'->new($_) } @$_ ] };
27  
28 declare 'MapStringContent',
29 as HashRef[Content()];
30  
31 declare 'Part',
32 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::Part'];
33  
34 coerce 'Part',
35 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::Part'->new($_) };
36  
37 declare 'RepeatedPart',
38 as ArrayRef[Part()];
39  
40 coerce 'RepeatedPart',
41 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::Part'->new($_) } @$_ ] };
42  
43 declare 'MapStringPart',
44 as HashRef[Part()];
45  
46 declare 'FunctionResponsePart',
47 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::FunctionResponsePart'];
48  
49 coerce 'FunctionResponsePart',
50 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionResponsePart'->new($_) };
51  
52 declare 'RepeatedFunctionResponsePart',
53 as ArrayRef[FunctionResponsePart()];
54  
55 coerce 'RepeatedFunctionResponsePart',
56 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionResponsePart'->new($_) } @$_ ] };
57  
58 declare 'MapStringFunctionResponsePart',
59 as HashRef[FunctionResponsePart()];
60  
61 declare 'Blob',
62 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::Blob'];
63  
64 coerce 'Blob',
65 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::Blob'->new($_) };
66  
67 declare 'RepeatedBlob',
68 as ArrayRef[Blob()];
69  
70 coerce 'RepeatedBlob',
71 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::Blob'->new($_) } @$_ ] };
72  
73 declare 'MapStringBlob',
74 as HashRef[Blob()];
75  
76 declare 'FunctionResponseBlob',
77 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::FunctionResponseBlob'];
78  
79 coerce 'FunctionResponseBlob',
80 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionResponseBlob'->new($_) };
81  
82 declare 'RepeatedFunctionResponseBlob',
83 as ArrayRef[FunctionResponseBlob()];
84  
85 coerce 'RepeatedFunctionResponseBlob',
86 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionResponseBlob'->new($_) } @$_ ] };
87  
88 declare 'MapStringFunctionResponseBlob',
89 as HashRef[FunctionResponseBlob()];
90  
91 declare 'FileData',
92 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::FileData'];
93  
94 coerce 'FileData',
95 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::FileData'->new($_) };
96  
97 declare 'RepeatedFileData',
98 as ArrayRef[FileData()];
99  
100 coerce 'RepeatedFileData',
101 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::FileData'->new($_) } @$_ ] };
102  
103 declare 'MapStringFileData',
104 as HashRef[FileData()];
105  
106 declare 'VideoMetadata',
107 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::VideoMetadata'];
108  
109 coerce 'VideoMetadata',
110 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::VideoMetadata'->new($_) };
111  
112 declare 'RepeatedVideoMetadata',
113 as ArrayRef[VideoMetadata()];
114  
115 coerce 'RepeatedVideoMetadata',
116 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::VideoMetadata'->new($_) } @$_ ] };
117  
118 declare 'MapStringVideoMetadata',
119 as HashRef[VideoMetadata()];
120  
121 declare 'ExecutableCode',
122 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::ExecutableCode'];
123  
124 coerce 'ExecutableCode',
125 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::ExecutableCode'->new($_) };
126  
127 declare 'RepeatedExecutableCode',
128 as ArrayRef[ExecutableCode()];
129  
130 coerce 'RepeatedExecutableCode',
131 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::ExecutableCode'->new($_) } @$_ ] };
132  
133 declare 'MapStringExecutableCode',
134 as HashRef[ExecutableCode()];
135  
136 declare 'Language',
137 as (Int | Str);
138  
139 declare 'CodeExecutionResult',
140 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::CodeExecutionResult'];
141  
142 coerce 'CodeExecutionResult',
143 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::CodeExecutionResult'->new($_) };
144  
145 declare 'RepeatedCodeExecutionResult',
146 as ArrayRef[CodeExecutionResult()];
147  
148 coerce 'RepeatedCodeExecutionResult',
149 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::CodeExecutionResult'->new($_) } @$_ ] };
150  
151 declare 'MapStringCodeExecutionResult',
152 as HashRef[CodeExecutionResult()];
153  
154 declare 'Outcome',
155 as (Int | Str);
156  
157 declare 'Tool',
158 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::Tool'];
159  
160 coerce 'Tool',
161 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::Tool'->new($_) };
162  
163 declare 'RepeatedTool',
164 as ArrayRef[Tool()];
165  
166 coerce 'RepeatedTool',
167 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::Tool'->new($_) } @$_ ] };
168  
169 declare 'MapStringTool',
170 as HashRef[Tool()];
171  
172 declare 'GoogleSearch',
173 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::Tool::GoogleSearch'];
174  
175 coerce 'GoogleSearch',
176 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::Tool::GoogleSearch'->new($_) };
177  
178 declare 'RepeatedGoogleSearch',
179 as ArrayRef[GoogleSearch()];
180  
181 coerce 'RepeatedGoogleSearch',
182 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::Tool::GoogleSearch'->new($_) } @$_ ] };
183  
184 declare 'MapStringGoogleSearch',
185 as HashRef[GoogleSearch()];
186  
187 declare 'ComputerUse',
188 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::Tool::ComputerUse'];
189  
190 coerce 'ComputerUse',
191 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::Tool::ComputerUse'->new($_) };
192  
193 declare 'RepeatedComputerUse',
194 as ArrayRef[ComputerUse()];
195  
196 coerce 'RepeatedComputerUse',
197 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::Tool::ComputerUse'->new($_) } @$_ ] };
198  
199 declare 'MapStringComputerUse',
200 as HashRef[ComputerUse()];
201  
202 declare 'Environment',
203 as (Int | Str);
204  
205 declare 'GoogleMaps',
206 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::GoogleMaps'];
207  
208 coerce 'GoogleMaps',
209 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::GoogleMaps'->new($_) };
210  
211 declare 'RepeatedGoogleMaps',
212 as ArrayRef[GoogleMaps()];
213  
214 coerce 'RepeatedGoogleMaps',
215 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::GoogleMaps'->new($_) } @$_ ] };
216  
217 declare 'MapStringGoogleMaps',
218 as HashRef[GoogleMaps()];
219  
220 declare 'UrlContext',
221 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::UrlContext'];
222  
223 coerce 'UrlContext',
224 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::UrlContext'->new($_) };
225  
226 declare 'RepeatedUrlContext',
227 as ArrayRef[UrlContext()];
228  
229 coerce 'RepeatedUrlContext',
230 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::UrlContext'->new($_) } @$_ ] };
231  
232 declare 'MapStringUrlContext',
233 as HashRef[UrlContext()];
234  
235 declare 'FileSearch',
236 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::FileSearch'];
237  
238 coerce 'FileSearch',
239 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::FileSearch'->new($_) };
240  
241 declare 'RepeatedFileSearch',
242 as ArrayRef[FileSearch()];
243  
244 coerce 'RepeatedFileSearch',
245 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::FileSearch'->new($_) } @$_ ] };
246  
247 declare 'MapStringFileSearch',
248 as HashRef[FileSearch()];
249  
250 declare 'RetrievalResource',
251 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::FileSearch::RetrievalResource'];
252  
253 coerce 'RetrievalResource',
254 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::FileSearch::RetrievalResource'->new($_) };
255  
256 declare 'RepeatedRetrievalResource',
257 as ArrayRef[RetrievalResource()];
258  
259 coerce 'RepeatedRetrievalResource',
260 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::FileSearch::RetrievalResource'->new($_) } @$_ ] };
261  
262 declare 'MapStringRetrievalResource',
263 as HashRef[RetrievalResource()];
264  
265 declare 'RetrievalConfig',
266 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::FileSearch::RetrievalConfig'];
267  
268 coerce 'RetrievalConfig',
269 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::FileSearch::RetrievalConfig'->new($_) };
270  
271 declare 'RepeatedRetrievalConfig',
272 as ArrayRef[RetrievalConfig()];
273  
274 coerce 'RepeatedRetrievalConfig',
275 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::FileSearch::RetrievalConfig'->new($_) } @$_ ] };
276  
277 declare 'MapStringRetrievalConfig',
278 as HashRef[RetrievalConfig()];
279  
280 declare 'GoogleSearchRetrieval',
281 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::GoogleSearchRetrieval'];
282  
283 coerce 'GoogleSearchRetrieval',
284 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::GoogleSearchRetrieval'->new($_) };
285  
286 declare 'RepeatedGoogleSearchRetrieval',
287 as ArrayRef[GoogleSearchRetrieval()];
288  
289 coerce 'RepeatedGoogleSearchRetrieval',
290 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::GoogleSearchRetrieval'->new($_) } @$_ ] };
291  
292 declare 'MapStringGoogleSearchRetrieval',
293 as HashRef[GoogleSearchRetrieval()];
294  
295 declare 'DynamicRetrievalConfig',
296 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::DynamicRetrievalConfig'];
297  
298 coerce 'DynamicRetrievalConfig',
299 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::DynamicRetrievalConfig'->new($_) };
300  
301 declare 'RepeatedDynamicRetrievalConfig',
302 as ArrayRef[DynamicRetrievalConfig()];
303  
304 coerce 'RepeatedDynamicRetrievalConfig',
305 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::DynamicRetrievalConfig'->new($_) } @$_ ] };
306  
307 declare 'MapStringDynamicRetrievalConfig',
308 as HashRef[DynamicRetrievalConfig()];
309  
310 declare 'Mode',
311 as (Int | Str);
312  
313 declare 'CodeExecution',
314 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::CodeExecution'];
315  
316 coerce 'CodeExecution',
317 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::CodeExecution'->new($_) };
318  
319 declare 'RepeatedCodeExecution',
320 as ArrayRef[CodeExecution()];
321  
322 coerce 'RepeatedCodeExecution',
323 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::CodeExecution'->new($_) } @$_ ] };
324  
325 declare 'MapStringCodeExecution',
326 as HashRef[CodeExecution()];
327  
328 declare 'ToolConfig',
329 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::ToolConfig'];
330  
331 coerce 'ToolConfig',
332 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::ToolConfig'->new($_) };
333  
334 declare 'RepeatedToolConfig',
335 as ArrayRef[ToolConfig()];
336  
337 coerce 'RepeatedToolConfig',
338 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::ToolConfig'->new($_) } @$_ ] };
339  
340 declare 'MapStringToolConfig',
341 as HashRef[ToolConfig()];
342  
343 declare 'RetrievalConfig',
344 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::RetrievalConfig'];
345  
346 coerce 'RetrievalConfig',
347 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::RetrievalConfig'->new($_) };
348  
349 declare 'RepeatedRetrievalConfig',
350 as ArrayRef[RetrievalConfig()];
351  
352 coerce 'RepeatedRetrievalConfig',
353 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::RetrievalConfig'->new($_) } @$_ ] };
354  
355 declare 'MapStringRetrievalConfig',
356 as HashRef[RetrievalConfig()];
357  
358 declare 'FunctionCallingConfig',
359 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::FunctionCallingConfig'];
360  
361 coerce 'FunctionCallingConfig',
362 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionCallingConfig'->new($_) };
363  
364 declare 'RepeatedFunctionCallingConfig',
365 as ArrayRef[FunctionCallingConfig()];
366  
367 coerce 'RepeatedFunctionCallingConfig',
368 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionCallingConfig'->new($_) } @$_ ] };
369  
370 declare 'MapStringFunctionCallingConfig',
371 as HashRef[FunctionCallingConfig()];
372  
373 declare 'Mode',
374 as (Int | Str);
375  
376 declare 'FunctionDeclaration',
377 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::FunctionDeclaration'];
378  
379 coerce 'FunctionDeclaration',
380 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionDeclaration'->new($_) };
381  
382 declare 'RepeatedFunctionDeclaration',
383 as ArrayRef[FunctionDeclaration()];
384  
385 coerce 'RepeatedFunctionDeclaration',
386 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionDeclaration'->new($_) } @$_ ] };
387  
388 declare 'MapStringFunctionDeclaration',
389 as HashRef[FunctionDeclaration()];
390  
391 declare 'Behavior',
392 as (Int | Str);
393  
394 declare 'FunctionCall',
395 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::FunctionCall'];
396  
397 coerce 'FunctionCall',
398 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionCall'->new($_) };
399  
400 declare 'RepeatedFunctionCall',
401 as ArrayRef[FunctionCall()];
402  
403 coerce 'RepeatedFunctionCall',
404 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionCall'->new($_) } @$_ ] };
405  
406 declare 'MapStringFunctionCall',
407 as HashRef[FunctionCall()];
408  
409 declare 'FunctionResponse',
410 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::FunctionResponse'];
411  
412 coerce 'FunctionResponse',
413 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionResponse'->new($_) };
414  
415 declare 'RepeatedFunctionResponse',
416 as ArrayRef[FunctionResponse()];
417  
418 coerce 'RepeatedFunctionResponse',
419 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::FunctionResponse'->new($_) } @$_ ] };
420  
421 declare 'MapStringFunctionResponse',
422 as HashRef[FunctionResponse()];
423  
424 declare 'Scheduling',
425 as (Int | Str);
426  
427 declare 'Schema',
428 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::Schema'];
429  
430 coerce 'Schema',
431 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::Schema'->new($_) };
432  
433 declare 'RepeatedSchema',
434 as ArrayRef[Schema()];
435  
436 coerce 'RepeatedSchema',
437 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::Schema'->new($_) } @$_ ] };
438  
439 declare 'MapStringSchema',
440 as HashRef[Schema()];
441  
442 declare 'PropertiesEntry',
443 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::Schema::PropertiesEntry'];
444  
445 coerce 'PropertiesEntry',
446 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::Schema::PropertiesEntry'->new($_) };
447  
448 declare 'RepeatedPropertiesEntry',
449 as ArrayRef[PropertiesEntry()];
450  
451 coerce 'RepeatedPropertiesEntry',
452 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::Schema::PropertiesEntry'->new($_) } @$_ ] };
453  
454 declare 'MapStringPropertiesEntry',
455 as HashRef[PropertiesEntry()];
456  
457 declare 'GroundingPassage',
458 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::GroundingPassage'];
459  
460 coerce 'GroundingPassage',
461 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::GroundingPassage'->new($_) };
462  
463 declare 'RepeatedGroundingPassage',
464 as ArrayRef[GroundingPassage()];
465  
466 coerce 'RepeatedGroundingPassage',
467 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::GroundingPassage'->new($_) } @$_ ] };
468  
469 declare 'MapStringGroundingPassage',
470 as HashRef[GroundingPassage()];
471  
472 declare 'GroundingPassages',
473 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::GroundingPassages'];
474  
475 coerce 'GroundingPassages',
476 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::GroundingPassages'->new($_) };
477  
478 declare 'RepeatedGroundingPassages',
479 as ArrayRef[GroundingPassages()];
480  
481 coerce 'RepeatedGroundingPassages',
482 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::GroundingPassages'->new($_) } @$_ ] };
483  
484 declare 'MapStringGroundingPassages',
485 as HashRef[GroundingPassages()];
486  
487 declare 'ModalityTokenCount',
488 as InstanceOf['Google::Ai::Generativelanguage::V1beta::Content::ModalityTokenCount'];
489  
490 coerce 'ModalityTokenCount',
491 from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::Content::ModalityTokenCount'->new($_) };
492  
493 declare 'RepeatedModalityTokenCount',
494 as ArrayRef[ModalityTokenCount()];
495  
496 coerce 'RepeatedModalityTokenCount',
497 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::Content::ModalityTokenCount'->new($_) } @$_ ] };
498  
499 declare 'MapStringModalityTokenCount',
500 as HashRef[ModalityTokenCount()];
501  
502 1;
503  
504 __END__