V1alpha/Answer/Types.pm untested

filter: Statementstmt 0.0% 0 / 254 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 259 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::Discoveryengine::V1alpha::Answer::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 'Answer',
11 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer'];
12  
13 coerce 'Answer',
14 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer'->new($_) };
15  
16 declare 'RepeatedAnswer',
17 as ArrayRef[Answer()];
18  
19 coerce 'RepeatedAnswer',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer'->new($_) } @$_ ] };
21  
22 declare 'MapStringAnswer',
23 as HashRef[Answer()];
24  
25 declare 'State',
26 as (Int | Str);
27  
28 declare 'AnswerSkippedReason',
29 as (Int | Str);
30  
31 declare 'Citation',
32 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Citation'];
33  
34 coerce 'Citation',
35 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Citation'->new($_) };
36  
37 declare 'RepeatedCitation',
38 as ArrayRef[Citation()];
39  
40 coerce 'RepeatedCitation',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Citation'->new($_) } @$_ ] };
42  
43 declare 'MapStringCitation',
44 as HashRef[Citation()];
45  
46 declare 'CitationSource',
47 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::CitationSource'];
48  
49 coerce 'CitationSource',
50 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::CitationSource'->new($_) };
51  
52 declare 'RepeatedCitationSource',
53 as ArrayRef[CitationSource()];
54  
55 coerce 'RepeatedCitationSource',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::CitationSource'->new($_) } @$_ ] };
57  
58 declare 'MapStringCitationSource',
59 as HashRef[CitationSource()];
60  
61 declare 'Reference',
62 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference'];
63  
64 coerce 'Reference',
65 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference'->new($_) };
66  
67 declare 'RepeatedReference',
68 as ArrayRef[Reference()];
69  
70 coerce 'RepeatedReference',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference'->new($_) } @$_ ] };
72  
73 declare 'MapStringReference',
74 as HashRef[Reference()];
75  
76 declare 'UnstructuredDocumentInfo',
77 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::UnstructuredDocumentInfo'];
78  
79 coerce 'UnstructuredDocumentInfo',
80 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::UnstructuredDocumentInfo'->new($_) };
81  
82 declare 'RepeatedUnstructuredDocumentInfo',
83 as ArrayRef[UnstructuredDocumentInfo()];
84  
85 coerce 'RepeatedUnstructuredDocumentInfo',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::UnstructuredDocumentInfo'->new($_) } @$_ ] };
87  
88 declare 'MapStringUnstructuredDocumentInfo',
89 as HashRef[UnstructuredDocumentInfo()];
90  
91 declare 'ChunkContent',
92 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::UnstructuredDocumentInfo::ChunkContent'];
93  
94 coerce 'ChunkContent',
95 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::UnstructuredDocumentInfo::ChunkContent'->new($_) };
96  
97 declare 'RepeatedChunkContent',
98 as ArrayRef[ChunkContent()];
99  
100 coerce 'RepeatedChunkContent',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::UnstructuredDocumentInfo::ChunkContent'->new($_) } @$_ ] };
102  
103 declare 'MapStringChunkContent',
104 as HashRef[ChunkContent()];
105  
106 declare 'ChunkInfo',
107 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::ChunkInfo'];
108  
109 coerce 'ChunkInfo',
110 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::ChunkInfo'->new($_) };
111  
112 declare 'RepeatedChunkInfo',
113 as ArrayRef[ChunkInfo()];
114  
115 coerce 'RepeatedChunkInfo',
116 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::ChunkInfo'->new($_) } @$_ ] };
117  
118 declare 'MapStringChunkInfo',
119 as HashRef[ChunkInfo()];
120  
121 declare 'DocumentMetadata',
122 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::ChunkInfo::DocumentMetadata'];
123  
124 coerce 'DocumentMetadata',
125 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::ChunkInfo::DocumentMetadata'->new($_) };
126  
127 declare 'RepeatedDocumentMetadata',
128 as ArrayRef[DocumentMetadata()];
129  
130 coerce 'RepeatedDocumentMetadata',
131 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::ChunkInfo::DocumentMetadata'->new($_) } @$_ ] };
132  
133 declare 'MapStringDocumentMetadata',
134 as HashRef[DocumentMetadata()];
135  
136 declare 'StructuredDocumentInfo',
137 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::StructuredDocumentInfo'];
138  
139 coerce 'StructuredDocumentInfo',
140 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::StructuredDocumentInfo'->new($_) };
141  
142 declare 'RepeatedStructuredDocumentInfo',
143 as ArrayRef[StructuredDocumentInfo()];
144  
145 coerce 'RepeatedStructuredDocumentInfo',
146 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Reference::StructuredDocumentInfo'->new($_) } @$_ ] };
147  
148 declare 'MapStringStructuredDocumentInfo',
149 as HashRef[StructuredDocumentInfo()];
150  
151 declare 'Step',
152 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step'];
153  
154 coerce 'Step',
155 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step'->new($_) };
156  
157 declare 'RepeatedStep',
158 as ArrayRef[Step()];
159  
160 coerce 'RepeatedStep',
161 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step'->new($_) } @$_ ] };
162  
163 declare 'MapStringStep',
164 as HashRef[Step()];
165  
166 declare 'State',
167 as (Int | Str);
168  
169 declare 'Action',
170 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action'];
171  
172 coerce 'Action',
173 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action'->new($_) };
174  
175 declare 'RepeatedAction',
176 as ArrayRef[Action()];
177  
178 coerce 'RepeatedAction',
179 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action'->new($_) } @$_ ] };
180  
181 declare 'MapStringAction',
182 as HashRef[Action()];
183  
184 declare 'SearchAction',
185 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::SearchAction'];
186  
187 coerce 'SearchAction',
188 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::SearchAction'->new($_) };
189  
190 declare 'RepeatedSearchAction',
191 as ArrayRef[SearchAction()];
192  
193 coerce 'RepeatedSearchAction',
194 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::SearchAction'->new($_) } @$_ ] };
195  
196 declare 'MapStringSearchAction',
197 as HashRef[SearchAction()];
198  
199 declare 'Observation',
200 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation'];
201  
202 coerce 'Observation',
203 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation'->new($_) };
204  
205 declare 'RepeatedObservation',
206 as ArrayRef[Observation()];
207  
208 coerce 'RepeatedObservation',
209 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation'->new($_) } @$_ ] };
210  
211 declare 'MapStringObservation',
212 as HashRef[Observation()];
213  
214 declare 'SearchResult',
215 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation::SearchResult'];
216  
217 coerce 'SearchResult',
218 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation::SearchResult'->new($_) };
219  
220 declare 'RepeatedSearchResult',
221 as ArrayRef[SearchResult()];
222  
223 coerce 'RepeatedSearchResult',
224 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation::SearchResult'->new($_) } @$_ ] };
225  
226 declare 'MapStringSearchResult',
227 as HashRef[SearchResult()];
228  
229 declare 'SnippetInfo',
230 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation::SearchResult::SnippetInfo'];
231  
232 coerce 'SnippetInfo',
233 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation::SearchResult::SnippetInfo'->new($_) };
234  
235 declare 'RepeatedSnippetInfo',
236 as ArrayRef[SnippetInfo()];
237  
238 coerce 'RepeatedSnippetInfo',
239 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation::SearchResult::SnippetInfo'->new($_) } @$_ ] };
240  
241 declare 'MapStringSnippetInfo',
242 as HashRef[SnippetInfo()];
243  
244 declare 'ChunkInfo',
245 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation::SearchResult::ChunkInfo'];
246  
247 coerce 'ChunkInfo',
248 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation::SearchResult::ChunkInfo'->new($_) };
249  
250 declare 'RepeatedChunkInfo',
251 as ArrayRef[ChunkInfo()];
252  
253 coerce 'RepeatedChunkInfo',
254 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::Step::Action::Observation::SearchResult::ChunkInfo'->new($_) } @$_ ] };
255  
256 declare 'MapStringChunkInfo',
257 as HashRef[ChunkInfo()];
258  
259 declare 'QueryUnderstandingInfo',
260 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::QueryUnderstandingInfo'];
261  
262 coerce 'QueryUnderstandingInfo',
263 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::QueryUnderstandingInfo'->new($_) };
264  
265 declare 'RepeatedQueryUnderstandingInfo',
266 as ArrayRef[QueryUnderstandingInfo()];
267  
268 coerce 'RepeatedQueryUnderstandingInfo',
269 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::QueryUnderstandingInfo'->new($_) } @$_ ] };
270  
271 declare 'MapStringQueryUnderstandingInfo',
272 as HashRef[QueryUnderstandingInfo()];
273  
274 declare 'QueryClassificationInfo',
275 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::QueryUnderstandingInfo::QueryClassificationInfo'];
276  
277 coerce 'QueryClassificationInfo',
278 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::QueryUnderstandingInfo::QueryClassificationInfo'->new($_) };
279  
280 declare 'RepeatedQueryClassificationInfo',
281 as ArrayRef[QueryClassificationInfo()];
282  
283 coerce 'RepeatedQueryClassificationInfo',
284 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Answer::Answer::QueryUnderstandingInfo::QueryClassificationInfo'->new($_) } @$_ ] };
285  
286 declare 'MapStringQueryClassificationInfo',
287 as HashRef[QueryClassificationInfo()];
288  
289 declare 'Type',
290 as (Int | Str);
291  
292 1;
293  
294 __END__