V2/Document/Types.pm untested

filter: Statementstmt 0.0% 0 / 240 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 245 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::Dialogflow::V2::Document::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 'Document',
11 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::Document'];
12  
13 coerce 'Document',
14 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::Document'->new($_) };
15  
16 declare 'RepeatedDocument',
17 as ArrayRef[Document()];
18  
19 coerce 'RepeatedDocument',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::Document'->new($_) } @$_ ] };
21  
22 declare 'MapStringDocument',
23 as HashRef[Document()];
24  
25 declare 'KnowledgeType',
26 as (Int | Str);
27  
28 declare 'State',
29 as (Int | Str);
30  
31 declare 'ReloadStatus',
32 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::Document::ReloadStatus'];
33  
34 coerce 'ReloadStatus',
35 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::Document::ReloadStatus'->new($_) };
36  
37 declare 'RepeatedReloadStatus',
38 as ArrayRef[ReloadStatus()];
39  
40 coerce 'RepeatedReloadStatus',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::Document::ReloadStatus'->new($_) } @$_ ] };
42  
43 declare 'MapStringReloadStatus',
44 as HashRef[ReloadStatus()];
45  
46 declare 'MetadataEntry',
47 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::Document::MetadataEntry'];
48  
49 coerce 'MetadataEntry',
50 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::Document::MetadataEntry'->new($_) };
51  
52 declare 'RepeatedMetadataEntry',
53 as ArrayRef[MetadataEntry()];
54  
55 coerce 'RepeatedMetadataEntry',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::Document::MetadataEntry'->new($_) } @$_ ] };
57  
58 declare 'MapStringMetadataEntry',
59 as HashRef[MetadataEntry()];
60  
61 declare 'GetDocumentRequest',
62 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::GetDocumentRequest'];
63  
64 coerce 'GetDocumentRequest',
65 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::GetDocumentRequest'->new($_) };
66  
67 declare 'RepeatedGetDocumentRequest',
68 as ArrayRef[GetDocumentRequest()];
69  
70 coerce 'RepeatedGetDocumentRequest',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::GetDocumentRequest'->new($_) } @$_ ] };
72  
73 declare 'MapStringGetDocumentRequest',
74 as HashRef[GetDocumentRequest()];
75  
76 declare 'ListDocumentsRequest',
77 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::ListDocumentsRequest'];
78  
79 coerce 'ListDocumentsRequest',
80 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::ListDocumentsRequest'->new($_) };
81  
82 declare 'RepeatedListDocumentsRequest',
83 as ArrayRef[ListDocumentsRequest()];
84  
85 coerce 'RepeatedListDocumentsRequest',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::ListDocumentsRequest'->new($_) } @$_ ] };
87  
88 declare 'MapStringListDocumentsRequest',
89 as HashRef[ListDocumentsRequest()];
90  
91 declare 'ListDocumentsResponse',
92 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::ListDocumentsResponse'];
93  
94 coerce 'ListDocumentsResponse',
95 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::ListDocumentsResponse'->new($_) };
96  
97 declare 'RepeatedListDocumentsResponse',
98 as ArrayRef[ListDocumentsResponse()];
99  
100 coerce 'RepeatedListDocumentsResponse',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::ListDocumentsResponse'->new($_) } @$_ ] };
102  
103 declare 'MapStringListDocumentsResponse',
104 as HashRef[ListDocumentsResponse()];
105  
106 declare 'CreateDocumentRequest',
107 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::CreateDocumentRequest'];
108  
109 coerce 'CreateDocumentRequest',
110 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::CreateDocumentRequest'->new($_) };
111  
112 declare 'RepeatedCreateDocumentRequest',
113 as ArrayRef[CreateDocumentRequest()];
114  
115 coerce 'RepeatedCreateDocumentRequest',
116 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::CreateDocumentRequest'->new($_) } @$_ ] };
117  
118 declare 'MapStringCreateDocumentRequest',
119 as HashRef[CreateDocumentRequest()];
120  
121 declare 'ImportDocumentsRequest',
122 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::ImportDocumentsRequest'];
123  
124 coerce 'ImportDocumentsRequest',
125 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::ImportDocumentsRequest'->new($_) };
126  
127 declare 'RepeatedImportDocumentsRequest',
128 as ArrayRef[ImportDocumentsRequest()];
129  
130 coerce 'RepeatedImportDocumentsRequest',
131 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::ImportDocumentsRequest'->new($_) } @$_ ] };
132  
133 declare 'MapStringImportDocumentsRequest',
134 as HashRef[ImportDocumentsRequest()];
135  
136 declare 'ImportDocumentTemplate',
137 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::ImportDocumentTemplate'];
138  
139 coerce 'ImportDocumentTemplate',
140 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::ImportDocumentTemplate'->new($_) };
141  
142 declare 'RepeatedImportDocumentTemplate',
143 as ArrayRef[ImportDocumentTemplate()];
144  
145 coerce 'RepeatedImportDocumentTemplate',
146 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::ImportDocumentTemplate'->new($_) } @$_ ] };
147  
148 declare 'MapStringImportDocumentTemplate',
149 as HashRef[ImportDocumentTemplate()];
150  
151 declare 'MetadataEntry',
152 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::ImportDocumentTemplate::MetadataEntry'];
153  
154 coerce 'MetadataEntry',
155 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::ImportDocumentTemplate::MetadataEntry'->new($_) };
156  
157 declare 'RepeatedMetadataEntry',
158 as ArrayRef[MetadataEntry()];
159  
160 coerce 'RepeatedMetadataEntry',
161 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::ImportDocumentTemplate::MetadataEntry'->new($_) } @$_ ] };
162  
163 declare 'MapStringMetadataEntry',
164 as HashRef[MetadataEntry()];
165  
166 declare 'ImportDocumentsResponse',
167 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::ImportDocumentsResponse'];
168  
169 coerce 'ImportDocumentsResponse',
170 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::ImportDocumentsResponse'->new($_) };
171  
172 declare 'RepeatedImportDocumentsResponse',
173 as ArrayRef[ImportDocumentsResponse()];
174  
175 coerce 'RepeatedImportDocumentsResponse',
176 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::ImportDocumentsResponse'->new($_) } @$_ ] };
177  
178 declare 'MapStringImportDocumentsResponse',
179 as HashRef[ImportDocumentsResponse()];
180  
181 declare 'DeleteDocumentRequest',
182 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::DeleteDocumentRequest'];
183  
184 coerce 'DeleteDocumentRequest',
185 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::DeleteDocumentRequest'->new($_) };
186  
187 declare 'RepeatedDeleteDocumentRequest',
188 as ArrayRef[DeleteDocumentRequest()];
189  
190 coerce 'RepeatedDeleteDocumentRequest',
191 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::DeleteDocumentRequest'->new($_) } @$_ ] };
192  
193 declare 'MapStringDeleteDocumentRequest',
194 as HashRef[DeleteDocumentRequest()];
195  
196 declare 'UpdateDocumentRequest',
197 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::UpdateDocumentRequest'];
198  
199 coerce 'UpdateDocumentRequest',
200 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::UpdateDocumentRequest'->new($_) };
201  
202 declare 'RepeatedUpdateDocumentRequest',
203 as ArrayRef[UpdateDocumentRequest()];
204  
205 coerce 'RepeatedUpdateDocumentRequest',
206 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::UpdateDocumentRequest'->new($_) } @$_ ] };
207  
208 declare 'MapStringUpdateDocumentRequest',
209 as HashRef[UpdateDocumentRequest()];
210  
211 declare 'ReloadDocumentRequest',
212 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::ReloadDocumentRequest'];
213  
214 coerce 'ReloadDocumentRequest',
215 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::ReloadDocumentRequest'->new($_) };
216  
217 declare 'RepeatedReloadDocumentRequest',
218 as ArrayRef[ReloadDocumentRequest()];
219  
220 coerce 'RepeatedReloadDocumentRequest',
221 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::ReloadDocumentRequest'->new($_) } @$_ ] };
222  
223 declare 'MapStringReloadDocumentRequest',
224 as HashRef[ReloadDocumentRequest()];
225  
226 declare 'ExportDocumentRequest',
227 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::ExportDocumentRequest'];
228  
229 coerce 'ExportDocumentRequest',
230 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::ExportDocumentRequest'->new($_) };
231  
232 declare 'RepeatedExportDocumentRequest',
233 as ArrayRef[ExportDocumentRequest()];
234  
235 coerce 'RepeatedExportDocumentRequest',
236 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::ExportDocumentRequest'->new($_) } @$_ ] };
237  
238 declare 'MapStringExportDocumentRequest',
239 as HashRef[ExportDocumentRequest()];
240  
241 declare 'ExportOperationMetadata',
242 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::ExportOperationMetadata'];
243  
244 coerce 'ExportOperationMetadata',
245 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::ExportOperationMetadata'->new($_) };
246  
247 declare 'RepeatedExportOperationMetadata',
248 as ArrayRef[ExportOperationMetadata()];
249  
250 coerce 'RepeatedExportOperationMetadata',
251 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::ExportOperationMetadata'->new($_) } @$_ ] };
252  
253 declare 'MapStringExportOperationMetadata',
254 as HashRef[ExportOperationMetadata()];
255  
256 declare 'KnowledgeOperationMetadata',
257 as InstanceOf['Google::Cloud::Dialogflow::V2::Document::KnowledgeOperationMetadata'];
258  
259 coerce 'KnowledgeOperationMetadata',
260 from HashRef, via { 'Google::Cloud::Dialogflow::V2::Document::KnowledgeOperationMetadata'->new($_) };
261  
262 declare 'RepeatedKnowledgeOperationMetadata',
263 as ArrayRef[KnowledgeOperationMetadata()];
264  
265 coerce 'RepeatedKnowledgeOperationMetadata',
266 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Document::KnowledgeOperationMetadata'->new($_) } @$_ ] };
267  
268 declare 'MapStringKnowledgeOperationMetadata',
269 as HashRef[KnowledgeOperationMetadata()];
270  
271 declare 'State',
272 as (Int | Str);
273  
274 1;
275  
276 __END__