V1/Document/Types.pm untested

filter: Statementstmt 0.0% 0 / 213 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 218 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::Contentwarehouse::V1::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 'RawDocumentFileType',
11 as (Int | Str);
12  
13 declare 'ContentCategory',
14 as (Int | Str);
15  
16 declare 'Document',
17 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::Document'];
18  
19 coerce 'Document',
20 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::Document'->new($_) };
21  
22 declare 'RepeatedDocument',
23 as ArrayRef[Document()];
24  
25 coerce 'RepeatedDocument',
26 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::Document'->new($_) } @$_ ] };
27  
28 declare 'MapStringDocument',
29 as HashRef[Document()];
30  
31 declare 'DocumentReference',
32 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::DocumentReference'];
33  
34 coerce 'DocumentReference',
35 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::DocumentReference'->new($_) };
36  
37 declare 'RepeatedDocumentReference',
38 as ArrayRef[DocumentReference()];
39  
40 coerce 'RepeatedDocumentReference',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::DocumentReference'->new($_) } @$_ ] };
42  
43 declare 'MapStringDocumentReference',
44 as HashRef[DocumentReference()];
45  
46 declare 'Property',
47 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::Property'];
48  
49 coerce 'Property',
50 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::Property'->new($_) };
51  
52 declare 'RepeatedProperty',
53 as ArrayRef[Property()];
54  
55 coerce 'RepeatedProperty',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::Property'->new($_) } @$_ ] };
57  
58 declare 'MapStringProperty',
59 as HashRef[Property()];
60  
61 declare 'IntegerArray',
62 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::IntegerArray'];
63  
64 coerce 'IntegerArray',
65 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::IntegerArray'->new($_) };
66  
67 declare 'RepeatedIntegerArray',
68 as ArrayRef[IntegerArray()];
69  
70 coerce 'RepeatedIntegerArray',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::IntegerArray'->new($_) } @$_ ] };
72  
73 declare 'MapStringIntegerArray',
74 as HashRef[IntegerArray()];
75  
76 declare 'FloatArray',
77 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::FloatArray'];
78  
79 coerce 'FloatArray',
80 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::FloatArray'->new($_) };
81  
82 declare 'RepeatedFloatArray',
83 as ArrayRef[FloatArray()];
84  
85 coerce 'RepeatedFloatArray',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::FloatArray'->new($_) } @$_ ] };
87  
88 declare 'MapStringFloatArray',
89 as HashRef[FloatArray()];
90  
91 declare 'TextArray',
92 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::TextArray'];
93  
94 coerce 'TextArray',
95 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::TextArray'->new($_) };
96  
97 declare 'RepeatedTextArray',
98 as ArrayRef[TextArray()];
99  
100 coerce 'RepeatedTextArray',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::TextArray'->new($_) } @$_ ] };
102  
103 declare 'MapStringTextArray',
104 as HashRef[TextArray()];
105  
106 declare 'EnumArray',
107 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::EnumArray'];
108  
109 coerce 'EnumArray',
110 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::EnumArray'->new($_) };
111  
112 declare 'RepeatedEnumArray',
113 as ArrayRef[EnumArray()];
114  
115 coerce 'RepeatedEnumArray',
116 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::EnumArray'->new($_) } @$_ ] };
117  
118 declare 'MapStringEnumArray',
119 as HashRef[EnumArray()];
120  
121 declare 'DateTimeArray',
122 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::DateTimeArray'];
123  
124 coerce 'DateTimeArray',
125 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::DateTimeArray'->new($_) };
126  
127 declare 'RepeatedDateTimeArray',
128 as ArrayRef[DateTimeArray()];
129  
130 coerce 'RepeatedDateTimeArray',
131 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::DateTimeArray'->new($_) } @$_ ] };
132  
133 declare 'MapStringDateTimeArray',
134 as HashRef[DateTimeArray()];
135  
136 declare 'TimestampArray',
137 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::TimestampArray'];
138  
139 coerce 'TimestampArray',
140 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::TimestampArray'->new($_) };
141  
142 declare 'RepeatedTimestampArray',
143 as ArrayRef[TimestampArray()];
144  
145 coerce 'RepeatedTimestampArray',
146 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::TimestampArray'->new($_) } @$_ ] };
147  
148 declare 'MapStringTimestampArray',
149 as HashRef[TimestampArray()];
150  
151 declare 'TimestampValue',
152 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::TimestampValue'];
153  
154 coerce 'TimestampValue',
155 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::TimestampValue'->new($_) };
156  
157 declare 'RepeatedTimestampValue',
158 as ArrayRef[TimestampValue()];
159  
160 coerce 'RepeatedTimestampValue',
161 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::TimestampValue'->new($_) } @$_ ] };
162  
163 declare 'MapStringTimestampValue',
164 as HashRef[TimestampValue()];
165  
166 declare 'PropertyArray',
167 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::PropertyArray'];
168  
169 coerce 'PropertyArray',
170 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::PropertyArray'->new($_) };
171  
172 declare 'RepeatedPropertyArray',
173 as ArrayRef[PropertyArray()];
174  
175 coerce 'RepeatedPropertyArray',
176 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::PropertyArray'->new($_) } @$_ ] };
177  
178 declare 'MapStringPropertyArray',
179 as HashRef[PropertyArray()];
180  
181 declare 'MapProperty',
182 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::MapProperty'];
183  
184 coerce 'MapProperty',
185 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::MapProperty'->new($_) };
186  
187 declare 'RepeatedMapProperty',
188 as ArrayRef[MapProperty()];
189  
190 coerce 'RepeatedMapProperty',
191 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::MapProperty'->new($_) } @$_ ] };
192  
193 declare 'MapStringMapProperty',
194 as HashRef[MapProperty()];
195  
196 declare 'FieldsEntry',
197 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::MapProperty::FieldsEntry'];
198  
199 coerce 'FieldsEntry',
200 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::MapProperty::FieldsEntry'->new($_) };
201  
202 declare 'RepeatedFieldsEntry',
203 as ArrayRef[FieldsEntry()];
204  
205 coerce 'RepeatedFieldsEntry',
206 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::MapProperty::FieldsEntry'->new($_) } @$_ ] };
207  
208 declare 'MapStringFieldsEntry',
209 as HashRef[FieldsEntry()];
210  
211 declare 'Value',
212 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::Value'];
213  
214 coerce 'Value',
215 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::Value'->new($_) };
216  
217 declare 'RepeatedValue',
218 as ArrayRef[Value()];
219  
220 coerce 'RepeatedValue',
221 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::Value'->new($_) } @$_ ] };
222  
223 declare 'MapStringValue',
224 as HashRef[Value()];
225  
226 declare 'EnumValue',
227 as InstanceOf['Google::Cloud::Contentwarehouse::V1::Document::EnumValue'];
228  
229 coerce 'EnumValue',
230 from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Document::EnumValue'->new($_) };
231  
232 declare 'RepeatedEnumValue',
233 as ArrayRef[EnumValue()];
234  
235 coerce 'RepeatedEnumValue',
236 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Document::EnumValue'->new($_) } @$_ ] };
237  
238 declare 'MapStringEnumValue',
239 as HashRef[EnumValue()];
240  
241 1;
242  
243 __END__