V1alpha/Session/Types.pm untested

filter: Statementstmt 0.0% 0 / 175 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 180 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::Session::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 'FileSource',
11 as (Int | Str);
12  
13 declare 'Session',
14 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::Session'];
15  
16 coerce 'Session',
17 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::Session'->new($_) };
18  
19 declare 'RepeatedSession',
20 as ArrayRef[Session()];
21  
22 coerce 'RepeatedSession',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::Session'->new($_) } @$_ ] };
24  
25 declare 'MapStringSession',
26 as HashRef[Session()];
27  
28 declare 'State',
29 as (Int | Str);
30  
31 declare 'Turn',
32 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::Session::Turn'];
33  
34 coerce 'Turn',
35 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::Session::Turn'->new($_) };
36  
37 declare 'RepeatedTurn',
38 as ArrayRef[Turn()];
39  
40 coerce 'RepeatedTurn',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::Session::Turn'->new($_) } @$_ ] };
42  
43 declare 'MapStringTurn',
44 as HashRef[Turn()];
45  
46 declare 'QueryConfigEntry',
47 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::Session::Turn::QueryConfigEntry'];
48  
49 coerce 'QueryConfigEntry',
50 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::Session::Turn::QueryConfigEntry'->new($_) };
51  
52 declare 'RepeatedQueryConfigEntry',
53 as ArrayRef[QueryConfigEntry()];
54  
55 coerce 'RepeatedQueryConfigEntry',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::Session::Turn::QueryConfigEntry'->new($_) } @$_ ] };
57  
58 declare 'MapStringQueryConfigEntry',
59 as HashRef[QueryConfigEntry()];
60  
61 declare 'Query',
62 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::Query'];
63  
64 coerce 'Query',
65 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::Query'->new($_) };
66  
67 declare 'RepeatedQuery',
68 as ArrayRef[Query()];
69  
70 coerce 'RepeatedQuery',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::Query'->new($_) } @$_ ] };
72  
73 declare 'MapStringQuery',
74 as HashRef[Query()];
75  
76 declare 'ImageCharacteristics',
77 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::ImageCharacteristics'];
78  
79 coerce 'ImageCharacteristics',
80 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::ImageCharacteristics'->new($_) };
81  
82 declare 'RepeatedImageCharacteristics',
83 as ArrayRef[ImageCharacteristics()];
84  
85 coerce 'RepeatedImageCharacteristics',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::ImageCharacteristics'->new($_) } @$_ ] };
87  
88 declare 'MapStringImageCharacteristics',
89 as HashRef[ImageCharacteristics()];
90  
91 declare 'ColorSpace',
92 as (Int | Str);
93  
94 declare 'VideoCharacteristics',
95 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::VideoCharacteristics'];
96  
97 coerce 'VideoCharacteristics',
98 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::VideoCharacteristics'->new($_) };
99  
100 declare 'RepeatedVideoCharacteristics',
101 as ArrayRef[VideoCharacteristics()];
102  
103 coerce 'RepeatedVideoCharacteristics',
104 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::VideoCharacteristics'->new($_) } @$_ ] };
105  
106 declare 'MapStringVideoCharacteristics',
107 as HashRef[VideoCharacteristics()];
108  
109 declare 'FileCharacteristics',
110 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::FileCharacteristics'];
111  
112 coerce 'FileCharacteristics',
113 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileCharacteristics'->new($_) };
114  
115 declare 'RepeatedFileCharacteristics',
116 as ArrayRef[FileCharacteristics()];
117  
118 coerce 'RepeatedFileCharacteristics',
119 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileCharacteristics'->new($_) } @$_ ] };
120  
121 declare 'MapStringFileCharacteristics',
122 as HashRef[FileCharacteristics()];
123  
124 declare 'CharacteristicsEntry',
125 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::FileCharacteristics::CharacteristicsEntry'];
126  
127 coerce 'CharacteristicsEntry',
128 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileCharacteristics::CharacteristicsEntry'->new($_) };
129  
130 declare 'RepeatedCharacteristicsEntry',
131 as ArrayRef[CharacteristicsEntry()];
132  
133 coerce 'RepeatedCharacteristicsEntry',
134 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileCharacteristics::CharacteristicsEntry'->new($_) } @$_ ] };
135  
136 declare 'MapStringCharacteristicsEntry',
137 as HashRef[CharacteristicsEntry()];
138  
139 declare 'FileView',
140 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::FileView'];
141  
142 coerce 'FileView',
143 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileView'->new($_) };
144  
145 declare 'RepeatedFileView',
146 as ArrayRef[FileView()];
147  
148 coerce 'RepeatedFileView',
149 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileView'->new($_) } @$_ ] };
150  
151 declare 'MapStringFileView',
152 as HashRef[FileView()];
153  
154 declare 'FileMetadata',
155 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata'];
156  
157 coerce 'FileMetadata',
158 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata'->new($_) };
159  
160 declare 'RepeatedFileMetadata',
161 as ArrayRef[FileMetadata()];
162  
163 coerce 'RepeatedFileMetadata',
164 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata'->new($_) } @$_ ] };
165  
166 declare 'MapStringFileMetadata',
167 as HashRef[FileMetadata()];
168  
169 declare 'MetadataEntry',
170 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata::MetadataEntry'];
171  
172 coerce 'MetadataEntry',
173 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata::MetadataEntry'->new($_) };
174  
175 declare 'RepeatedMetadataEntry',
176 as ArrayRef[MetadataEntry()];
177  
178 coerce 'RepeatedMetadataEntry',
179 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata::MetadataEntry'->new($_) } @$_ ] };
180  
181 declare 'MapStringMetadataEntry',
182 as HashRef[MetadataEntry()];
183  
184 declare 'ViewsEntry',
185 as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata::ViewsEntry'];
186  
187 coerce 'ViewsEntry',
188 from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata::ViewsEntry'->new($_) };
189  
190 declare 'RepeatedViewsEntry',
191 as ArrayRef[ViewsEntry()];
192  
193 coerce 'RepeatedViewsEntry',
194 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Session::FileMetadata::ViewsEntry'->new($_) } @$_ ] };
195  
196 declare 'MapStringViewsEntry',
197 as HashRef[ViewsEntry()];
198  
199 1;
200  
201 __END__