Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: generated/googleapis_beta/test/videointelligence/v1beta1_test.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis_beta/test/taskqueue/v1beta2_test.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library googleapis_beta.videointelligence.v1beta1.test; 1 library googleapis_beta.videointelligence.v1beta1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection;
5 import "dart:async" as async; 4 import "dart:async" as async;
6 import "dart:convert" as convert; 5 import "dart:convert" as convert;
7 6
8 import 'package:http/http.dart' as http; 7 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing;
10 import 'package:test/test.dart' as unittest; 8 import 'package:test/test.dart' as unittest;
11 9
12 import 'package:googleapis_beta/videointelligence/v1beta1.dart' as api; 10 import 'package:googleapis_beta/videointelligence/v1beta1.dart' as api;
13 11
14 class HttpServerMock extends http.BaseClient { 12 class HttpServerMock extends http.BaseClient {
15 core.Function _callback; 13 core.Function _callback;
16 core.bool _expectJson; 14 core.bool _expectJson;
17 15
18 void register(core.Function callback, core.bool expectJson) { 16 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback; 17 _callback = callback;
20 _expectJson = expectJson; 18 _expectJson = expectJson;
21 } 19 }
22 20
23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { 21 async.Future<http.StreamedResponse> send(http.BaseRequest request) {
24 if (_expectJson) { 22 if (_expectJson) {
25 return request.finalize() 23 return request
24 .finalize()
26 .transform(convert.UTF8.decoder) 25 .transform(convert.UTF8.decoder)
27 .join('') 26 .join('')
28 .then((core.String jsonString) { 27 .then((core.String jsonString) {
29 if (jsonString.isEmpty) { 28 if (jsonString.isEmpty) {
30 return _callback(request, null); 29 return _callback(request, null);
31 } else { 30 } else {
32 return _callback(request, convert.JSON.decode(jsonString)); 31 return _callback(request, convert.JSON.decode(jsonString));
33 } 32 }
34 }); 33 });
35 } else { 34 } else {
36 var stream = request.finalize(); 35 var stream = request.finalize();
37 if (stream == null) { 36 if (stream == null) {
38 return _callback(request, []); 37 return _callback(request, []);
39 } else { 38 } else {
40 return stream.toBytes().then((data) { 39 return stream.toBytes().then((data) {
41 return _callback(request, data); 40 return _callback(request, data);
42 }); 41 });
43 } 42 }
44 } 43 }
45 } 44 }
46 } 45 }
47 46
48 http.StreamedResponse stringResponse( 47 http.StreamedResponse stringResponse(core.int status,
49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) { 48 core.Map<core.String, core.String> headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 49 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 50 return new http.StreamedResponse(stream, status, headers: headers);
52 } 51 }
53 52
54 buildUnnamed3354() { 53 buildUnnamed3347() {
55 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgres s>(); 54 var o = new core
55 .List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress>();
56 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); 56 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress());
57 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); 57 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed3354(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProg ress> o) { 61 checkUnnamed3347(
62 core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress> o) {
62 unittest.expect(o, unittest.hasLength(2)); 63 unittest.expect(o, unittest.hasLength(2));
63 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[0]); 64 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[0]);
64 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[1]); 65 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[1]);
65 } 66 }
66 67
67 core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress = 0; 68 core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress = 0;
68 buildGoogleCloudVideointelligenceV1AnnotateVideoProgress() { 69 buildGoogleCloudVideointelligenceV1AnnotateVideoProgress() {
69 var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress(); 70 var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress();
70 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; 71 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++;
71 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { 72 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) {
72 o.annotationProgress = buildUnnamed3354(); 73 o.annotationProgress = buildUnnamed3347();
73 } 74 }
74 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; 75 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--;
75 return o; 76 return o;
76 } 77 }
77 78
78 checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(api.GoogleCloudVideoint elligenceV1AnnotateVideoProgress o) { 79 checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(
80 api.GoogleCloudVideointelligenceV1AnnotateVideoProgress o) {
79 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; 81 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++;
80 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { 82 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) {
81 checkUnnamed3354(o.annotationProgress); 83 checkUnnamed3347(o.annotationProgress);
82 } 84 }
83 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; 85 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--;
84 } 86 }
85 87
86 buildUnnamed3355() { 88 buildUnnamed3348() {
87 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults >(); 89 var o =
90 new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults>();
88 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); 91 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults());
89 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); 92 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults());
90 return o; 93 return o;
91 } 94 }
92 95
93 checkUnnamed3355(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResu lts> o) { 96 checkUnnamed3348(
97 core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults> o) {
94 unittest.expect(o, unittest.hasLength(2)); 98 unittest.expect(o, unittest.hasLength(2));
95 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[0]); 99 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[0]);
96 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[1]); 100 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[1]);
97 } 101 }
98 102
99 core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse = 0; 103 core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse = 0;
100 buildGoogleCloudVideointelligenceV1AnnotateVideoResponse() { 104 buildGoogleCloudVideointelligenceV1AnnotateVideoResponse() {
101 var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse(); 105 var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse();
102 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; 106 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++;
103 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { 107 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) {
104 o.annotationResults = buildUnnamed3355(); 108 o.annotationResults = buildUnnamed3348();
105 } 109 }
106 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; 110 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--;
107 return o; 111 return o;
108 } 112 }
109 113
110 checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(api.GoogleCloudVideoint elligenceV1AnnotateVideoResponse o) { 114 checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(
115 api.GoogleCloudVideointelligenceV1AnnotateVideoResponse o) {
111 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; 116 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++;
112 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { 117 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) {
113 checkUnnamed3355(o.annotationResults); 118 checkUnnamed3348(o.annotationResults);
114 } 119 }
115 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; 120 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--;
116 } 121 }
117 122
118 buildUnnamed3356() { 123 buildUnnamed3349() {
119 var o = new core.List<api.GoogleCloudVideointelligenceV1LabelLocation>(); 124 var o = new core.List<api.GoogleCloudVideointelligenceV1LabelLocation>();
120 o.add(buildGoogleCloudVideointelligenceV1LabelLocation()); 125 o.add(buildGoogleCloudVideointelligenceV1LabelLocation());
121 o.add(buildGoogleCloudVideointelligenceV1LabelLocation()); 126 o.add(buildGoogleCloudVideointelligenceV1LabelLocation());
122 return o; 127 return o;
123 } 128 }
124 129
125 checkUnnamed3356(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) { 130 checkUnnamed3349(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) {
126 unittest.expect(o, unittest.hasLength(2)); 131 unittest.expect(o, unittest.hasLength(2));
127 checkGoogleCloudVideointelligenceV1LabelLocation(o[0]); 132 checkGoogleCloudVideointelligenceV1LabelLocation(o[0]);
128 checkGoogleCloudVideointelligenceV1LabelLocation(o[1]); 133 checkGoogleCloudVideointelligenceV1LabelLocation(o[1]);
129 } 134 }
130 135
131 core.int buildCounterGoogleCloudVideointelligenceV1LabelAnnotation = 0; 136 core.int buildCounterGoogleCloudVideointelligenceV1LabelAnnotation = 0;
132 buildGoogleCloudVideointelligenceV1LabelAnnotation() { 137 buildGoogleCloudVideointelligenceV1LabelAnnotation() {
133 var o = new api.GoogleCloudVideointelligenceV1LabelAnnotation(); 138 var o = new api.GoogleCloudVideointelligenceV1LabelAnnotation();
134 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++; 139 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++;
135 if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { 140 if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) {
136 o.description = "foo"; 141 o.description = "foo";
137 o.languageCode = "foo"; 142 o.languageCode = "foo";
138 o.locations = buildUnnamed3356(); 143 o.locations = buildUnnamed3349();
139 } 144 }
140 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; 145 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--;
141 return o; 146 return o;
142 } 147 }
143 148
144 checkGoogleCloudVideointelligenceV1LabelAnnotation(api.GoogleCloudVideointellige nceV1LabelAnnotation o) { 149 checkGoogleCloudVideointelligenceV1LabelAnnotation(
150 api.GoogleCloudVideointelligenceV1LabelAnnotation o) {
145 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++; 151 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++;
146 if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { 152 if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) {
147 unittest.expect(o.description, unittest.equals('foo')); 153 unittest.expect(o.description, unittest.equals('foo'));
148 unittest.expect(o.languageCode, unittest.equals('foo')); 154 unittest.expect(o.languageCode, unittest.equals('foo'));
149 checkUnnamed3356(o.locations); 155 checkUnnamed3349(o.locations);
150 } 156 }
151 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; 157 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--;
152 } 158 }
153 159
154 core.int buildCounterGoogleCloudVideointelligenceV1LabelLocation = 0; 160 core.int buildCounterGoogleCloudVideointelligenceV1LabelLocation = 0;
155 buildGoogleCloudVideointelligenceV1LabelLocation() { 161 buildGoogleCloudVideointelligenceV1LabelLocation() {
156 var o = new api.GoogleCloudVideointelligenceV1LabelLocation(); 162 var o = new api.GoogleCloudVideointelligenceV1LabelLocation();
157 buildCounterGoogleCloudVideointelligenceV1LabelLocation++; 163 buildCounterGoogleCloudVideointelligenceV1LabelLocation++;
158 if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) { 164 if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) {
159 o.confidence = 42.0; 165 o.confidence = 42.0;
160 o.level = "foo"; 166 o.level = "foo";
161 o.segment = buildGoogleCloudVideointelligenceV1VideoSegment(); 167 o.segment = buildGoogleCloudVideointelligenceV1VideoSegment();
162 } 168 }
163 buildCounterGoogleCloudVideointelligenceV1LabelLocation--; 169 buildCounterGoogleCloudVideointelligenceV1LabelLocation--;
164 return o; 170 return o;
165 } 171 }
166 172
167 checkGoogleCloudVideointelligenceV1LabelLocation(api.GoogleCloudVideointelligenc eV1LabelLocation o) { 173 checkGoogleCloudVideointelligenceV1LabelLocation(
174 api.GoogleCloudVideointelligenceV1LabelLocation o) {
168 buildCounterGoogleCloudVideointelligenceV1LabelLocation++; 175 buildCounterGoogleCloudVideointelligenceV1LabelLocation++;
169 if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) { 176 if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) {
170 unittest.expect(o.confidence, unittest.equals(42.0)); 177 unittest.expect(o.confidence, unittest.equals(42.0));
171 unittest.expect(o.level, unittest.equals('foo')); 178 unittest.expect(o.level, unittest.equals('foo'));
172 checkGoogleCloudVideointelligenceV1VideoSegment(o.segment); 179 checkGoogleCloudVideointelligenceV1VideoSegment(o.segment);
173 } 180 }
174 buildCounterGoogleCloudVideointelligenceV1LabelLocation--; 181 buildCounterGoogleCloudVideointelligenceV1LabelLocation--;
175 } 182 }
176 183
177 core.int buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation = 0; 184 core.int buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation = 0;
178 buildGoogleCloudVideointelligenceV1SafeSearchAnnotation() { 185 buildGoogleCloudVideointelligenceV1SafeSearchAnnotation() {
179 var o = new api.GoogleCloudVideointelligenceV1SafeSearchAnnotation(); 186 var o = new api.GoogleCloudVideointelligenceV1SafeSearchAnnotation();
180 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation++; 187 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation++;
181 if (buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation < 3) { 188 if (buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation < 3) {
182 o.adult = "foo"; 189 o.adult = "foo";
183 o.time = "foo"; 190 o.time = "foo";
184 } 191 }
185 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation--; 192 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation--;
186 return o; 193 return o;
187 } 194 }
188 195
189 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(api.GoogleCloudVideointe lligenceV1SafeSearchAnnotation o) { 196 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(
197 api.GoogleCloudVideointelligenceV1SafeSearchAnnotation o) {
190 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation++; 198 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation++;
191 if (buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation < 3) { 199 if (buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation < 3) {
192 unittest.expect(o.adult, unittest.equals('foo')); 200 unittest.expect(o.adult, unittest.equals('foo'));
193 unittest.expect(o.time, unittest.equals('foo')); 201 unittest.expect(o.time, unittest.equals('foo'));
194 } 202 }
195 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation--; 203 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation--;
196 } 204 }
197 205
198 core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress = 0; 206 core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress = 0;
199 buildGoogleCloudVideointelligenceV1VideoAnnotationProgress() { 207 buildGoogleCloudVideointelligenceV1VideoAnnotationProgress() {
200 var o = new api.GoogleCloudVideointelligenceV1VideoAnnotationProgress(); 208 var o = new api.GoogleCloudVideointelligenceV1VideoAnnotationProgress();
201 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++; 209 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++;
202 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) { 210 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) {
203 o.inputUri = "foo"; 211 o.inputUri = "foo";
204 o.progressPercent = 42; 212 o.progressPercent = 42;
205 o.startTime = "foo"; 213 o.startTime = "foo";
206 o.updateTime = "foo"; 214 o.updateTime = "foo";
207 } 215 }
208 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--; 216 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--;
209 return o; 217 return o;
210 } 218 }
211 219
212 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(api.GoogleCloudVideoi ntelligenceV1VideoAnnotationProgress o) { 220 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(
221 api.GoogleCloudVideointelligenceV1VideoAnnotationProgress o) {
213 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++; 222 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++;
214 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) { 223 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) {
215 unittest.expect(o.inputUri, unittest.equals('foo')); 224 unittest.expect(o.inputUri, unittest.equals('foo'));
216 unittest.expect(o.progressPercent, unittest.equals(42)); 225 unittest.expect(o.progressPercent, unittest.equals(42));
217 unittest.expect(o.startTime, unittest.equals('foo')); 226 unittest.expect(o.startTime, unittest.equals('foo'));
218 unittest.expect(o.updateTime, unittest.equals('foo')); 227 unittest.expect(o.updateTime, unittest.equals('foo'));
219 } 228 }
220 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--; 229 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--;
221 } 230 }
222 231
223 buildUnnamed3357() { 232 buildUnnamed3350() {
224 var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>(); 233 var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>();
225 o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); 234 o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
226 o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); 235 o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
227 return o; 236 return o;
228 } 237 }
229 238
230 checkUnnamed3357(core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) { 239 checkUnnamed3350(
240 core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) {
231 unittest.expect(o, unittest.hasLength(2)); 241 unittest.expect(o, unittest.hasLength(2));
232 checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]); 242 checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]);
233 checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]); 243 checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]);
234 } 244 }
235 245
236 buildUnnamed3358() { 246 buildUnnamed3351() {
237 var o = new core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation>( ); 247 var o =
248 new core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation>();
238 o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation()); 249 o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation());
239 o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation()); 250 o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation());
240 return o; 251 return o;
241 } 252 }
242 253
243 checkUnnamed3358(core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotatio n> o) { 254 checkUnnamed3351(
255 core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation> o) {
244 unittest.expect(o, unittest.hasLength(2)); 256 unittest.expect(o, unittest.hasLength(2));
245 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[0]); 257 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[0]);
246 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[1]); 258 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[1]);
247 } 259 }
248 260
249 buildUnnamed3359() { 261 buildUnnamed3352() {
250 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>(); 262 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>();
251 o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); 263 o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
252 o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); 264 o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
253 return o; 265 return o;
254 } 266 }
255 267
256 checkUnnamed3359(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { 268 checkUnnamed3352(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) {
257 unittest.expect(o, unittest.hasLength(2)); 269 unittest.expect(o, unittest.hasLength(2));
258 checkGoogleCloudVideointelligenceV1VideoSegment(o[0]); 270 checkGoogleCloudVideointelligenceV1VideoSegment(o[0]);
259 checkGoogleCloudVideointelligenceV1VideoSegment(o[1]); 271 checkGoogleCloudVideointelligenceV1VideoSegment(o[1]);
260 } 272 }
261 273
262 core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults = 0; 274 core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults = 0;
263 buildGoogleCloudVideointelligenceV1VideoAnnotationResults() { 275 buildGoogleCloudVideointelligenceV1VideoAnnotationResults() {
264 var o = new api.GoogleCloudVideointelligenceV1VideoAnnotationResults(); 276 var o = new api.GoogleCloudVideointelligenceV1VideoAnnotationResults();
265 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++; 277 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++;
266 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) { 278 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) {
267 o.error = buildGoogleRpcStatus(); 279 o.error = buildGoogleRpcStatus();
268 o.inputUri = "foo"; 280 o.inputUri = "foo";
269 o.labelAnnotations = buildUnnamed3357(); 281 o.labelAnnotations = buildUnnamed3350();
270 o.safeSearchAnnotations = buildUnnamed3358(); 282 o.safeSearchAnnotations = buildUnnamed3351();
271 o.shotAnnotations = buildUnnamed3359(); 283 o.shotAnnotations = buildUnnamed3352();
272 } 284 }
273 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; 285 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--;
274 return o; 286 return o;
275 } 287 }
276 288
277 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(api.GoogleCloudVideoin telligenceV1VideoAnnotationResults o) { 289 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(
290 api.GoogleCloudVideointelligenceV1VideoAnnotationResults o) {
278 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++; 291 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++;
279 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) { 292 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) {
280 checkGoogleRpcStatus(o.error); 293 checkGoogleRpcStatus(o.error);
281 unittest.expect(o.inputUri, unittest.equals('foo')); 294 unittest.expect(o.inputUri, unittest.equals('foo'));
282 checkUnnamed3357(o.labelAnnotations); 295 checkUnnamed3350(o.labelAnnotations);
283 checkUnnamed3358(o.safeSearchAnnotations); 296 checkUnnamed3351(o.safeSearchAnnotations);
284 checkUnnamed3359(o.shotAnnotations); 297 checkUnnamed3352(o.shotAnnotations);
285 } 298 }
286 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; 299 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--;
287 } 300 }
288 301
289 core.int buildCounterGoogleCloudVideointelligenceV1VideoSegment = 0; 302 core.int buildCounterGoogleCloudVideointelligenceV1VideoSegment = 0;
290 buildGoogleCloudVideointelligenceV1VideoSegment() { 303 buildGoogleCloudVideointelligenceV1VideoSegment() {
291 var o = new api.GoogleCloudVideointelligenceV1VideoSegment(); 304 var o = new api.GoogleCloudVideointelligenceV1VideoSegment();
292 buildCounterGoogleCloudVideointelligenceV1VideoSegment++; 305 buildCounterGoogleCloudVideointelligenceV1VideoSegment++;
293 if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) { 306 if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) {
294 o.endTime = "foo"; 307 o.endTime = "foo";
295 o.startTime = "foo"; 308 o.startTime = "foo";
296 } 309 }
297 buildCounterGoogleCloudVideointelligenceV1VideoSegment--; 310 buildCounterGoogleCloudVideointelligenceV1VideoSegment--;
298 return o; 311 return o;
299 } 312 }
300 313
301 checkGoogleCloudVideointelligenceV1VideoSegment(api.GoogleCloudVideointelligence V1VideoSegment o) { 314 checkGoogleCloudVideointelligenceV1VideoSegment(
315 api.GoogleCloudVideointelligenceV1VideoSegment o) {
302 buildCounterGoogleCloudVideointelligenceV1VideoSegment++; 316 buildCounterGoogleCloudVideointelligenceV1VideoSegment++;
303 if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) { 317 if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) {
304 unittest.expect(o.endTime, unittest.equals('foo')); 318 unittest.expect(o.endTime, unittest.equals('foo'));
305 unittest.expect(o.startTime, unittest.equals('foo')); 319 unittest.expect(o.startTime, unittest.equals('foo'));
306 } 320 }
307 buildCounterGoogleCloudVideointelligenceV1VideoSegment--; 321 buildCounterGoogleCloudVideointelligenceV1VideoSegment--;
308 } 322 }
309 323
310 buildUnnamed3360() { 324 buildUnnamed3353() {
311 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationPr ogress>(); 325 var o = new core
326 .List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>();
312 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); 327 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress());
313 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); 328 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress());
314 return o; 329 return o;
315 } 330 }
316 331
317 checkUnnamed3360(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio nProgress> o) { 332 checkUnnamed3353(
333 core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>
334 o) {
318 unittest.expect(o, unittest.hasLength(2)); 335 unittest.expect(o, unittest.hasLength(2));
319 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[0]); 336 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[0]);
320 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[1]); 337 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[1]);
321 } 338 }
322 339
323 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress = 0; 340 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress =
341 0;
324 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress() { 342 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress() {
325 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); 343 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress();
326 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; 344 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++;
327 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) { 345 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress <
328 o.annotationProgress = buildUnnamed3360(); 346 3) {
347 o.annotationProgress = buildUnnamed3353();
329 } 348 }
330 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; 349 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--;
331 return o; 350 return o;
332 } 351 }
333 352
334 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(api.GoogleCloudVid eointelligenceV1beta1AnnotateVideoProgress o) { 353 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(
354 api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress o) {
335 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; 355 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++;
336 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) { 356 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress <
337 checkUnnamed3360(o.annotationProgress); 357 3) {
358 checkUnnamed3353(o.annotationProgress);
338 } 359 }
339 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; 360 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--;
340 } 361 }
341 362
342 buildUnnamed3361() { 363 buildUnnamed3354() {
343 var o = new core.List<core.String>(); 364 var o = new core.List<core.String>();
344 o.add("foo"); 365 o.add("foo");
345 o.add("foo"); 366 o.add("foo");
346 return o; 367 return o;
347 } 368 }
348 369
349 checkUnnamed3361(core.List<core.String> o) { 370 checkUnnamed3354(core.List<core.String> o) {
350 unittest.expect(o, unittest.hasLength(2)); 371 unittest.expect(o, unittest.hasLength(2));
351 unittest.expect(o[0], unittest.equals('foo')); 372 unittest.expect(o[0], unittest.equals('foo'));
352 unittest.expect(o[1], unittest.equals('foo')); 373 unittest.expect(o[1], unittest.equals('foo'));
353 } 374 }
354 375
355 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest = 0 ; 376 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest =
377 0;
356 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest() { 378 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest() {
357 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); 379 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest();
358 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; 380 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++;
359 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { 381 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) {
360 o.features = buildUnnamed3361(); 382 o.features = buildUnnamed3354();
361 o.inputContent = "foo"; 383 o.inputContent = "foo";
362 o.inputUri = "foo"; 384 o.inputUri = "foo";
363 o.locationId = "foo"; 385 o.locationId = "foo";
364 o.outputUri = "foo"; 386 o.outputUri = "foo";
365 o.videoContext = buildGoogleCloudVideointelligenceV1beta1VideoContext(); 387 o.videoContext = buildGoogleCloudVideointelligenceV1beta1VideoContext();
366 } 388 }
367 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; 389 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--;
368 return o; 390 return o;
369 } 391 }
370 392
371 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVide ointelligenceV1beta1AnnotateVideoRequest o) { 393 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(
394 api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest o) {
372 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; 395 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++;
373 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { 396 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) {
374 checkUnnamed3361(o.features); 397 checkUnnamed3354(o.features);
375 unittest.expect(o.inputContent, unittest.equals('foo')); 398 unittest.expect(o.inputContent, unittest.equals('foo'));
376 unittest.expect(o.inputUri, unittest.equals('foo')); 399 unittest.expect(o.inputUri, unittest.equals('foo'));
377 unittest.expect(o.locationId, unittest.equals('foo')); 400 unittest.expect(o.locationId, unittest.equals('foo'));
378 unittest.expect(o.outputUri, unittest.equals('foo')); 401 unittest.expect(o.outputUri, unittest.equals('foo'));
379 checkGoogleCloudVideointelligenceV1beta1VideoContext(o.videoContext); 402 checkGoogleCloudVideointelligenceV1beta1VideoContext(o.videoContext);
380 } 403 }
381 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; 404 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--;
382 } 405 }
383 406
384 buildUnnamed3362() { 407 buildUnnamed3355() {
385 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationRe sults>(); 408 var o = new core
409 .List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>();
386 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); 410 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults());
387 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); 411 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults());
388 return o; 412 return o;
389 } 413 }
390 414
391 checkUnnamed3362(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio nResults> o) { 415 checkUnnamed3355(
416 core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>
417 o) {
392 unittest.expect(o, unittest.hasLength(2)); 418 unittest.expect(o, unittest.hasLength(2));
393 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[0]); 419 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[0]);
394 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[1]); 420 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[1]);
395 } 421 }
396 422
397 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse = 0; 423 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse =
424 0;
398 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse() { 425 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse() {
399 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); 426 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse();
400 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; 427 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++;
401 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) { 428 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse <
402 o.annotationResults = buildUnnamed3362(); 429 3) {
430 o.annotationResults = buildUnnamed3355();
403 } 431 }
404 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; 432 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--;
405 return o; 433 return o;
406 } 434 }
407 435
408 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(api.GoogleCloudVid eointelligenceV1beta1AnnotateVideoResponse o) { 436 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(
437 api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse o) {
409 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; 438 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++;
410 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) { 439 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse <
411 checkUnnamed3362(o.annotationResults); 440 3) {
441 checkUnnamed3355(o.annotationResults);
412 } 442 }
413 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; 443 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--;
414 } 444 }
415 445
416 buildUnnamed3363() { 446 buildUnnamed3356() {
417 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>(); 447 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>();
418 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); 448 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation());
419 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); 449 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation());
420 return o; 450 return o;
421 } 451 }
422 452
423 checkUnnamed3363(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) { 453 checkUnnamed3356(
454 core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) {
424 unittest.expect(o, unittest.hasLength(2)); 455 unittest.expect(o, unittest.hasLength(2));
425 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[0]); 456 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[0]);
426 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[1]); 457 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[1]);
427 } 458 }
428 459
429 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation = 0; 460 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation = 0;
430 buildGoogleCloudVideointelligenceV1beta1LabelAnnotation() { 461 buildGoogleCloudVideointelligenceV1beta1LabelAnnotation() {
431 var o = new api.GoogleCloudVideointelligenceV1beta1LabelAnnotation(); 462 var o = new api.GoogleCloudVideointelligenceV1beta1LabelAnnotation();
432 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++; 463 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++;
433 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { 464 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) {
434 o.description = "foo"; 465 o.description = "foo";
435 o.languageCode = "foo"; 466 o.languageCode = "foo";
436 o.locations = buildUnnamed3363(); 467 o.locations = buildUnnamed3356();
437 } 468 }
438 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; 469 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--;
439 return o; 470 return o;
440 } 471 }
441 472
442 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(api.GoogleCloudVideointe lligenceV1beta1LabelAnnotation o) { 473 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(
474 api.GoogleCloudVideointelligenceV1beta1LabelAnnotation o) {
443 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++; 475 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++;
444 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { 476 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) {
445 unittest.expect(o.description, unittest.equals('foo')); 477 unittest.expect(o.description, unittest.equals('foo'));
446 unittest.expect(o.languageCode, unittest.equals('foo')); 478 unittest.expect(o.languageCode, unittest.equals('foo'));
447 checkUnnamed3363(o.locations); 479 checkUnnamed3356(o.locations);
448 } 480 }
449 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; 481 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--;
450 } 482 }
451 483
452 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation = 0; 484 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation = 0;
453 buildGoogleCloudVideointelligenceV1beta1LabelLocation() { 485 buildGoogleCloudVideointelligenceV1beta1LabelLocation() {
454 var o = new api.GoogleCloudVideointelligenceV1beta1LabelLocation(); 486 var o = new api.GoogleCloudVideointelligenceV1beta1LabelLocation();
455 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++; 487 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++;
456 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) { 488 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) {
457 o.confidence = 42.0; 489 o.confidence = 42.0;
458 o.level = "foo"; 490 o.level = "foo";
459 o.segment = buildGoogleCloudVideointelligenceV1beta1VideoSegment(); 491 o.segment = buildGoogleCloudVideointelligenceV1beta1VideoSegment();
460 } 492 }
461 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation--; 493 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation--;
462 return o; 494 return o;
463 } 495 }
464 496
465 checkGoogleCloudVideointelligenceV1beta1LabelLocation(api.GoogleCloudVideointell igenceV1beta1LabelLocation o) { 497 checkGoogleCloudVideointelligenceV1beta1LabelLocation(
498 api.GoogleCloudVideointelligenceV1beta1LabelLocation o) {
466 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++; 499 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++;
467 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) { 500 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) {
468 unittest.expect(o.confidence, unittest.equals(42.0)); 501 unittest.expect(o.confidence, unittest.equals(42.0));
469 unittest.expect(o.level, unittest.equals('foo')); 502 unittest.expect(o.level, unittest.equals('foo'));
470 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o.segment); 503 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o.segment);
471 } 504 }
472 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation--; 505 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation--;
473 } 506 }
474 507
475 core.int buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation = 0 ; 508 core.int buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation =
509 0;
476 buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation() { 510 buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation() {
477 var o = new api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(); 511 var o = new api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation();
478 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation++; 512 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation++;
479 if (buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation < 3) { 513 if (buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation < 3) {
480 o.adult = "foo"; 514 o.adult = "foo";
481 o.medical = "foo"; 515 o.medical = "foo";
482 o.racy = "foo"; 516 o.racy = "foo";
483 o.spoof = "foo"; 517 o.spoof = "foo";
484 o.timeOffset = "foo"; 518 o.timeOffset = "foo";
485 o.violent = "foo"; 519 o.violent = "foo";
486 } 520 }
487 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation--; 521 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation--;
488 return o; 522 return o;
489 } 523 }
490 524
491 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(api.GoogleCloudVide ointelligenceV1beta1SafeSearchAnnotation o) { 525 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(
526 api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation o) {
492 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation++; 527 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation++;
493 if (buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation < 3) { 528 if (buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation < 3) {
494 unittest.expect(o.adult, unittest.equals('foo')); 529 unittest.expect(o.adult, unittest.equals('foo'));
495 unittest.expect(o.medical, unittest.equals('foo')); 530 unittest.expect(o.medical, unittest.equals('foo'));
496 unittest.expect(o.racy, unittest.equals('foo')); 531 unittest.expect(o.racy, unittest.equals('foo'));
497 unittest.expect(o.spoof, unittest.equals('foo')); 532 unittest.expect(o.spoof, unittest.equals('foo'));
498 unittest.expect(o.timeOffset, unittest.equals('foo')); 533 unittest.expect(o.timeOffset, unittest.equals('foo'));
499 unittest.expect(o.violent, unittest.equals('foo')); 534 unittest.expect(o.violent, unittest.equals('foo'));
500 } 535 }
501 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation--; 536 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation--;
502 } 537 }
503 538
504 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress = 0; 539 core.int
540 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress = 0;
505 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress() { 541 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress() {
506 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(); 542 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress();
507 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; 543 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++;
508 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3 ) { 544 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress <
545 3) {
509 o.inputUri = "foo"; 546 o.inputUri = "foo";
510 o.progressPercent = 42; 547 o.progressPercent = 42;
511 o.startTime = "foo"; 548 o.startTime = "foo";
512 o.updateTime = "foo"; 549 o.updateTime = "foo";
513 } 550 }
514 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; 551 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--;
515 return o; 552 return o;
516 } 553 }
517 554
518 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(api.GoogleCloudV ideointelligenceV1beta1VideoAnnotationProgress o) { 555 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(
556 api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress o) {
519 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; 557 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++;
520 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3 ) { 558 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress <
559 3) {
521 unittest.expect(o.inputUri, unittest.equals('foo')); 560 unittest.expect(o.inputUri, unittest.equals('foo'));
522 unittest.expect(o.progressPercent, unittest.equals(42)); 561 unittest.expect(o.progressPercent, unittest.equals(42));
523 unittest.expect(o.startTime, unittest.equals('foo')); 562 unittest.expect(o.startTime, unittest.equals('foo'));
524 unittest.expect(o.updateTime, unittest.equals('foo')); 563 unittest.expect(o.updateTime, unittest.equals('foo'));
525 } 564 }
526 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; 565 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--;
527 } 566 }
528 567
529 buildUnnamed3364() { 568 buildUnnamed3357() {
530 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>( ); 569 var o =
570 new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>();
531 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); 571 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation());
532 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); 572 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation());
533 return o; 573 return o;
534 } 574 }
535 575
536 checkUnnamed3364(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotatio n> o) { 576 checkUnnamed3357(
577 core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation> o) {
537 unittest.expect(o, unittest.hasLength(2)); 578 unittest.expect(o, unittest.hasLength(2));
538 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]); 579 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]);
539 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]); 580 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]);
540 } 581 }
541 582
542 buildUnnamed3365() { 583 buildUnnamed3358() {
543 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotat ion>(); 584 var o = new core
585 .List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation>();
544 o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); 586 o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation());
545 o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); 587 o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation());
546 return o; 588 return o;
547 } 589 }
548 590
549 checkUnnamed3365(core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnno tation> o) { 591 checkUnnamed3358(
592 core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation> o) {
550 unittest.expect(o, unittest.hasLength(2)); 593 unittest.expect(o, unittest.hasLength(2));
551 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[0]); 594 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[0]);
552 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[1]); 595 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[1]);
553 } 596 }
554 597
555 buildUnnamed3366() { 598 buildUnnamed3359() {
556 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); 599 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>();
557 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); 600 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
558 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); 601 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
559 return o; 602 return o;
560 } 603 }
561 604
562 checkUnnamed3366(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { 605 checkUnnamed3359(
606 core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) {
563 unittest.expect(o, unittest.hasLength(2)); 607 unittest.expect(o, unittest.hasLength(2));
564 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); 608 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]);
565 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); 609 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]);
566 } 610 }
567 611
568 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults = 0; 612 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults =
613 0;
569 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults() { 614 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults() {
570 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults(); 615 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults();
571 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; 616 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++;
572 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) { 617 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults <
618 3) {
573 o.error = buildGoogleRpcStatus(); 619 o.error = buildGoogleRpcStatus();
574 o.inputUri = "foo"; 620 o.inputUri = "foo";
575 o.labelAnnotations = buildUnnamed3364(); 621 o.labelAnnotations = buildUnnamed3357();
576 o.safeSearchAnnotations = buildUnnamed3365(); 622 o.safeSearchAnnotations = buildUnnamed3358();
577 o.shotAnnotations = buildUnnamed3366(); 623 o.shotAnnotations = buildUnnamed3359();
578 } 624 }
579 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; 625 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--;
580 return o; 626 return o;
581 } 627 }
582 628
583 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(api.GoogleCloudVi deointelligenceV1beta1VideoAnnotationResults o) { 629 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(
630 api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults o) {
584 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; 631 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++;
585 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) { 632 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults <
633 3) {
586 checkGoogleRpcStatus(o.error); 634 checkGoogleRpcStatus(o.error);
587 unittest.expect(o.inputUri, unittest.equals('foo')); 635 unittest.expect(o.inputUri, unittest.equals('foo'));
588 checkUnnamed3364(o.labelAnnotations); 636 checkUnnamed3357(o.labelAnnotations);
589 checkUnnamed3365(o.safeSearchAnnotations); 637 checkUnnamed3358(o.safeSearchAnnotations);
590 checkUnnamed3366(o.shotAnnotations); 638 checkUnnamed3359(o.shotAnnotations);
591 } 639 }
592 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; 640 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--;
593 } 641 }
594 642
595 buildUnnamed3367() { 643 buildUnnamed3360() {
596 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); 644 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>();
597 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); 645 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
598 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); 646 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
599 return o; 647 return o;
600 } 648 }
601 649
602 checkUnnamed3367(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { 650 checkUnnamed3360(
651 core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) {
603 unittest.expect(o, unittest.hasLength(2)); 652 unittest.expect(o, unittest.hasLength(2));
604 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); 653 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]);
605 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); 654 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]);
606 } 655 }
607 656
608 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoContext = 0; 657 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoContext = 0;
609 buildGoogleCloudVideointelligenceV1beta1VideoContext() { 658 buildGoogleCloudVideointelligenceV1beta1VideoContext() {
610 var o = new api.GoogleCloudVideointelligenceV1beta1VideoContext(); 659 var o = new api.GoogleCloudVideointelligenceV1beta1VideoContext();
611 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; 660 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++;
612 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { 661 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) {
613 o.labelDetectionMode = "foo"; 662 o.labelDetectionMode = "foo";
614 o.labelDetectionModel = "foo"; 663 o.labelDetectionModel = "foo";
615 o.safeSearchDetectionModel = "foo"; 664 o.safeSearchDetectionModel = "foo";
616 o.segments = buildUnnamed3367(); 665 o.segments = buildUnnamed3360();
617 o.shotChangeDetectionModel = "foo"; 666 o.shotChangeDetectionModel = "foo";
618 o.stationaryCamera = true; 667 o.stationaryCamera = true;
619 } 668 }
620 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; 669 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--;
621 return o; 670 return o;
622 } 671 }
623 672
624 checkGoogleCloudVideointelligenceV1beta1VideoContext(api.GoogleCloudVideointelli genceV1beta1VideoContext o) { 673 checkGoogleCloudVideointelligenceV1beta1VideoContext(
674 api.GoogleCloudVideointelligenceV1beta1VideoContext o) {
625 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; 675 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++;
626 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { 676 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) {
627 unittest.expect(o.labelDetectionMode, unittest.equals('foo')); 677 unittest.expect(o.labelDetectionMode, unittest.equals('foo'));
628 unittest.expect(o.labelDetectionModel, unittest.equals('foo')); 678 unittest.expect(o.labelDetectionModel, unittest.equals('foo'));
629 unittest.expect(o.safeSearchDetectionModel, unittest.equals('foo')); 679 unittest.expect(o.safeSearchDetectionModel, unittest.equals('foo'));
630 checkUnnamed3367(o.segments); 680 checkUnnamed3360(o.segments);
631 unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo')); 681 unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo'));
632 unittest.expect(o.stationaryCamera, unittest.isTrue); 682 unittest.expect(o.stationaryCamera, unittest.isTrue);
633 } 683 }
634 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; 684 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--;
635 } 685 }
636 686
637 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment = 0; 687 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment = 0;
638 buildGoogleCloudVideointelligenceV1beta1VideoSegment() { 688 buildGoogleCloudVideointelligenceV1beta1VideoSegment() {
639 var o = new api.GoogleCloudVideointelligenceV1beta1VideoSegment(); 689 var o = new api.GoogleCloudVideointelligenceV1beta1VideoSegment();
640 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; 690 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++;
641 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { 691 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) {
642 o.endTimeOffset = "foo"; 692 o.endTimeOffset = "foo";
643 o.startTimeOffset = "foo"; 693 o.startTimeOffset = "foo";
644 } 694 }
645 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; 695 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--;
646 return o; 696 return o;
647 } 697 }
648 698
649 checkGoogleCloudVideointelligenceV1beta1VideoSegment(api.GoogleCloudVideointelli genceV1beta1VideoSegment o) { 699 checkGoogleCloudVideointelligenceV1beta1VideoSegment(
700 api.GoogleCloudVideointelligenceV1beta1VideoSegment o) {
650 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; 701 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++;
651 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { 702 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) {
652 unittest.expect(o.endTimeOffset, unittest.equals('foo')); 703 unittest.expect(o.endTimeOffset, unittest.equals('foo'));
653 unittest.expect(o.startTimeOffset, unittest.equals('foo')); 704 unittest.expect(o.startTimeOffset, unittest.equals('foo'));
654 } 705 }
655 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; 706 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--;
656 } 707 }
657 708
709 buildUnnamed3361() {
710 var o = new core
711 .List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress>();
712 o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress());
713 o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress());
714 return o;
715 }
716
717 checkUnnamed3361(
718 core.List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress>
719 o) {
720 unittest.expect(o, unittest.hasLength(2));
721 checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(o[0]);
722 checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(o[1]);
723 }
724
725 core.int buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress =
726 0;
727 buildGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress() {
728 var o = new api.GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress();
729 buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress++;
730 if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress <
731 3) {
732 o.annotationProgress = buildUnnamed3361();
733 }
734 buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress--;
735 return o;
736 }
737
738 checkGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress(
739 api.GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress o) {
740 buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress++;
741 if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress <
742 3) {
743 checkUnnamed3361(o.annotationProgress);
744 }
745 buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress--;
746 }
747
748 buildUnnamed3362() {
749 var o = new core
750 .List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults>();
751 o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults());
752 o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults());
753 return o;
754 }
755
756 checkUnnamed3362(
757 core.List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults>
758 o) {
759 unittest.expect(o, unittest.hasLength(2));
760 checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(o[0]);
761 checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(o[1]);
762 }
763
764 core.int buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse =
765 0;
766 buildGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse() {
767 var o = new api.GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse();
768 buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse++;
769 if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse <
770 3) {
771 o.annotationResults = buildUnnamed3362();
772 }
773 buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse--;
774 return o;
775 }
776
777 checkGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse(
778 api.GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse o) {
779 buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse++;
780 if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse <
781 3) {
782 checkUnnamed3362(o.annotationResults);
783 }
784 buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse--;
785 }
786
787 core.int buildCounterGoogleCloudVideointelligenceV1beta2Entity = 0;
788 buildGoogleCloudVideointelligenceV1beta2Entity() {
789 var o = new api.GoogleCloudVideointelligenceV1beta2Entity();
790 buildCounterGoogleCloudVideointelligenceV1beta2Entity++;
791 if (buildCounterGoogleCloudVideointelligenceV1beta2Entity < 3) {
792 o.description = "foo";
793 o.entityId = "foo";
794 o.languageCode = "foo";
795 }
796 buildCounterGoogleCloudVideointelligenceV1beta2Entity--;
797 return o;
798 }
799
800 checkGoogleCloudVideointelligenceV1beta2Entity(
801 api.GoogleCloudVideointelligenceV1beta2Entity o) {
802 buildCounterGoogleCloudVideointelligenceV1beta2Entity++;
803 if (buildCounterGoogleCloudVideointelligenceV1beta2Entity < 3) {
804 unittest.expect(o.description, unittest.equals('foo'));
805 unittest.expect(o.entityId, unittest.equals('foo'));
806 unittest.expect(o.languageCode, unittest.equals('foo'));
807 }
808 buildCounterGoogleCloudVideointelligenceV1beta2Entity--;
809 }
810
811 buildUnnamed3363() {
812 var o = new core
813 .List<api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame>();
814 o.add(buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame());
815 o.add(buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame());
816 return o;
817 }
818
819 checkUnnamed3363(
820 core.List<api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame> o) {
821 unittest.expect(o, unittest.hasLength(2));
822 checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(o[0]);
823 checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(o[1]);
824 }
825
826 core.int
827 buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation =
828 0;
829 buildGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation() {
830 var o =
831 new api.GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation();
832 buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation++;
833 if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation <
834 3) {
835 o.frames = buildUnnamed3363();
836 }
837 buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation--;
838 return o;
839 }
840
841 checkGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(
842 api.GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation o) {
843 buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation++;
844 if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation <
845 3) {
846 checkUnnamed3363(o.frames);
847 }
848 buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation--;
849 }
850
851 core.int buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame =
852 0;
853 buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame() {
854 var o = new api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame();
855 buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame++;
856 if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame < 3) {
857 o.pornographyLikelihood = "foo";
858 o.timeOffset = "foo";
859 }
860 buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame--;
861 return o;
862 }
863
864 checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(
865 api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame o) {
866 buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame++;
867 if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame < 3) {
868 unittest.expect(o.pornographyLikelihood, unittest.equals('foo'));
869 unittest.expect(o.timeOffset, unittest.equals('foo'));
870 }
871 buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame--;
872 }
873
874 buildUnnamed3364() {
875 var o = new core.List<api.GoogleCloudVideointelligenceV1beta2Entity>();
876 o.add(buildGoogleCloudVideointelligenceV1beta2Entity());
877 o.add(buildGoogleCloudVideointelligenceV1beta2Entity());
878 return o;
879 }
880
881 checkUnnamed3364(core.List<api.GoogleCloudVideointelligenceV1beta2Entity> o) {
882 unittest.expect(o, unittest.hasLength(2));
883 checkGoogleCloudVideointelligenceV1beta2Entity(o[0]);
884 checkGoogleCloudVideointelligenceV1beta2Entity(o[1]);
885 }
886
887 buildUnnamed3365() {
888 var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelFrame>();
889 o.add(buildGoogleCloudVideointelligenceV1beta2LabelFrame());
890 o.add(buildGoogleCloudVideointelligenceV1beta2LabelFrame());
891 return o;
892 }
893
894 checkUnnamed3365(
895 core.List<api.GoogleCloudVideointelligenceV1beta2LabelFrame> o) {
896 unittest.expect(o, unittest.hasLength(2));
897 checkGoogleCloudVideointelligenceV1beta2LabelFrame(o[0]);
898 checkGoogleCloudVideointelligenceV1beta2LabelFrame(o[1]);
899 }
900
901 buildUnnamed3366() {
902 var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelSegment>();
903 o.add(buildGoogleCloudVideointelligenceV1beta2LabelSegment());
904 o.add(buildGoogleCloudVideointelligenceV1beta2LabelSegment());
905 return o;
906 }
907
908 checkUnnamed3366(
909 core.List<api.GoogleCloudVideointelligenceV1beta2LabelSegment> o) {
910 unittest.expect(o, unittest.hasLength(2));
911 checkGoogleCloudVideointelligenceV1beta2LabelSegment(o[0]);
912 checkGoogleCloudVideointelligenceV1beta2LabelSegment(o[1]);
913 }
914
915 core.int buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation = 0;
916 buildGoogleCloudVideointelligenceV1beta2LabelAnnotation() {
917 var o = new api.GoogleCloudVideointelligenceV1beta2LabelAnnotation();
918 buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation++;
919 if (buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation < 3) {
920 o.categoryEntities = buildUnnamed3364();
921 o.entity = buildGoogleCloudVideointelligenceV1beta2Entity();
922 o.frames = buildUnnamed3365();
923 o.segments = buildUnnamed3366();
924 }
925 buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation--;
926 return o;
927 }
928
929 checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(
930 api.GoogleCloudVideointelligenceV1beta2LabelAnnotation o) {
931 buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation++;
932 if (buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation < 3) {
933 checkUnnamed3364(o.categoryEntities);
934 checkGoogleCloudVideointelligenceV1beta2Entity(o.entity);
935 checkUnnamed3365(o.frames);
936 checkUnnamed3366(o.segments);
937 }
938 buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation--;
939 }
940
941 core.int buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame = 0;
942 buildGoogleCloudVideointelligenceV1beta2LabelFrame() {
943 var o = new api.GoogleCloudVideointelligenceV1beta2LabelFrame();
944 buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame++;
945 if (buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame < 3) {
946 o.confidence = 42.0;
947 o.timeOffset = "foo";
948 }
949 buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame--;
950 return o;
951 }
952
953 checkGoogleCloudVideointelligenceV1beta2LabelFrame(
954 api.GoogleCloudVideointelligenceV1beta2LabelFrame o) {
955 buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame++;
956 if (buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame < 3) {
957 unittest.expect(o.confidence, unittest.equals(42.0));
958 unittest.expect(o.timeOffset, unittest.equals('foo'));
959 }
960 buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame--;
961 }
962
963 core.int buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment = 0;
964 buildGoogleCloudVideointelligenceV1beta2LabelSegment() {
965 var o = new api.GoogleCloudVideointelligenceV1beta2LabelSegment();
966 buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment++;
967 if (buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment < 3) {
968 o.confidence = 42.0;
969 o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment();
970 }
971 buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment--;
972 return o;
973 }
974
975 checkGoogleCloudVideointelligenceV1beta2LabelSegment(
976 api.GoogleCloudVideointelligenceV1beta2LabelSegment o) {
977 buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment++;
978 if (buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment < 3) {
979 unittest.expect(o.confidence, unittest.equals(42.0));
980 checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment);
981 }
982 buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment--;
983 }
984
985 core.int
986 buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress = 0;
987 buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress() {
988 var o = new api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress();
989 buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress++;
990 if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress <
991 3) {
992 o.inputUri = "foo";
993 o.progressPercent = 42;
994 o.startTime = "foo";
995 o.updateTime = "foo";
996 }
997 buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress--;
998 return o;
999 }
1000
1001 checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(
1002 api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress o) {
1003 buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress++;
1004 if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress <
1005 3) {
1006 unittest.expect(o.inputUri, unittest.equals('foo'));
1007 unittest.expect(o.progressPercent, unittest.equals(42));
1008 unittest.expect(o.startTime, unittest.equals('foo'));
1009 unittest.expect(o.updateTime, unittest.equals('foo'));
1010 }
1011 buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress--;
1012 }
1013
1014 buildUnnamed3367() {
1015 var o =
1016 new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>();
1017 o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
1018 o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
1019 return o;
1020 }
1021
1022 checkUnnamed3367(
1023 core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) {
1024 unittest.expect(o, unittest.hasLength(2));
1025 checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]);
1026 checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]);
1027 }
1028
658 buildUnnamed3368() { 1029 buildUnnamed3368() {
1030 var o =
1031 new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>();
1032 o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
1033 o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
1034 return o;
1035 }
1036
1037 checkUnnamed3368(
1038 core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) {
1039 unittest.expect(o, unittest.hasLength(2));
1040 checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]);
1041 checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]);
1042 }
1043
1044 buildUnnamed3369() {
1045 var o = new core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment>();
1046 o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment());
1047 o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment());
1048 return o;
1049 }
1050
1051 checkUnnamed3369(
1052 core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment> o) {
1053 unittest.expect(o, unittest.hasLength(2));
1054 checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[0]);
1055 checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[1]);
1056 }
1057
1058 buildUnnamed3370() {
1059 var o =
1060 new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>();
1061 o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
1062 o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
1063 return o;
1064 }
1065
1066 checkUnnamed3370(
1067 core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) {
1068 unittest.expect(o, unittest.hasLength(2));
1069 checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]);
1070 checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]);
1071 }
1072
1073 core.int buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults =
1074 0;
1075 buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults() {
1076 var o = new api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults();
1077 buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults++;
1078 if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults <
1079 3) {
1080 o.error = buildGoogleRpcStatus();
1081 o.explicitAnnotation =
1082 buildGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation();
1083 o.frameLabelAnnotations = buildUnnamed3367();
1084 o.inputUri = "foo";
1085 o.segmentLabelAnnotations = buildUnnamed3368();
1086 o.shotAnnotations = buildUnnamed3369();
1087 o.shotLabelAnnotations = buildUnnamed3370();
1088 }
1089 buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults--;
1090 return o;
1091 }
1092
1093 checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(
1094 api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults o) {
1095 buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults++;
1096 if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults <
1097 3) {
1098 checkGoogleRpcStatus(o.error);
1099 checkGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(
1100 o.explicitAnnotation);
1101 checkUnnamed3367(o.frameLabelAnnotations);
1102 unittest.expect(o.inputUri, unittest.equals('foo'));
1103 checkUnnamed3368(o.segmentLabelAnnotations);
1104 checkUnnamed3369(o.shotAnnotations);
1105 checkUnnamed3370(o.shotLabelAnnotations);
1106 }
1107 buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults--;
1108 }
1109
1110 core.int buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment = 0;
1111 buildGoogleCloudVideointelligenceV1beta2VideoSegment() {
1112 var o = new api.GoogleCloudVideointelligenceV1beta2VideoSegment();
1113 buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment++;
1114 if (buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment < 3) {
1115 o.endTimeOffset = "foo";
1116 o.startTimeOffset = "foo";
1117 }
1118 buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment--;
1119 return o;
1120 }
1121
1122 checkGoogleCloudVideointelligenceV1beta2VideoSegment(
1123 api.GoogleCloudVideointelligenceV1beta2VideoSegment o) {
1124 buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment++;
1125 if (buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment < 3) {
1126 unittest.expect(o.endTimeOffset, unittest.equals('foo'));
1127 unittest.expect(o.startTimeOffset, unittest.equals('foo'));
1128 }
1129 buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment--;
1130 }
1131
1132 buildUnnamed3371() {
659 var o = new core.Map<core.String, core.Object>(); 1133 var o = new core.Map<core.String, core.Object>();
660 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1134 o["x"] = {
661 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1135 'list': [1, 2, 3],
662 return o; 1136 'bool': true,
663 } 1137 'string': 'foo'
664 1138 };
665 checkUnnamed3368(core.Map<core.String, core.Object> o) { 1139 o["y"] = {
666 unittest.expect(o, unittest.hasLength(2)); 1140 'list': [1, 2, 3],
667 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); 1141 'bool': true,
668 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); 1142 'string': 'foo'
669 } 1143 };
670 1144 return o;
671 buildUnnamed3369() { 1145 }
1146
1147 checkUnnamed3371(core.Map<core.String, core.Object> o) {
1148 unittest.expect(o, unittest.hasLength(2));
1149 var casted1 = (o["x"]) as core.Map;
1150 unittest.expect(casted1, unittest.hasLength(3));
1151 unittest.expect(casted1["list"], unittest.equals([1, 2, 3]));
1152 unittest.expect(casted1["bool"], unittest.equals(true));
1153 unittest.expect(casted1["string"], unittest.equals('foo'));
1154 var casted2 = (o["y"]) as core.Map;
1155 unittest.expect(casted2, unittest.hasLength(3));
1156 unittest.expect(casted2["list"], unittest.equals([1, 2, 3]));
1157 unittest.expect(casted2["bool"], unittest.equals(true));
1158 unittest.expect(casted2["string"], unittest.equals('foo'));
1159 }
1160
1161 buildUnnamed3372() {
672 var o = new core.Map<core.String, core.Object>(); 1162 var o = new core.Map<core.String, core.Object>();
673 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1163 o["x"] = {
674 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1164 'list': [1, 2, 3],
675 return o; 1165 'bool': true,
676 } 1166 'string': 'foo'
677 1167 };
678 checkUnnamed3369(core.Map<core.String, core.Object> o) { 1168 o["y"] = {
679 unittest.expect(o, unittest.hasLength(2)); 1169 'list': [1, 2, 3],
680 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); 1170 'bool': true,
681 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); 1171 'string': 'foo'
1172 };
1173 return o;
1174 }
1175
1176 checkUnnamed3372(core.Map<core.String, core.Object> o) {
1177 unittest.expect(o, unittest.hasLength(2));
1178 var casted3 = (o["x"]) as core.Map;
1179 unittest.expect(casted3, unittest.hasLength(3));
1180 unittest.expect(casted3["list"], unittest.equals([1, 2, 3]));
1181 unittest.expect(casted3["bool"], unittest.equals(true));
1182 unittest.expect(casted3["string"], unittest.equals('foo'));
1183 var casted4 = (o["y"]) as core.Map;
1184 unittest.expect(casted4, unittest.hasLength(3));
1185 unittest.expect(casted4["list"], unittest.equals([1, 2, 3]));
1186 unittest.expect(casted4["bool"], unittest.equals(true));
1187 unittest.expect(casted4["string"], unittest.equals('foo'));
682 } 1188 }
683 1189
684 core.int buildCounterGoogleLongrunningOperation = 0; 1190 core.int buildCounterGoogleLongrunningOperation = 0;
685 buildGoogleLongrunningOperation() { 1191 buildGoogleLongrunningOperation() {
686 var o = new api.GoogleLongrunningOperation(); 1192 var o = new api.GoogleLongrunningOperation();
687 buildCounterGoogleLongrunningOperation++; 1193 buildCounterGoogleLongrunningOperation++;
688 if (buildCounterGoogleLongrunningOperation < 3) { 1194 if (buildCounterGoogleLongrunningOperation < 3) {
689 o.done = true; 1195 o.done = true;
690 o.error = buildGoogleRpcStatus(); 1196 o.error = buildGoogleRpcStatus();
691 o.metadata = buildUnnamed3368(); 1197 o.metadata = buildUnnamed3371();
692 o.name = "foo"; 1198 o.name = "foo";
693 o.response = buildUnnamed3369(); 1199 o.response = buildUnnamed3372();
694 } 1200 }
695 buildCounterGoogleLongrunningOperation--; 1201 buildCounterGoogleLongrunningOperation--;
696 return o; 1202 return o;
697 } 1203 }
698 1204
699 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { 1205 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) {
700 buildCounterGoogleLongrunningOperation++; 1206 buildCounterGoogleLongrunningOperation++;
701 if (buildCounterGoogleLongrunningOperation < 3) { 1207 if (buildCounterGoogleLongrunningOperation < 3) {
702 unittest.expect(o.done, unittest.isTrue); 1208 unittest.expect(o.done, unittest.isTrue);
703 checkGoogleRpcStatus(o.error); 1209 checkGoogleRpcStatus(o.error);
704 checkUnnamed3368(o.metadata); 1210 checkUnnamed3371(o.metadata);
705 unittest.expect(o.name, unittest.equals('foo')); 1211 unittest.expect(o.name, unittest.equals('foo'));
706 checkUnnamed3369(o.response); 1212 checkUnnamed3372(o.response);
707 } 1213 }
708 buildCounterGoogleLongrunningOperation--; 1214 buildCounterGoogleLongrunningOperation--;
709 } 1215 }
710 1216
711 buildUnnamed3370() { 1217 buildUnnamed3373() {
712 var o = new core.Map<core.String, core.Object>(); 1218 var o = new core.Map<core.String, core.Object>();
713 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1219 o["x"] = {
714 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1220 'list': [1, 2, 3],
1221 'bool': true,
1222 'string': 'foo'
1223 };
1224 o["y"] = {
1225 'list': [1, 2, 3],
1226 'bool': true,
1227 'string': 'foo'
1228 };
715 return o; 1229 return o;
716 } 1230 }
717 1231
718 checkUnnamed3370(core.Map<core.String, core.Object> o) { 1232 checkUnnamed3373(core.Map<core.String, core.Object> o) {
719 unittest.expect(o, unittest.hasLength(2)); 1233 unittest.expect(o, unittest.hasLength(2));
720 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); 1234 var casted5 = (o["x"]) as core.Map;
721 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); 1235 unittest.expect(casted5, unittest.hasLength(3));
1236 unittest.expect(casted5["list"], unittest.equals([1, 2, 3]));
1237 unittest.expect(casted5["bool"], unittest.equals(true));
1238 unittest.expect(casted5["string"], unittest.equals('foo'));
1239 var casted6 = (o["y"]) as core.Map;
1240 unittest.expect(casted6, unittest.hasLength(3));
1241 unittest.expect(casted6["list"], unittest.equals([1, 2, 3]));
1242 unittest.expect(casted6["bool"], unittest.equals(true));
1243 unittest.expect(casted6["string"], unittest.equals('foo'));
722 } 1244 }
723 1245
724 buildUnnamed3371() { 1246 buildUnnamed3374() {
725 var o = new core.List<core.Map<core.String, core.Object>>(); 1247 var o = new core.List<core.Map<core.String, core.Object>>();
726 o.add(buildUnnamed3370()); 1248 o.add(buildUnnamed3373());
727 o.add(buildUnnamed3370()); 1249 o.add(buildUnnamed3373());
728 return o; 1250 return o;
729 } 1251 }
730 1252
731 checkUnnamed3371(core.List<core.Map<core.String, core.Object>> o) { 1253 checkUnnamed3374(core.List<core.Map<core.String, core.Object>> o) {
732 unittest.expect(o, unittest.hasLength(2)); 1254 unittest.expect(o, unittest.hasLength(2));
733 checkUnnamed3370(o[0]); 1255 checkUnnamed3373(o[0]);
734 checkUnnamed3370(o[1]); 1256 checkUnnamed3373(o[1]);
735 } 1257 }
736 1258
737 core.int buildCounterGoogleRpcStatus = 0; 1259 core.int buildCounterGoogleRpcStatus = 0;
738 buildGoogleRpcStatus() { 1260 buildGoogleRpcStatus() {
739 var o = new api.GoogleRpcStatus(); 1261 var o = new api.GoogleRpcStatus();
740 buildCounterGoogleRpcStatus++; 1262 buildCounterGoogleRpcStatus++;
741 if (buildCounterGoogleRpcStatus < 3) { 1263 if (buildCounterGoogleRpcStatus < 3) {
742 o.code = 42; 1264 o.code = 42;
743 o.details = buildUnnamed3371(); 1265 o.details = buildUnnamed3374();
744 o.message = "foo"; 1266 o.message = "foo";
745 } 1267 }
746 buildCounterGoogleRpcStatus--; 1268 buildCounterGoogleRpcStatus--;
747 return o; 1269 return o;
748 } 1270 }
749 1271
750 checkGoogleRpcStatus(api.GoogleRpcStatus o) { 1272 checkGoogleRpcStatus(api.GoogleRpcStatus o) {
751 buildCounterGoogleRpcStatus++; 1273 buildCounterGoogleRpcStatus++;
752 if (buildCounterGoogleRpcStatus < 3) { 1274 if (buildCounterGoogleRpcStatus < 3) {
753 unittest.expect(o.code, unittest.equals(42)); 1275 unittest.expect(o.code, unittest.equals(42));
754 checkUnnamed3371(o.details); 1276 checkUnnamed3374(o.details);
755 unittest.expect(o.message, unittest.equals('foo')); 1277 unittest.expect(o.message, unittest.equals('foo'));
756 } 1278 }
757 buildCounterGoogleRpcStatus--; 1279 buildCounterGoogleRpcStatus--;
758 } 1280 }
759 1281
760
761 main() { 1282 main() {
762 unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress ", () { 1283 unittest.group(
1284 "obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress", () {
763 unittest.test("to-json--from-json", () { 1285 unittest.test("to-json--from-json", () {
764 var o = buildGoogleCloudVideointelligenceV1AnnotateVideoProgress(); 1286 var o = buildGoogleCloudVideointelligenceV1AnnotateVideoProgress();
765 var od = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress.fromJ son(o.toJson()); 1287 var od =
1288 new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress.fromJson(
1289 o.toJson());
766 checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(od); 1290 checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(od);
767 }); 1291 });
768 }); 1292 });
769 1293
770 1294 unittest.group(
771 unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoResponse ", () { 1295 "obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoResponse", () {
772 unittest.test("to-json--from-json", () { 1296 unittest.test("to-json--from-json", () {
773 var o = buildGoogleCloudVideointelligenceV1AnnotateVideoResponse(); 1297 var o = buildGoogleCloudVideointelligenceV1AnnotateVideoResponse();
774 var od = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse.fromJ son(o.toJson()); 1298 var od =
1299 new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse.fromJson(
1300 o.toJson());
775 checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(od); 1301 checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(od);
776 }); 1302 });
777 }); 1303 });
778 1304
779 1305 unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelAnnotation",
780 unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelAnnotation", () { 1306 () {
781 unittest.test("to-json--from-json", () { 1307 unittest.test("to-json--from-json", () {
782 var o = buildGoogleCloudVideointelligenceV1LabelAnnotation(); 1308 var o = buildGoogleCloudVideointelligenceV1LabelAnnotation();
783 var od = new api.GoogleCloudVideointelligenceV1LabelAnnotation.fromJson(o. toJson()); 1309 var od = new api.GoogleCloudVideointelligenceV1LabelAnnotation.fromJson(
1310 o.toJson());
784 checkGoogleCloudVideointelligenceV1LabelAnnotation(od); 1311 checkGoogleCloudVideointelligenceV1LabelAnnotation(od);
785 }); 1312 });
786 }); 1313 });
787 1314
788
789 unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelLocation", () { 1315 unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelLocation", () {
790 unittest.test("to-json--from-json", () { 1316 unittest.test("to-json--from-json", () {
791 var o = buildGoogleCloudVideointelligenceV1LabelLocation(); 1317 var o = buildGoogleCloudVideointelligenceV1LabelLocation();
792 var od = new api.GoogleCloudVideointelligenceV1LabelLocation.fromJson(o.to Json()); 1318 var od = new api.GoogleCloudVideointelligenceV1LabelLocation.fromJson(
1319 o.toJson());
793 checkGoogleCloudVideointelligenceV1LabelLocation(od); 1320 checkGoogleCloudVideointelligenceV1LabelLocation(od);
794 }); 1321 });
795 }); 1322 });
796 1323
797 1324 unittest.group(
798 unittest.group("obj-schema-GoogleCloudVideointelligenceV1SafeSearchAnnotation" , () { 1325 "obj-schema-GoogleCloudVideointelligenceV1SafeSearchAnnotation", () {
799 unittest.test("to-json--from-json", () { 1326 unittest.test("to-json--from-json", () {
800 var o = buildGoogleCloudVideointelligenceV1SafeSearchAnnotation(); 1327 var o = buildGoogleCloudVideointelligenceV1SafeSearchAnnotation();
801 var od = new api.GoogleCloudVideointelligenceV1SafeSearchAnnotation.fromJs on(o.toJson()); 1328 var od =
1329 new api.GoogleCloudVideointelligenceV1SafeSearchAnnotation.fromJson(
1330 o.toJson());
802 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(od); 1331 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(od);
803 }); 1332 });
804 }); 1333 });
805 1334
806 1335 unittest.group(
807 unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationProgre ss", () { 1336 "obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationProgress", () {
808 unittest.test("to-json--from-json", () { 1337 unittest.test("to-json--from-json", () {
809 var o = buildGoogleCloudVideointelligenceV1VideoAnnotationProgress(); 1338 var o = buildGoogleCloudVideointelligenceV1VideoAnnotationProgress();
810 var od = new api.GoogleCloudVideointelligenceV1VideoAnnotationProgress.fro mJson(o.toJson()); 1339 var od = new api
1340 .GoogleCloudVideointelligenceV1VideoAnnotationProgress.fromJson(
1341 o.toJson());
811 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(od); 1342 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(od);
812 }); 1343 });
813 }); 1344 });
814 1345
815 1346 unittest.group(
816 unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationResult s", () { 1347 "obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationResults", () {
817 unittest.test("to-json--from-json", () { 1348 unittest.test("to-json--from-json", () {
818 var o = buildGoogleCloudVideointelligenceV1VideoAnnotationResults(); 1349 var o = buildGoogleCloudVideointelligenceV1VideoAnnotationResults();
819 var od = new api.GoogleCloudVideointelligenceV1VideoAnnotationResults.from Json(o.toJson()); 1350 var od =
1351 new api.GoogleCloudVideointelligenceV1VideoAnnotationResults.fromJson(
1352 o.toJson());
820 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(od); 1353 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(od);
821 }); 1354 });
822 }); 1355 });
823 1356
824
825 unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoSegment", () { 1357 unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoSegment", () {
826 unittest.test("to-json--from-json", () { 1358 unittest.test("to-json--from-json", () {
827 var o = buildGoogleCloudVideointelligenceV1VideoSegment(); 1359 var o = buildGoogleCloudVideointelligenceV1VideoSegment();
828 var od = new api.GoogleCloudVideointelligenceV1VideoSegment.fromJson(o.toJ son()); 1360 var od = new api.GoogleCloudVideointelligenceV1VideoSegment.fromJson(
1361 o.toJson());
829 checkGoogleCloudVideointelligenceV1VideoSegment(od); 1362 checkGoogleCloudVideointelligenceV1VideoSegment(od);
830 }); 1363 });
831 }); 1364 });
832 1365
833 1366 unittest.group(
834 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoPro gress", () { 1367 "obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress",
1368 () {
835 unittest.test("to-json--from-json", () { 1369 unittest.test("to-json--from-json", () {
836 var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); 1370 var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress();
837 var od = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress. fromJson(o.toJson()); 1371 var od = new api
1372 .GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress.fromJson (
1373 o.toJson());
838 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(od); 1374 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(od);
839 }); 1375 });
840 }); 1376 });
841 1377
842 1378 unittest.group(
843 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoReq uest", () { 1379 "obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest", () {
844 unittest.test("to-json--from-json", () { 1380 unittest.test("to-json--from-json", () {
845 var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); 1381 var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest();
846 var od = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest.f romJson(o.toJson()); 1382 var od = new api
1383 .GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest.fromJson(
1384 o.toJson());
847 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(od); 1385 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(od);
848 }); 1386 });
849 }); 1387 });
850 1388
851 1389 unittest.group(
852 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoRes ponse", () { 1390 "obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse",
1391 () {
853 unittest.test("to-json--from-json", () { 1392 unittest.test("to-json--from-json", () {
854 var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); 1393 var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse();
855 var od = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse. fromJson(o.toJson()); 1394 var od = new api
1395 .GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse.fromJson (
1396 o.toJson());
856 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(od); 1397 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(od);
857 }); 1398 });
858 }); 1399 });
859 1400
860 1401 unittest.group(
861 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1LabelAnnotation" , () { 1402 "obj-schema-GoogleCloudVideointelligenceV1beta1LabelAnnotation", () {
862 unittest.test("to-json--from-json", () { 1403 unittest.test("to-json--from-json", () {
863 var o = buildGoogleCloudVideointelligenceV1beta1LabelAnnotation(); 1404 var o = buildGoogleCloudVideointelligenceV1beta1LabelAnnotation();
864 var od = new api.GoogleCloudVideointelligenceV1beta1LabelAnnotation.fromJs on(o.toJson()); 1405 var od =
1406 new api.GoogleCloudVideointelligenceV1beta1LabelAnnotation.fromJson(
1407 o.toJson());
865 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(od); 1408 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(od);
866 }); 1409 });
867 }); 1410 });
868 1411
869 1412 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1LabelLocation",
870 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1LabelLocation", () { 1413 () {
871 unittest.test("to-json--from-json", () { 1414 unittest.test("to-json--from-json", () {
872 var o = buildGoogleCloudVideointelligenceV1beta1LabelLocation(); 1415 var o = buildGoogleCloudVideointelligenceV1beta1LabelLocation();
873 var od = new api.GoogleCloudVideointelligenceV1beta1LabelLocation.fromJson (o.toJson()); 1416 var od =
1417 new api.GoogleCloudVideointelligenceV1beta1LabelLocation.fromJson(
1418 o.toJson());
874 checkGoogleCloudVideointelligenceV1beta1LabelLocation(od); 1419 checkGoogleCloudVideointelligenceV1beta1LabelLocation(od);
875 }); 1420 });
876 }); 1421 });
877 1422
878 1423 unittest.group(
879 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1SafeSearchAnnota tion", () { 1424 "obj-schema-GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation", () {
880 unittest.test("to-json--from-json", () { 1425 unittest.test("to-json--from-json", () {
881 var o = buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(); 1426 var o = buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation();
882 var od = new api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.f romJson(o.toJson()); 1427 var od = new api
1428 .GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.fromJson(
1429 o.toJson());
883 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(od); 1430 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(od);
884 }); 1431 });
885 }); 1432 });
886 1433
887 1434 unittest.group(
888 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationP rogress", () { 1435 "obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress",
1436 () {
889 unittest.test("to-json--from-json", () { 1437 unittest.test("to-json--from-json", () {
890 var o = buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(); 1438 var o = buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress();
891 var od = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgres s.fromJson(o.toJson()); 1439 var od = new api
1440 .GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress.fromJs on(
1441 o.toJson());
892 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(od); 1442 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(od);
893 }); 1443 });
894 }); 1444 });
895 1445
896 1446 unittest.group(
897 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationR esults", () { 1447 "obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationResults",
1448 () {
898 unittest.test("to-json--from-json", () { 1449 unittest.test("to-json--from-json", () {
899 var o = buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(); 1450 var o = buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults();
900 var od = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults .fromJson(o.toJson()); 1451 var od = new api
1452 .GoogleCloudVideointelligenceV1beta1VideoAnnotationResults.fromJso n(
1453 o.toJson());
901 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(od); 1454 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(od);
902 }); 1455 });
903 }); 1456 });
904 1457
905 1458 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoContext",
906 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoContext", ( ) { 1459 () {
907 unittest.test("to-json--from-json", () { 1460 unittest.test("to-json--from-json", () {
908 var o = buildGoogleCloudVideointelligenceV1beta1VideoContext(); 1461 var o = buildGoogleCloudVideointelligenceV1beta1VideoContext();
909 var od = new api.GoogleCloudVideointelligenceV1beta1VideoContext.fromJson( o.toJson()); 1462 var od = new api.GoogleCloudVideointelligenceV1beta1VideoContext.fromJson(
1463 o.toJson());
910 checkGoogleCloudVideointelligenceV1beta1VideoContext(od); 1464 checkGoogleCloudVideointelligenceV1beta1VideoContext(od);
911 }); 1465 });
912 }); 1466 });
913 1467
914 1468 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoSegment",
915 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoSegment", ( ) { 1469 () {
916 unittest.test("to-json--from-json", () { 1470 unittest.test("to-json--from-json", () {
917 var o = buildGoogleCloudVideointelligenceV1beta1VideoSegment(); 1471 var o = buildGoogleCloudVideointelligenceV1beta1VideoSegment();
918 var od = new api.GoogleCloudVideointelligenceV1beta1VideoSegment.fromJson( o.toJson()); 1472 var od = new api.GoogleCloudVideointelligenceV1beta1VideoSegment.fromJson(
1473 o.toJson());
919 checkGoogleCloudVideointelligenceV1beta1VideoSegment(od); 1474 checkGoogleCloudVideointelligenceV1beta1VideoSegment(od);
920 }); 1475 });
921 }); 1476 });
922 1477
1478 unittest.group(
1479 "obj-schema-GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress",
1480 () {
1481 unittest.test("to-json--from-json", () {
1482 var o = buildGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress();
1483 var od = new api
1484 .GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress.fromJson (
1485 o.toJson());
1486 checkGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress(od);
1487 });
1488 });
1489
1490 unittest.group(
1491 "obj-schema-GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse",
1492 () {
1493 unittest.test("to-json--from-json", () {
1494 var o = buildGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse();
1495 var od = new api
1496 .GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse.fromJson (
1497 o.toJson());
1498 checkGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse(od);
1499 });
1500 });
1501
1502 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2Entity", () {
1503 unittest.test("to-json--from-json", () {
1504 var o = buildGoogleCloudVideointelligenceV1beta2Entity();
1505 var od = new api.GoogleCloudVideointelligenceV1beta2Entity.fromJson(
1506 o.toJson());
1507 checkGoogleCloudVideointelligenceV1beta2Entity(od);
1508 });
1509 });
1510
1511 unittest.group(
1512 "obj-schema-GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation",
1513 () {
1514 unittest.test("to-json--from-json", () {
1515 var o =
1516 buildGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation();
1517 var od = new api
1518 .GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation.from Json(
1519 o.toJson());
1520 checkGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(od);
1521 });
1522 });
1523
1524 unittest.group(
1525 "obj-schema-GoogleCloudVideointelligenceV1beta2ExplicitContentFrame", () {
1526 unittest.test("to-json--from-json", () {
1527 var o = buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame();
1528 var od = new api
1529 .GoogleCloudVideointelligenceV1beta2ExplicitContentFrame.fromJson(
1530 o.toJson());
1531 checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(od);
1532 });
1533 });
1534
1535 unittest.group(
1536 "obj-schema-GoogleCloudVideointelligenceV1beta2LabelAnnotation", () {
1537 unittest.test("to-json--from-json", () {
1538 var o = buildGoogleCloudVideointelligenceV1beta2LabelAnnotation();
1539 var od =
1540 new api.GoogleCloudVideointelligenceV1beta2LabelAnnotation.fromJson(
1541 o.toJson());
1542 checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(od);
1543 });
1544 });
1545
1546 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2LabelFrame",
1547 () {
1548 unittest.test("to-json--from-json", () {
1549 var o = buildGoogleCloudVideointelligenceV1beta2LabelFrame();
1550 var od = new api.GoogleCloudVideointelligenceV1beta2LabelFrame.fromJson(
1551 o.toJson());
1552 checkGoogleCloudVideointelligenceV1beta2LabelFrame(od);
1553 });
1554 });
1555
1556 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2LabelSegment",
1557 () {
1558 unittest.test("to-json--from-json", () {
1559 var o = buildGoogleCloudVideointelligenceV1beta2LabelSegment();
1560 var od = new api.GoogleCloudVideointelligenceV1beta2LabelSegment.fromJson(
1561 o.toJson());
1562 checkGoogleCloudVideointelligenceV1beta2LabelSegment(od);
1563 });
1564 });
1565
1566 unittest.group(
1567 "obj-schema-GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress",
1568 () {
1569 unittest.test("to-json--from-json", () {
1570 var o = buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress();
1571 var od = new api
1572 .GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress.fromJs on(
1573 o.toJson());
1574 checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(od);
1575 });
1576 });
1577
1578 unittest.group(
1579 "obj-schema-GoogleCloudVideointelligenceV1beta2VideoAnnotationResults",
1580 () {
1581 unittest.test("to-json--from-json", () {
1582 var o = buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults();
1583 var od = new api
1584 .GoogleCloudVideointelligenceV1beta2VideoAnnotationResults.fromJso n(
1585 o.toJson());
1586 checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(od);
1587 });
1588 });
1589
1590 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2VideoSegment",
1591 () {
1592 unittest.test("to-json--from-json", () {
1593 var o = buildGoogleCloudVideointelligenceV1beta2VideoSegment();
1594 var od = new api.GoogleCloudVideointelligenceV1beta2VideoSegment.fromJson(
1595 o.toJson());
1596 checkGoogleCloudVideointelligenceV1beta2VideoSegment(od);
1597 });
1598 });
923 1599
924 unittest.group("obj-schema-GoogleLongrunningOperation", () { 1600 unittest.group("obj-schema-GoogleLongrunningOperation", () {
925 unittest.test("to-json--from-json", () { 1601 unittest.test("to-json--from-json", () {
926 var o = buildGoogleLongrunningOperation(); 1602 var o = buildGoogleLongrunningOperation();
927 var od = new api.GoogleLongrunningOperation.fromJson(o.toJson()); 1603 var od = new api.GoogleLongrunningOperation.fromJson(o.toJson());
928 checkGoogleLongrunningOperation(od); 1604 checkGoogleLongrunningOperation(od);
929 }); 1605 });
930 }); 1606 });
931 1607
932
933 unittest.group("obj-schema-GoogleRpcStatus", () { 1608 unittest.group("obj-schema-GoogleRpcStatus", () {
934 unittest.test("to-json--from-json", () { 1609 unittest.test("to-json--from-json", () {
935 var o = buildGoogleRpcStatus(); 1610 var o = buildGoogleRpcStatus();
936 var od = new api.GoogleRpcStatus.fromJson(o.toJson()); 1611 var od = new api.GoogleRpcStatus.fromJson(o.toJson());
937 checkGoogleRpcStatus(od); 1612 checkGoogleRpcStatus(od);
938 }); 1613 });
939 }); 1614 });
940 1615
941
942 unittest.group("resource-VideosResourceApi", () { 1616 unittest.group("resource-VideosResourceApi", () {
943 unittest.test("method--annotate", () { 1617 unittest.test("method--annotate", () {
944
945 var mock = new HttpServerMock(); 1618 var mock = new HttpServerMock();
946 api.VideosResourceApi res = new api.VideointelligenceApi(mock).videos; 1619 api.VideosResourceApi res = new api.VideointelligenceApi(mock).videos;
947 var arg_request = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoReq uest(); 1620 var arg_request =
1621 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest();
948 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1622 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
949 var obj = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoReques t.fromJson(json); 1623 var obj = new api
1624 .GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest.fromJso n(
1625 json);
950 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(obj); 1626 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(obj);
951 1627
952 var path = (req.url).path; 1628 var path = (req.url).path;
953 var pathOffset = 0; 1629 var pathOffset = 0;
954 var index; 1630 var index;
955 var subPart; 1631 var subPart;
956 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1632 unittest.expect(
1633 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
957 pathOffset += 1; 1634 pathOffset += 1;
958 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq uals("v1beta1/videos:annotate")); 1635 unittest.expect(path.substring(pathOffset, pathOffset + 23),
1636 unittest.equals("v1beta1/videos:annotate"));
959 pathOffset += 23; 1637 pathOffset += 23;
960 1638
961 var query = (req.url).query; 1639 var query = (req.url).query;
962 var queryOffset = 0; 1640 var queryOffset = 0;
963 var queryMap = {}; 1641 var queryMap = {};
964 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1642 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
965 parseBool(n) { 1643 parseBool(n) {
966 if (n == "true") return true; 1644 if (n == "true") return true;
967 if (n == "false") return false; 1645 if (n == "false") return false;
968 if (n == null) return null; 1646 if (n == null) return null;
969 throw new core.ArgumentError("Invalid boolean: $n"); 1647 throw new core.ArgumentError("Invalid boolean: $n");
970 } 1648 }
1649
971 if (query.length > 0) { 1650 if (query.length > 0) {
972 for (var part in query.split("&")) { 1651 for (var part in query.split("&")) {
973 var keyvalue = part.split("="); 1652 var keyvalue = part.split("=");
974 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1653 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
1654 core.Uri.decodeQueryComponent(keyvalue[1]));
975 } 1655 }
976 } 1656 }
977 1657
978
979 var h = { 1658 var h = {
980 "content-type" : "application/json; charset=utf-8", 1659 "content-type": "application/json; charset=utf-8",
981 }; 1660 };
982 var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); 1661 var resp = convert.JSON.encode(buildGoogleLongrunningOperation());
983 return new async.Future.value(stringResponse(200, h, resp)); 1662 return new async.Future.value(stringResponse(200, h, resp));
984 }), true); 1663 }), true);
985 res.annotate(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunni ngOperation response) { 1664 res.annotate(arg_request).then(
1665 unittest.expectAsync1(((api.GoogleLongrunningOperation response) {
986 checkGoogleLongrunningOperation(response); 1666 checkGoogleLongrunningOperation(response);
987 }))); 1667 })));
988 }); 1668 });
989
990 }); 1669 });
991
992
993 } 1670 }
994
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/taskqueue/v1beta2_test.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698