V1/AssistAnswer/Types.pm untested

filter: Statementstmt 0.0% 0 / 256 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 261 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::V1::AssistAnswer::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 'AssistAnswer',
11 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer'];
12  
13 coerce 'AssistAnswer',
14 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer'->new($_) };
15  
16 declare 'RepeatedAssistAnswer',
17 as ArrayRef[AssistAnswer()];
18  
19 coerce 'RepeatedAssistAnswer',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer'->new($_) } @$_ ] };
21  
22 declare 'MapStringAssistAnswer',
23 as HashRef[AssistAnswer()];
24  
25 declare 'State',
26 as (Int | Str);
27  
28 declare 'AssistSkippedReason',
29 as (Int | Str);
30  
31 declare 'Reply',
32 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::Reply'];
33  
34 coerce 'Reply',
35 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::Reply'->new($_) };
36  
37 declare 'RepeatedReply',
38 as ArrayRef[Reply()];
39  
40 coerce 'RepeatedReply',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::Reply'->new($_) } @$_ ] };
42  
43 declare 'MapStringReply',
44 as HashRef[Reply()];
45  
46 declare 'CustomerPolicyEnforcementResult',
47 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult'];
48  
49 coerce 'CustomerPolicyEnforcementResult',
50 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult'->new($_) };
51  
52 declare 'RepeatedCustomerPolicyEnforcementResult',
53 as ArrayRef[CustomerPolicyEnforcementResult()];
54  
55 coerce 'RepeatedCustomerPolicyEnforcementResult',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult'->new($_) } @$_ ] };
57  
58 declare 'MapStringCustomerPolicyEnforcementResult',
59 as HashRef[CustomerPolicyEnforcementResult()];
60  
61 declare 'Verdict',
62 as (Int | Str);
63  
64 declare 'ViolationSource',
65 as (Int | Str);
66  
67 declare 'BannedPhraseEnforcementResult',
68 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult'];
69  
70 coerce 'BannedPhraseEnforcementResult',
71 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult'->new($_) };
72  
73 declare 'RepeatedBannedPhraseEnforcementResult',
74 as ArrayRef[BannedPhraseEnforcementResult()];
75  
76 coerce 'RepeatedBannedPhraseEnforcementResult',
77 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult'->new($_) } @$_ ] };
78  
79 declare 'MapStringBannedPhraseEnforcementResult',
80 as HashRef[BannedPhraseEnforcementResult()];
81  
82 declare 'ModelArmorEnforcementResult',
83 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult'];
84  
85 coerce 'ModelArmorEnforcementResult',
86 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult'->new($_) };
87  
88 declare 'RepeatedModelArmorEnforcementResult',
89 as ArrayRef[ModelArmorEnforcementResult()];
90  
91 coerce 'RepeatedModelArmorEnforcementResult',
92 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult'->new($_) } @$_ ] };
93  
94 declare 'MapStringModelArmorEnforcementResult',
95 as HashRef[ModelArmorEnforcementResult()];
96  
97 declare 'PolicyEnforcementResult',
98 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::PolicyEnforcementResult'];
99  
100 coerce 'PolicyEnforcementResult',
101 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::PolicyEnforcementResult'->new($_) };
102  
103 declare 'RepeatedPolicyEnforcementResult',
104 as ArrayRef[PolicyEnforcementResult()];
105  
106 coerce 'RepeatedPolicyEnforcementResult',
107 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::PolicyEnforcementResult'->new($_) } @$_ ] };
108  
109 declare 'MapStringPolicyEnforcementResult',
110 as HashRef[PolicyEnforcementResult()];
111  
112 declare 'ConnectorDisplayNamesEntry',
113 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::ConnectorDisplayNamesEntry'];
114  
115 coerce 'ConnectorDisplayNamesEntry',
116 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::ConnectorDisplayNamesEntry'->new($_) };
117  
118 declare 'RepeatedConnectorDisplayNamesEntry',
119 as ArrayRef[ConnectorDisplayNamesEntry()];
120  
121 coerce 'RepeatedConnectorDisplayNamesEntry',
122 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistAnswer::ConnectorDisplayNamesEntry'->new($_) } @$_ ] };
123  
124 declare 'MapStringConnectorDisplayNamesEntry',
125 as HashRef[ConnectorDisplayNamesEntry()];
126  
127 declare 'AssistantContent',
128 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent'];
129  
130 coerce 'AssistantContent',
131 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent'->new($_) };
132  
133 declare 'RepeatedAssistantContent',
134 as ArrayRef[AssistantContent()];
135  
136 coerce 'RepeatedAssistantContent',
137 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent'->new($_) } @$_ ] };
138  
139 declare 'MapStringAssistantContent',
140 as HashRef[AssistantContent()];
141  
142 declare 'Blob',
143 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::Blob'];
144  
145 coerce 'Blob',
146 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::Blob'->new($_) };
147  
148 declare 'RepeatedBlob',
149 as ArrayRef[Blob()];
150  
151 coerce 'RepeatedBlob',
152 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::Blob'->new($_) } @$_ ] };
153  
154 declare 'MapStringBlob',
155 as HashRef[Blob()];
156  
157 declare 'File',
158 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::File'];
159  
160 coerce 'File',
161 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::File'->new($_) };
162  
163 declare 'RepeatedFile',
164 as ArrayRef[File()];
165  
166 coerce 'RepeatedFile',
167 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::File'->new($_) } @$_ ] };
168  
169 declare 'MapStringFile',
170 as HashRef[File()];
171  
172 declare 'ExecutableCode',
173 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::ExecutableCode'];
174  
175 coerce 'ExecutableCode',
176 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::ExecutableCode'->new($_) };
177  
178 declare 'RepeatedExecutableCode',
179 as ArrayRef[ExecutableCode()];
180  
181 coerce 'RepeatedExecutableCode',
182 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::ExecutableCode'->new($_) } @$_ ] };
183  
184 declare 'MapStringExecutableCode',
185 as HashRef[ExecutableCode()];
186  
187 declare 'CodeExecutionResult',
188 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::CodeExecutionResult'];
189  
190 coerce 'CodeExecutionResult',
191 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::CodeExecutionResult'->new($_) };
192  
193 declare 'RepeatedCodeExecutionResult',
194 as ArrayRef[CodeExecutionResult()];
195  
196 coerce 'RepeatedCodeExecutionResult',
197 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantContent::CodeExecutionResult'->new($_) } @$_ ] };
198  
199 declare 'MapStringCodeExecutionResult',
200 as HashRef[CodeExecutionResult()];
201  
202 declare 'Outcome',
203 as (Int | Str);
204  
205 declare 'AssistantGroundedContent',
206 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent'];
207  
208 coerce 'AssistantGroundedContent',
209 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent'->new($_) };
210  
211 declare 'RepeatedAssistantGroundedContent',
212 as ArrayRef[AssistantGroundedContent()];
213  
214 coerce 'RepeatedAssistantGroundedContent',
215 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent'->new($_) } @$_ ] };
216  
217 declare 'MapStringAssistantGroundedContent',
218 as HashRef[AssistantGroundedContent()];
219  
220 declare 'TextGroundingMetadata',
221 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata'];
222  
223 coerce 'TextGroundingMetadata',
224 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata'->new($_) };
225  
226 declare 'RepeatedTextGroundingMetadata',
227 as ArrayRef[TextGroundingMetadata()];
228  
229 coerce 'RepeatedTextGroundingMetadata',
230 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata'->new($_) } @$_ ] };
231  
232 declare 'MapStringTextGroundingMetadata',
233 as HashRef[TextGroundingMetadata()];
234  
235 declare 'Segment',
236 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Segment'];
237  
238 coerce 'Segment',
239 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Segment'->new($_) };
240  
241 declare 'RepeatedSegment',
242 as ArrayRef[Segment()];
243  
244 coerce 'RepeatedSegment',
245 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Segment'->new($_) } @$_ ] };
246  
247 declare 'MapStringSegment',
248 as HashRef[Segment()];
249  
250 declare 'VisualSegment',
251 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::VisualSegment'];
252  
253 coerce 'VisualSegment',
254 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::VisualSegment'->new($_) };
255  
256 declare 'RepeatedVisualSegment',
257 as ArrayRef[VisualSegment()];
258  
259 coerce 'RepeatedVisualSegment',
260 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::VisualSegment'->new($_) } @$_ ] };
261  
262 declare 'MapStringVisualSegment',
263 as HashRef[VisualSegment()];
264  
265 declare 'Reference',
266 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference'];
267  
268 coerce 'Reference',
269 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference'->new($_) };
270  
271 declare 'RepeatedReference',
272 as ArrayRef[Reference()];
273  
274 coerce 'RepeatedReference',
275 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference'->new($_) } @$_ ] };
276  
277 declare 'MapStringReference',
278 as HashRef[Reference()];
279  
280 declare 'DocumentMetadata',
281 as InstanceOf['Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference::DocumentMetadata'];
282  
283 coerce 'DocumentMetadata',
284 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference::DocumentMetadata'->new($_) };
285  
286 declare 'RepeatedDocumentMetadata',
287 as ArrayRef[DocumentMetadata()];
288  
289 coerce 'RepeatedDocumentMetadata',
290 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference::DocumentMetadata'->new($_) } @$_ ] };
291  
292 declare 'MapStringDocumentMetadata',
293 as HashRef[DocumentMetadata()];
294  
295 declare 'Language',
296 as (Int | Str);
297  
298 1;
299  
300 __END__