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

Side by Side Diff: generated/googleapis_beta/test/dlp/v2beta1_test.dart

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 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
OLDNEW
1 library googleapis_beta.dlp.v2beta1.test; 1 library googleapis_beta.dlp.v2beta1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:test/test.dart' as unittest; 10 import 'package:test/test.dart' as unittest;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) { 49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 core.int buildCounterCancelOperationRequest = 0; 54 core.int buildCounterGoogleLongrunningCancelOperationRequest = 0;
55 buildCancelOperationRequest() { 55 buildGoogleLongrunningCancelOperationRequest() {
56 var o = new api.CancelOperationRequest(); 56 var o = new api.GoogleLongrunningCancelOperationRequest();
57 buildCounterCancelOperationRequest++; 57 buildCounterGoogleLongrunningCancelOperationRequest++;
58 if (buildCounterCancelOperationRequest < 3) { 58 if (buildCounterGoogleLongrunningCancelOperationRequest < 3) {
59 } 59 }
60 buildCounterCancelOperationRequest--; 60 buildCounterGoogleLongrunningCancelOperationRequest--;
61 return o; 61 return o;
62 } 62 }
63 63
64 checkCancelOperationRequest(api.CancelOperationRequest o) { 64 checkGoogleLongrunningCancelOperationRequest(api.GoogleLongrunningCancelOperatio nRequest o) {
65 buildCounterCancelOperationRequest++; 65 buildCounterGoogleLongrunningCancelOperationRequest++;
66 if (buildCounterCancelOperationRequest < 3) { 66 if (buildCounterGoogleLongrunningCancelOperationRequest < 3) {
67 } 67 }
68 buildCounterCancelOperationRequest--; 68 buildCounterGoogleLongrunningCancelOperationRequest--;
69 } 69 }
70 70
71 core.int buildCounterCategoryDescription = 0; 71 buildUnnamed3287() {
72 buildCategoryDescription() { 72 var o = new core.List<api.GoogleLongrunningOperation>();
73 var o = new api.CategoryDescription(); 73 o.add(buildGoogleLongrunningOperation());
74 buildCounterCategoryDescription++; 74 o.add(buildGoogleLongrunningOperation());
75 if (buildCounterCategoryDescription < 3) { 75 return o;
76 }
77
78 checkUnnamed3287(core.List<api.GoogleLongrunningOperation> o) {
79 unittest.expect(o, unittest.hasLength(2));
80 checkGoogleLongrunningOperation(o[0]);
81 checkGoogleLongrunningOperation(o[1]);
82 }
83
84 core.int buildCounterGoogleLongrunningListOperationsResponse = 0;
85 buildGoogleLongrunningListOperationsResponse() {
86 var o = new api.GoogleLongrunningListOperationsResponse();
87 buildCounterGoogleLongrunningListOperationsResponse++;
88 if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
89 o.nextPageToken = "foo";
90 o.operations = buildUnnamed3287();
91 }
92 buildCounterGoogleLongrunningListOperationsResponse--;
93 return o;
94 }
95
96 checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperations Response o) {
97 buildCounterGoogleLongrunningListOperationsResponse++;
98 if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
99 unittest.expect(o.nextPageToken, unittest.equals('foo'));
100 checkUnnamed3287(o.operations);
101 }
102 buildCounterGoogleLongrunningListOperationsResponse--;
103 }
104
105 buildUnnamed3288() {
106 var o = new core.Map<core.String, core.Object>();
107 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
108 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
109 return o;
110 }
111
112 checkUnnamed3288(core.Map<core.String, core.Object> o) {
113 unittest.expect(o, unittest.hasLength(2));
114 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'));
115 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'));
116 }
117
118 buildUnnamed3289() {
119 var o = new core.Map<core.String, core.Object>();
120 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
121 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
122 return o;
123 }
124
125 checkUnnamed3289(core.Map<core.String, core.Object> o) {
126 unittest.expect(o, unittest.hasLength(2));
127 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'));
128 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'));
129 }
130
131 core.int buildCounterGoogleLongrunningOperation = 0;
132 buildGoogleLongrunningOperation() {
133 var o = new api.GoogleLongrunningOperation();
134 buildCounterGoogleLongrunningOperation++;
135 if (buildCounterGoogleLongrunningOperation < 3) {
136 o.done = true;
137 o.error = buildGoogleRpcStatus();
138 o.metadata = buildUnnamed3288();
139 o.name = "foo";
140 o.response = buildUnnamed3289();
141 }
142 buildCounterGoogleLongrunningOperation--;
143 return o;
144 }
145
146 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) {
147 buildCounterGoogleLongrunningOperation++;
148 if (buildCounterGoogleLongrunningOperation < 3) {
149 unittest.expect(o.done, unittest.isTrue);
150 checkGoogleRpcStatus(o.error);
151 checkUnnamed3288(o.metadata);
152 unittest.expect(o.name, unittest.equals('foo'));
153 checkUnnamed3289(o.response);
154 }
155 buildCounterGoogleLongrunningOperation--;
156 }
157
158 core.int buildCounterGooglePrivacyDlpV2beta1CategoryDescription = 0;
159 buildGooglePrivacyDlpV2beta1CategoryDescription() {
160 var o = new api.GooglePrivacyDlpV2beta1CategoryDescription();
161 buildCounterGooglePrivacyDlpV2beta1CategoryDescription++;
162 if (buildCounterGooglePrivacyDlpV2beta1CategoryDescription < 3) {
76 o.displayName = "foo"; 163 o.displayName = "foo";
77 o.name = "foo"; 164 o.name = "foo";
78 } 165 }
79 buildCounterCategoryDescription--; 166 buildCounterGooglePrivacyDlpV2beta1CategoryDescription--;
80 return o; 167 return o;
81 } 168 }
82 169
83 checkCategoryDescription(api.CategoryDescription o) { 170 checkGooglePrivacyDlpV2beta1CategoryDescription(api.GooglePrivacyDlpV2beta1Categ oryDescription o) {
84 buildCounterCategoryDescription++; 171 buildCounterGooglePrivacyDlpV2beta1CategoryDescription++;
85 if (buildCounterCategoryDescription < 3) { 172 if (buildCounterGooglePrivacyDlpV2beta1CategoryDescription < 3) {
86 unittest.expect(o.displayName, unittest.equals('foo')); 173 unittest.expect(o.displayName, unittest.equals('foo'));
87 unittest.expect(o.name, unittest.equals('foo')); 174 unittest.expect(o.name, unittest.equals('foo'));
88 } 175 }
89 buildCounterCategoryDescription--; 176 buildCounterGooglePrivacyDlpV2beta1CategoryDescription--;
90 } 177 }
91 178
92 core.int buildCounterCloudStorageKey = 0; 179 core.int buildCounterGooglePrivacyDlpV2beta1CloudStorageKey = 0;
93 buildCloudStorageKey() { 180 buildGooglePrivacyDlpV2beta1CloudStorageKey() {
94 var o = new api.CloudStorageKey(); 181 var o = new api.GooglePrivacyDlpV2beta1CloudStorageKey();
95 buildCounterCloudStorageKey++; 182 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey++;
96 if (buildCounterCloudStorageKey < 3) { 183 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageKey < 3) {
97 o.filePath = "foo"; 184 o.filePath = "foo";
98 o.startOffset = "foo"; 185 o.startOffset = "foo";
99 } 186 }
100 buildCounterCloudStorageKey--; 187 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey--;
101 return o; 188 return o;
102 } 189 }
103 190
104 checkCloudStorageKey(api.CloudStorageKey o) { 191 checkGooglePrivacyDlpV2beta1CloudStorageKey(api.GooglePrivacyDlpV2beta1CloudStor ageKey o) {
105 buildCounterCloudStorageKey++; 192 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey++;
106 if (buildCounterCloudStorageKey < 3) { 193 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageKey < 3) {
107 unittest.expect(o.filePath, unittest.equals('foo')); 194 unittest.expect(o.filePath, unittest.equals('foo'));
108 unittest.expect(o.startOffset, unittest.equals('foo')); 195 unittest.expect(o.startOffset, unittest.equals('foo'));
109 } 196 }
110 buildCounterCloudStorageKey--; 197 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey--;
111 } 198 }
112 199
113 core.int buildCounterCloudStorageOptions = 0; 200 core.int buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions = 0;
114 buildCloudStorageOptions() { 201 buildGooglePrivacyDlpV2beta1CloudStorageOptions() {
115 var o = new api.CloudStorageOptions(); 202 var o = new api.GooglePrivacyDlpV2beta1CloudStorageOptions();
116 buildCounterCloudStorageOptions++; 203 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions++;
117 if (buildCounterCloudStorageOptions < 3) { 204 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions < 3) {
118 o.fileSet = buildFileSet(); 205 o.fileSet = buildGooglePrivacyDlpV2beta1FileSet();
119 } 206 }
120 buildCounterCloudStorageOptions--; 207 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions--;
121 return o; 208 return o;
122 } 209 }
123 210
124 checkCloudStorageOptions(api.CloudStorageOptions o) { 211 checkGooglePrivacyDlpV2beta1CloudStorageOptions(api.GooglePrivacyDlpV2beta1Cloud StorageOptions o) {
125 buildCounterCloudStorageOptions++; 212 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions++;
126 if (buildCounterCloudStorageOptions < 3) { 213 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions < 3) {
127 checkFileSet(o.fileSet); 214 checkGooglePrivacyDlpV2beta1FileSet(o.fileSet);
128 } 215 }
129 buildCounterCloudStorageOptions--; 216 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions--;
130 } 217 }
131 218
132 core.int buildCounterCloudStoragePath = 0; 219 core.int buildCounterGooglePrivacyDlpV2beta1CloudStoragePath = 0;
133 buildCloudStoragePath() { 220 buildGooglePrivacyDlpV2beta1CloudStoragePath() {
134 var o = new api.CloudStoragePath(); 221 var o = new api.GooglePrivacyDlpV2beta1CloudStoragePath();
135 buildCounterCloudStoragePath++; 222 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath++;
136 if (buildCounterCloudStoragePath < 3) { 223 if (buildCounterGooglePrivacyDlpV2beta1CloudStoragePath < 3) {
137 o.path = "foo"; 224 o.path = "foo";
138 } 225 }
139 buildCounterCloudStoragePath--; 226 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath--;
140 return o; 227 return o;
141 } 228 }
142 229
143 checkCloudStoragePath(api.CloudStoragePath o) { 230 checkGooglePrivacyDlpV2beta1CloudStoragePath(api.GooglePrivacyDlpV2beta1CloudSto ragePath o) {
144 buildCounterCloudStoragePath++; 231 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath++;
145 if (buildCounterCloudStoragePath < 3) { 232 if (buildCounterGooglePrivacyDlpV2beta1CloudStoragePath < 3) {
146 unittest.expect(o.path, unittest.equals('foo')); 233 unittest.expect(o.path, unittest.equals('foo'));
147 } 234 }
148 buildCounterCloudStoragePath--; 235 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath--;
149 } 236 }
150 237
151 core.int buildCounterContentItem = 0; 238 core.int buildCounterGooglePrivacyDlpV2beta1Color = 0;
152 buildContentItem() { 239 buildGooglePrivacyDlpV2beta1Color() {
153 var o = new api.ContentItem(); 240 var o = new api.GooglePrivacyDlpV2beta1Color();
154 buildCounterContentItem++; 241 buildCounterGooglePrivacyDlpV2beta1Color++;
155 if (buildCounterContentItem < 3) { 242 if (buildCounterGooglePrivacyDlpV2beta1Color < 3) {
243 o.blue = 42.0;
244 o.green = 42.0;
245 o.red = 42.0;
246 }
247 buildCounterGooglePrivacyDlpV2beta1Color--;
248 return o;
249 }
250
251 checkGooglePrivacyDlpV2beta1Color(api.GooglePrivacyDlpV2beta1Color o) {
252 buildCounterGooglePrivacyDlpV2beta1Color++;
253 if (buildCounterGooglePrivacyDlpV2beta1Color < 3) {
254 unittest.expect(o.blue, unittest.equals(42.0));
255 unittest.expect(o.green, unittest.equals(42.0));
256 unittest.expect(o.red, unittest.equals(42.0));
257 }
258 buildCounterGooglePrivacyDlpV2beta1Color--;
259 }
260
261 core.int buildCounterGooglePrivacyDlpV2beta1ContentItem = 0;
262 buildGooglePrivacyDlpV2beta1ContentItem() {
263 var o = new api.GooglePrivacyDlpV2beta1ContentItem();
264 buildCounterGooglePrivacyDlpV2beta1ContentItem++;
265 if (buildCounterGooglePrivacyDlpV2beta1ContentItem < 3) {
156 o.data = "foo"; 266 o.data = "foo";
157 o.type = "foo"; 267 o.type = "foo";
158 o.value = "foo"; 268 o.value = "foo";
159 } 269 }
160 buildCounterContentItem--; 270 buildCounterGooglePrivacyDlpV2beta1ContentItem--;
161 return o; 271 return o;
162 } 272 }
163 273
164 checkContentItem(api.ContentItem o) { 274 checkGooglePrivacyDlpV2beta1ContentItem(api.GooglePrivacyDlpV2beta1ContentItem o ) {
165 buildCounterContentItem++; 275 buildCounterGooglePrivacyDlpV2beta1ContentItem++;
166 if (buildCounterContentItem < 3) { 276 if (buildCounterGooglePrivacyDlpV2beta1ContentItem < 3) {
167 unittest.expect(o.data, unittest.equals('foo')); 277 unittest.expect(o.data, unittest.equals('foo'));
168 unittest.expect(o.type, unittest.equals('foo')); 278 unittest.expect(o.type, unittest.equals('foo'));
169 unittest.expect(o.value, unittest.equals('foo')); 279 unittest.expect(o.value, unittest.equals('foo'));
170 } 280 }
171 buildCounterContentItem--; 281 buildCounterGooglePrivacyDlpV2beta1ContentItem--;
172 } 282 }
173 283
174 core.int buildCounterCreateInspectOperationRequest = 0; 284 core.int buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest = 0;
175 buildCreateInspectOperationRequest() { 285 buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest() {
176 var o = new api.CreateInspectOperationRequest(); 286 var o = new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest();
177 buildCounterCreateInspectOperationRequest++; 287 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest++;
178 if (buildCounterCreateInspectOperationRequest < 3) { 288 if (buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest < 3) {
179 o.inspectConfig = buildInspectConfig(); 289 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig();
180 o.outputConfig = buildOutputStorageConfig(); 290 o.outputConfig = buildGooglePrivacyDlpV2beta1OutputStorageConfig();
181 o.storageConfig = buildStorageConfig(); 291 o.storageConfig = buildGooglePrivacyDlpV2beta1StorageConfig();
182 } 292 }
183 buildCounterCreateInspectOperationRequest--; 293 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest--;
184 return o; 294 return o;
185 } 295 }
186 296
187 checkCreateInspectOperationRequest(api.CreateInspectOperationRequest o) { 297 checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(api.GooglePrivacyDlpV2 beta1CreateInspectOperationRequest o) {
188 buildCounterCreateInspectOperationRequest++; 298 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest++;
189 if (buildCounterCreateInspectOperationRequest < 3) { 299 if (buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest < 3) {
190 checkInspectConfig(o.inspectConfig); 300 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig);
191 checkOutputStorageConfig(o.outputConfig); 301 checkGooglePrivacyDlpV2beta1OutputStorageConfig(o.outputConfig);
192 checkStorageConfig(o.storageConfig); 302 checkGooglePrivacyDlpV2beta1StorageConfig(o.storageConfig);
193 } 303 }
194 buildCounterCreateInspectOperationRequest--; 304 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest--;
195 } 305 }
196 306
197 core.int buildCounterDatastoreKey = 0; 307 core.int buildCounterGooglePrivacyDlpV2beta1DatastoreKey = 0;
198 buildDatastoreKey() { 308 buildGooglePrivacyDlpV2beta1DatastoreKey() {
199 var o = new api.DatastoreKey(); 309 var o = new api.GooglePrivacyDlpV2beta1DatastoreKey();
200 buildCounterDatastoreKey++; 310 buildCounterGooglePrivacyDlpV2beta1DatastoreKey++;
201 if (buildCounterDatastoreKey < 3) { 311 if (buildCounterGooglePrivacyDlpV2beta1DatastoreKey < 3) {
202 o.entityKey = buildKey(); 312 o.entityKey = buildGooglePrivacyDlpV2beta1Key();
203 } 313 }
204 buildCounterDatastoreKey--; 314 buildCounterGooglePrivacyDlpV2beta1DatastoreKey--;
205 return o; 315 return o;
206 } 316 }
207 317
208 checkDatastoreKey(api.DatastoreKey o) { 318 checkGooglePrivacyDlpV2beta1DatastoreKey(api.GooglePrivacyDlpV2beta1DatastoreKey o) {
209 buildCounterDatastoreKey++; 319 buildCounterGooglePrivacyDlpV2beta1DatastoreKey++;
210 if (buildCounterDatastoreKey < 3) { 320 if (buildCounterGooglePrivacyDlpV2beta1DatastoreKey < 3) {
211 checkKey(o.entityKey); 321 checkGooglePrivacyDlpV2beta1Key(o.entityKey);
212 } 322 }
213 buildCounterDatastoreKey--; 323 buildCounterGooglePrivacyDlpV2beta1DatastoreKey--;
214 } 324 }
215 325
216 buildUnnamed3169() { 326 buildUnnamed3290() {
217 var o = new core.List<api.Projection>(); 327 var o = new core.List<api.GooglePrivacyDlpV2beta1Projection>();
218 o.add(buildProjection()); 328 o.add(buildGooglePrivacyDlpV2beta1Projection());
219 o.add(buildProjection()); 329 o.add(buildGooglePrivacyDlpV2beta1Projection());
220 return o; 330 return o;
221 } 331 }
222 332
223 checkUnnamed3169(core.List<api.Projection> o) { 333 checkUnnamed3290(core.List<api.GooglePrivacyDlpV2beta1Projection> o) {
224 unittest.expect(o, unittest.hasLength(2)); 334 unittest.expect(o, unittest.hasLength(2));
225 checkProjection(o[0]); 335 checkGooglePrivacyDlpV2beta1Projection(o[0]);
226 checkProjection(o[1]); 336 checkGooglePrivacyDlpV2beta1Projection(o[1]);
227 } 337 }
228 338
229 core.int buildCounterDatastoreOptions = 0; 339 core.int buildCounterGooglePrivacyDlpV2beta1DatastoreOptions = 0;
230 buildDatastoreOptions() { 340 buildGooglePrivacyDlpV2beta1DatastoreOptions() {
231 var o = new api.DatastoreOptions(); 341 var o = new api.GooglePrivacyDlpV2beta1DatastoreOptions();
232 buildCounterDatastoreOptions++; 342 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++;
233 if (buildCounterDatastoreOptions < 3) { 343 if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) {
234 o.kind = buildKindExpression(); 344 o.kind = buildGooglePrivacyDlpV2beta1KindExpression();
235 o.partitionId = buildPartitionId(); 345 o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId();
236 o.projection = buildUnnamed3169(); 346 o.projection = buildUnnamed3290();
237 } 347 }
238 buildCounterDatastoreOptions--; 348 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--;
239 return o; 349 return o;
240 } 350 }
241 351
242 checkDatastoreOptions(api.DatastoreOptions o) { 352 checkGooglePrivacyDlpV2beta1DatastoreOptions(api.GooglePrivacyDlpV2beta1Datastor eOptions o) {
243 buildCounterDatastoreOptions++; 353 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++;
244 if (buildCounterDatastoreOptions < 3) { 354 if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) {
245 checkKindExpression(o.kind); 355 checkGooglePrivacyDlpV2beta1KindExpression(o.kind);
246 checkPartitionId(o.partitionId); 356 checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId);
247 checkUnnamed3169(o.projection); 357 checkUnnamed3290(o.projection);
248 } 358 }
249 buildCounterDatastoreOptions--; 359 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--;
250 } 360 }
251 361
252 core.int buildCounterEmpty = 0; 362 core.int buildCounterGooglePrivacyDlpV2beta1FieldId = 0;
253 buildEmpty() { 363 buildGooglePrivacyDlpV2beta1FieldId() {
254 var o = new api.Empty(); 364 var o = new api.GooglePrivacyDlpV2beta1FieldId();
255 buildCounterEmpty++; 365 buildCounterGooglePrivacyDlpV2beta1FieldId++;
256 if (buildCounterEmpty < 3) { 366 if (buildCounterGooglePrivacyDlpV2beta1FieldId < 3) {
257 }
258 buildCounterEmpty--;
259 return o;
260 }
261
262 checkEmpty(api.Empty o) {
263 buildCounterEmpty++;
264 if (buildCounterEmpty < 3) {
265 }
266 buildCounterEmpty--;
267 }
268
269 core.int buildCounterFieldId = 0;
270 buildFieldId() {
271 var o = new api.FieldId();
272 buildCounterFieldId++;
273 if (buildCounterFieldId < 3) {
274 o.columnName = "foo"; 367 o.columnName = "foo";
275 } 368 }
276 buildCounterFieldId--; 369 buildCounterGooglePrivacyDlpV2beta1FieldId--;
277 return o; 370 return o;
278 } 371 }
279 372
280 checkFieldId(api.FieldId o) { 373 checkGooglePrivacyDlpV2beta1FieldId(api.GooglePrivacyDlpV2beta1FieldId o) {
281 buildCounterFieldId++; 374 buildCounterGooglePrivacyDlpV2beta1FieldId++;
282 if (buildCounterFieldId < 3) { 375 if (buildCounterGooglePrivacyDlpV2beta1FieldId < 3) {
283 unittest.expect(o.columnName, unittest.equals('foo')); 376 unittest.expect(o.columnName, unittest.equals('foo'));
284 } 377 }
285 buildCounterFieldId--; 378 buildCounterGooglePrivacyDlpV2beta1FieldId--;
286 } 379 }
287 380
288 core.int buildCounterFileSet = 0; 381 core.int buildCounterGooglePrivacyDlpV2beta1FileSet = 0;
289 buildFileSet() { 382 buildGooglePrivacyDlpV2beta1FileSet() {
290 var o = new api.FileSet(); 383 var o = new api.GooglePrivacyDlpV2beta1FileSet();
291 buildCounterFileSet++; 384 buildCounterGooglePrivacyDlpV2beta1FileSet++;
292 if (buildCounterFileSet < 3) { 385 if (buildCounterGooglePrivacyDlpV2beta1FileSet < 3) {
293 o.url = "foo"; 386 o.url = "foo";
294 } 387 }
295 buildCounterFileSet--; 388 buildCounterGooglePrivacyDlpV2beta1FileSet--;
296 return o; 389 return o;
297 } 390 }
298 391
299 checkFileSet(api.FileSet o) { 392 checkGooglePrivacyDlpV2beta1FileSet(api.GooglePrivacyDlpV2beta1FileSet o) {
300 buildCounterFileSet++; 393 buildCounterGooglePrivacyDlpV2beta1FileSet++;
301 if (buildCounterFileSet < 3) { 394 if (buildCounterGooglePrivacyDlpV2beta1FileSet < 3) {
302 unittest.expect(o.url, unittest.equals('foo')); 395 unittest.expect(o.url, unittest.equals('foo'));
303 } 396 }
304 buildCounterFileSet--; 397 buildCounterGooglePrivacyDlpV2beta1FileSet--;
305 } 398 }
306 399
307 core.int buildCounterFinding = 0; 400 core.int buildCounterGooglePrivacyDlpV2beta1Finding = 0;
308 buildFinding() { 401 buildGooglePrivacyDlpV2beta1Finding() {
309 var o = new api.Finding(); 402 var o = new api.GooglePrivacyDlpV2beta1Finding();
310 buildCounterFinding++; 403 buildCounterGooglePrivacyDlpV2beta1Finding++;
311 if (buildCounterFinding < 3) { 404 if (buildCounterGooglePrivacyDlpV2beta1Finding < 3) {
312 o.createTime = "foo"; 405 o.createTime = "foo";
313 o.infoType = buildInfoType(); 406 o.infoType = buildGooglePrivacyDlpV2beta1InfoType();
314 o.likelihood = "foo"; 407 o.likelihood = "foo";
315 o.location = buildLocation(); 408 o.location = buildGooglePrivacyDlpV2beta1Location();
316 o.quote = "foo"; 409 o.quote = "foo";
317 } 410 }
318 buildCounterFinding--; 411 buildCounterGooglePrivacyDlpV2beta1Finding--;
319 return o; 412 return o;
320 } 413 }
321 414
322 checkFinding(api.Finding o) { 415 checkGooglePrivacyDlpV2beta1Finding(api.GooglePrivacyDlpV2beta1Finding o) {
323 buildCounterFinding++; 416 buildCounterGooglePrivacyDlpV2beta1Finding++;
324 if (buildCounterFinding < 3) { 417 if (buildCounterGooglePrivacyDlpV2beta1Finding < 3) {
325 unittest.expect(o.createTime, unittest.equals('foo')); 418 unittest.expect(o.createTime, unittest.equals('foo'));
326 checkInfoType(o.infoType); 419 checkGooglePrivacyDlpV2beta1InfoType(o.infoType);
327 unittest.expect(o.likelihood, unittest.equals('foo')); 420 unittest.expect(o.likelihood, unittest.equals('foo'));
328 checkLocation(o.location); 421 checkGooglePrivacyDlpV2beta1Location(o.location);
329 unittest.expect(o.quote, unittest.equals('foo')); 422 unittest.expect(o.quote, unittest.equals('foo'));
330 } 423 }
331 buildCounterFinding--; 424 buildCounterGooglePrivacyDlpV2beta1Finding--;
332 } 425 }
333 426
334 core.int buildCounterImageLocation = 0; 427 core.int buildCounterGooglePrivacyDlpV2beta1ImageLocation = 0;
335 buildImageLocation() { 428 buildGooglePrivacyDlpV2beta1ImageLocation() {
336 var o = new api.ImageLocation(); 429 var o = new api.GooglePrivacyDlpV2beta1ImageLocation();
337 buildCounterImageLocation++; 430 buildCounterGooglePrivacyDlpV2beta1ImageLocation++;
338 if (buildCounterImageLocation < 3) { 431 if (buildCounterGooglePrivacyDlpV2beta1ImageLocation < 3) {
339 o.height = 42; 432 o.height = 42;
340 o.left = 42; 433 o.left = 42;
341 o.top = 42; 434 o.top = 42;
342 o.width = 42; 435 o.width = 42;
343 } 436 }
344 buildCounterImageLocation--; 437 buildCounterGooglePrivacyDlpV2beta1ImageLocation--;
345 return o; 438 return o;
346 } 439 }
347 440
348 checkImageLocation(api.ImageLocation o) { 441 checkGooglePrivacyDlpV2beta1ImageLocation(api.GooglePrivacyDlpV2beta1ImageLocati on o) {
349 buildCounterImageLocation++; 442 buildCounterGooglePrivacyDlpV2beta1ImageLocation++;
350 if (buildCounterImageLocation < 3) { 443 if (buildCounterGooglePrivacyDlpV2beta1ImageLocation < 3) {
351 unittest.expect(o.height, unittest.equals(42)); 444 unittest.expect(o.height, unittest.equals(42));
352 unittest.expect(o.left, unittest.equals(42)); 445 unittest.expect(o.left, unittest.equals(42));
353 unittest.expect(o.top, unittest.equals(42)); 446 unittest.expect(o.top, unittest.equals(42));
354 unittest.expect(o.width, unittest.equals(42)); 447 unittest.expect(o.width, unittest.equals(42));
355 } 448 }
356 buildCounterImageLocation--; 449 buildCounterGooglePrivacyDlpV2beta1ImageLocation--;
357 } 450 }
358 451
359 core.int buildCounterInfoType = 0; 452 core.int buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig = 0;
360 buildInfoType() { 453 buildGooglePrivacyDlpV2beta1ImageRedactionConfig() {
361 var o = new api.InfoType(); 454 var o = new api.GooglePrivacyDlpV2beta1ImageRedactionConfig();
362 buildCounterInfoType++; 455 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig++;
363 if (buildCounterInfoType < 3) { 456 if (buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig < 3) {
457 o.infoType = buildGooglePrivacyDlpV2beta1InfoType();
458 o.redactAllText = true;
459 o.redactionColor = buildGooglePrivacyDlpV2beta1Color();
460 }
461 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig--;
462 return o;
463 }
464
465 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(api.GooglePrivacyDlpV2beta1Imag eRedactionConfig o) {
466 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig++;
467 if (buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig < 3) {
468 checkGooglePrivacyDlpV2beta1InfoType(o.infoType);
469 unittest.expect(o.redactAllText, unittest.isTrue);
470 checkGooglePrivacyDlpV2beta1Color(o.redactionColor);
471 }
472 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig--;
473 }
474
475 core.int buildCounterGooglePrivacyDlpV2beta1InfoType = 0;
476 buildGooglePrivacyDlpV2beta1InfoType() {
477 var o = new api.GooglePrivacyDlpV2beta1InfoType();
478 buildCounterGooglePrivacyDlpV2beta1InfoType++;
479 if (buildCounterGooglePrivacyDlpV2beta1InfoType < 3) {
364 o.name = "foo"; 480 o.name = "foo";
365 } 481 }
366 buildCounterInfoType--; 482 buildCounterGooglePrivacyDlpV2beta1InfoType--;
367 return o; 483 return o;
368 } 484 }
369 485
370 checkInfoType(api.InfoType o) { 486 checkGooglePrivacyDlpV2beta1InfoType(api.GooglePrivacyDlpV2beta1InfoType o) {
371 buildCounterInfoType++; 487 buildCounterGooglePrivacyDlpV2beta1InfoType++;
372 if (buildCounterInfoType < 3) { 488 if (buildCounterGooglePrivacyDlpV2beta1InfoType < 3) {
373 unittest.expect(o.name, unittest.equals('foo')); 489 unittest.expect(o.name, unittest.equals('foo'));
374 } 490 }
375 buildCounterInfoType--; 491 buildCounterGooglePrivacyDlpV2beta1InfoType--;
376 } 492 }
377 493
378 buildUnnamed3170() { 494 buildUnnamed3291() {
379 var o = new core.List<api.CategoryDescription>(); 495 var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>();
380 o.add(buildCategoryDescription()); 496 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription());
381 o.add(buildCategoryDescription()); 497 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription());
382 return o; 498 return o;
383 } 499 }
384 500
385 checkUnnamed3170(core.List<api.CategoryDescription> o) { 501 checkUnnamed3291(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) {
386 unittest.expect(o, unittest.hasLength(2)); 502 unittest.expect(o, unittest.hasLength(2));
387 checkCategoryDescription(o[0]); 503 checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]);
388 checkCategoryDescription(o[1]); 504 checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]);
389 } 505 }
390 506
391 core.int buildCounterInfoTypeDescription = 0; 507 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription = 0;
392 buildInfoTypeDescription() { 508 buildGooglePrivacyDlpV2beta1InfoTypeDescription() {
393 var o = new api.InfoTypeDescription(); 509 var o = new api.GooglePrivacyDlpV2beta1InfoTypeDescription();
394 buildCounterInfoTypeDescription++; 510 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++;
395 if (buildCounterInfoTypeDescription < 3) { 511 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) {
396 o.categories = buildUnnamed3170(); 512 o.categories = buildUnnamed3291();
397 o.displayName = "foo"; 513 o.displayName = "foo";
398 o.name = "foo"; 514 o.name = "foo";
399 } 515 }
400 buildCounterInfoTypeDescription--; 516 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription--;
401 return o; 517 return o;
402 } 518 }
403 519
404 checkInfoTypeDescription(api.InfoTypeDescription o) { 520 checkGooglePrivacyDlpV2beta1InfoTypeDescription(api.GooglePrivacyDlpV2beta1InfoT ypeDescription o) {
405 buildCounterInfoTypeDescription++; 521 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++;
406 if (buildCounterInfoTypeDescription < 3) { 522 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) {
407 checkUnnamed3170(o.categories); 523 checkUnnamed3291(o.categories);
408 unittest.expect(o.displayName, unittest.equals('foo')); 524 unittest.expect(o.displayName, unittest.equals('foo'));
409 unittest.expect(o.name, unittest.equals('foo')); 525 unittest.expect(o.name, unittest.equals('foo'));
410 } 526 }
411 buildCounterInfoTypeDescription--; 527 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription--;
412 } 528 }
413 529
414 buildUnnamed3171() { 530 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics = 0;
415 var o = new core.List<api.InfoType>(); 531 buildGooglePrivacyDlpV2beta1InfoTypeStatistics() {
416 o.add(buildInfoType()); 532 var o = new api.GooglePrivacyDlpV2beta1InfoTypeStatistics();
417 o.add(buildInfoType()); 533 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++;
418 return o; 534 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) {
419 } 535 o.count = "foo";
420 536 o.infoType = buildGooglePrivacyDlpV2beta1InfoType();
421 checkUnnamed3171(core.List<api.InfoType> o) { 537 }
422 unittest.expect(o, unittest.hasLength(2)); 538 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--;
423 checkInfoType(o[0]); 539 return o;
424 checkInfoType(o[1]); 540 }
425 } 541
426 542 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(api.GooglePrivacyDlpV2beta1InfoTy peStatistics o) {
427 core.int buildCounterInspectConfig = 0; 543 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++;
428 buildInspectConfig() { 544 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) {
429 var o = new api.InspectConfig(); 545 unittest.expect(o.count, unittest.equals('foo'));
430 buildCounterInspectConfig++; 546 checkGooglePrivacyDlpV2beta1InfoType(o.infoType);
431 if (buildCounterInspectConfig < 3) { 547 }
548 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--;
549 }
550
551 buildUnnamed3292() {
552 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoType>();
553 o.add(buildGooglePrivacyDlpV2beta1InfoType());
554 o.add(buildGooglePrivacyDlpV2beta1InfoType());
555 return o;
556 }
557
558 checkUnnamed3292(core.List<api.GooglePrivacyDlpV2beta1InfoType> o) {
559 unittest.expect(o, unittest.hasLength(2));
560 checkGooglePrivacyDlpV2beta1InfoType(o[0]);
561 checkGooglePrivacyDlpV2beta1InfoType(o[1]);
562 }
563
564 core.int buildCounterGooglePrivacyDlpV2beta1InspectConfig = 0;
565 buildGooglePrivacyDlpV2beta1InspectConfig() {
566 var o = new api.GooglePrivacyDlpV2beta1InspectConfig();
567 buildCounterGooglePrivacyDlpV2beta1InspectConfig++;
568 if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) {
432 o.excludeTypes = true; 569 o.excludeTypes = true;
433 o.includeQuote = true; 570 o.includeQuote = true;
434 o.infoTypes = buildUnnamed3171(); 571 o.infoTypes = buildUnnamed3292();
435 o.maxFindings = 42; 572 o.maxFindings = 42;
436 o.minLikelihood = "foo"; 573 o.minLikelihood = "foo";
437 } 574 }
438 buildCounterInspectConfig--; 575 buildCounterGooglePrivacyDlpV2beta1InspectConfig--;
439 return o; 576 return o;
440 } 577 }
441 578
442 checkInspectConfig(api.InspectConfig o) { 579 checkGooglePrivacyDlpV2beta1InspectConfig(api.GooglePrivacyDlpV2beta1InspectConf ig o) {
443 buildCounterInspectConfig++; 580 buildCounterGooglePrivacyDlpV2beta1InspectConfig++;
444 if (buildCounterInspectConfig < 3) { 581 if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) {
445 unittest.expect(o.excludeTypes, unittest.isTrue); 582 unittest.expect(o.excludeTypes, unittest.isTrue);
446 unittest.expect(o.includeQuote, unittest.isTrue); 583 unittest.expect(o.includeQuote, unittest.isTrue);
447 checkUnnamed3171(o.infoTypes); 584 checkUnnamed3292(o.infoTypes);
448 unittest.expect(o.maxFindings, unittest.equals(42)); 585 unittest.expect(o.maxFindings, unittest.equals(42));
449 unittest.expect(o.minLikelihood, unittest.equals('foo')); 586 unittest.expect(o.minLikelihood, unittest.equals('foo'));
450 } 587 }
451 buildCounterInspectConfig--; 588 buildCounterGooglePrivacyDlpV2beta1InspectConfig--;
452 } 589 }
453 590
454 buildUnnamed3172() { 591 buildUnnamed3293() {
455 var o = new core.List<api.ContentItem>(); 592 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>();
456 o.add(buildContentItem()); 593 o.add(buildGooglePrivacyDlpV2beta1ContentItem());
457 o.add(buildContentItem()); 594 o.add(buildGooglePrivacyDlpV2beta1ContentItem());
458 return o; 595 return o;
459 } 596 }
460 597
461 checkUnnamed3172(core.List<api.ContentItem> o) { 598 checkUnnamed3293(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) {
462 unittest.expect(o, unittest.hasLength(2)); 599 unittest.expect(o, unittest.hasLength(2));
463 checkContentItem(o[0]); 600 checkGooglePrivacyDlpV2beta1ContentItem(o[0]);
464 checkContentItem(o[1]); 601 checkGooglePrivacyDlpV2beta1ContentItem(o[1]);
465 } 602 }
466 603
467 core.int buildCounterInspectContentRequest = 0; 604 core.int buildCounterGooglePrivacyDlpV2beta1InspectContentRequest = 0;
468 buildInspectContentRequest() { 605 buildGooglePrivacyDlpV2beta1InspectContentRequest() {
469 var o = new api.InspectContentRequest(); 606 var o = new api.GooglePrivacyDlpV2beta1InspectContentRequest();
470 buildCounterInspectContentRequest++; 607 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++;
471 if (buildCounterInspectContentRequest < 3) { 608 if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) {
472 o.inspectConfig = buildInspectConfig(); 609 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig();
473 o.items = buildUnnamed3172(); 610 o.items = buildUnnamed3293();
474 } 611 }
475 buildCounterInspectContentRequest--; 612 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--;
476 return o; 613 return o;
477 } 614 }
478 615
479 checkInspectContentRequest(api.InspectContentRequest o) { 616 checkGooglePrivacyDlpV2beta1InspectContentRequest(api.GooglePrivacyDlpV2beta1Ins pectContentRequest o) {
480 buildCounterInspectContentRequest++; 617 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++;
481 if (buildCounterInspectContentRequest < 3) { 618 if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) {
482 checkInspectConfig(o.inspectConfig); 619 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig);
483 checkUnnamed3172(o.items); 620 checkUnnamed3293(o.items);
484 } 621 }
485 buildCounterInspectContentRequest--; 622 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--;
486 } 623 }
487 624
488 buildUnnamed3173() { 625 buildUnnamed3294() {
489 var o = new core.List<api.InspectResult>(); 626 var o = new core.List<api.GooglePrivacyDlpV2beta1InspectResult>();
490 o.add(buildInspectResult()); 627 o.add(buildGooglePrivacyDlpV2beta1InspectResult());
491 o.add(buildInspectResult()); 628 o.add(buildGooglePrivacyDlpV2beta1InspectResult());
492 return o; 629 return o;
493 } 630 }
494 631
495 checkUnnamed3173(core.List<api.InspectResult> o) { 632 checkUnnamed3294(core.List<api.GooglePrivacyDlpV2beta1InspectResult> o) {
496 unittest.expect(o, unittest.hasLength(2)); 633 unittest.expect(o, unittest.hasLength(2));
497 checkInspectResult(o[0]); 634 checkGooglePrivacyDlpV2beta1InspectResult(o[0]);
498 checkInspectResult(o[1]); 635 checkGooglePrivacyDlpV2beta1InspectResult(o[1]);
499 } 636 }
500 637
501 core.int buildCounterInspectContentResponse = 0; 638 core.int buildCounterGooglePrivacyDlpV2beta1InspectContentResponse = 0;
502 buildInspectContentResponse() { 639 buildGooglePrivacyDlpV2beta1InspectContentResponse() {
503 var o = new api.InspectContentResponse(); 640 var o = new api.GooglePrivacyDlpV2beta1InspectContentResponse();
504 buildCounterInspectContentResponse++; 641 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++;
505 if (buildCounterInspectContentResponse < 3) { 642 if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) {
506 o.results = buildUnnamed3173(); 643 o.results = buildUnnamed3294();
507 } 644 }
508 buildCounterInspectContentResponse--; 645 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--;
509 return o; 646 return o;
510 } 647 }
511 648
512 checkInspectContentResponse(api.InspectContentResponse o) { 649 checkGooglePrivacyDlpV2beta1InspectContentResponse(api.GooglePrivacyDlpV2beta1In spectContentResponse o) {
513 buildCounterInspectContentResponse++; 650 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++;
514 if (buildCounterInspectContentResponse < 3) { 651 if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) {
515 checkUnnamed3173(o.results); 652 checkUnnamed3294(o.results);
516 } 653 }
517 buildCounterInspectContentResponse--; 654 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--;
518 } 655 }
519 656
520 buildUnnamed3174() { 657 buildUnnamed3295() {
521 var o = new core.List<api.Finding>(); 658 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics>();
522 o.add(buildFinding()); 659 o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics());
523 o.add(buildFinding()); 660 o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics());
524 return o; 661 return o;
525 } 662 }
526 663
527 checkUnnamed3174(core.List<api.Finding> o) { 664 checkUnnamed3295(core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics> o) {
528 unittest.expect(o, unittest.hasLength(2)); 665 unittest.expect(o, unittest.hasLength(2));
529 checkFinding(o[0]); 666 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[0]);
530 checkFinding(o[1]); 667 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[1]);
531 } 668 }
532 669
533 core.int buildCounterInspectResult = 0; 670 core.int buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata = 0;
534 buildInspectResult() { 671 buildGooglePrivacyDlpV2beta1InspectOperationMetadata() {
535 var o = new api.InspectResult(); 672 var o = new api.GooglePrivacyDlpV2beta1InspectOperationMetadata();
536 buildCounterInspectResult++; 673 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++;
537 if (buildCounterInspectResult < 3) { 674 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) {
538 o.findings = buildUnnamed3174(); 675 o.createTime = "foo";
676 o.infoTypeStats = buildUnnamed3295();
677 o.processedBytes = "foo";
678 o.requestInspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig();
679 o.requestOutputConfig = buildGooglePrivacyDlpV2beta1OutputStorageConfig();
680 o.requestStorageConfig = buildGooglePrivacyDlpV2beta1StorageConfig();
681 o.totalEstimatedBytes = "foo";
682 }
683 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata--;
684 return o;
685 }
686
687 checkGooglePrivacyDlpV2beta1InspectOperationMetadata(api.GooglePrivacyDlpV2beta1 InspectOperationMetadata o) {
688 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++;
689 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) {
690 unittest.expect(o.createTime, unittest.equals('foo'));
691 checkUnnamed3295(o.infoTypeStats);
692 unittest.expect(o.processedBytes, unittest.equals('foo'));
693 checkGooglePrivacyDlpV2beta1InspectConfig(o.requestInspectConfig);
694 checkGooglePrivacyDlpV2beta1OutputStorageConfig(o.requestOutputConfig);
695 checkGooglePrivacyDlpV2beta1StorageConfig(o.requestStorageConfig);
696 unittest.expect(o.totalEstimatedBytes, unittest.equals('foo'));
697 }
698 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata--;
699 }
700
701 core.int buildCounterGooglePrivacyDlpV2beta1InspectOperationResult = 0;
702 buildGooglePrivacyDlpV2beta1InspectOperationResult() {
703 var o = new api.GooglePrivacyDlpV2beta1InspectOperationResult();
704 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++;
705 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) {
706 o.name = "foo";
707 }
708 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--;
709 return o;
710 }
711
712 checkGooglePrivacyDlpV2beta1InspectOperationResult(api.GooglePrivacyDlpV2beta1In spectOperationResult o) {
713 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++;
714 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) {
715 unittest.expect(o.name, unittest.equals('foo'));
716 }
717 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--;
718 }
719
720 buildUnnamed3296() {
721 var o = new core.List<api.GooglePrivacyDlpV2beta1Finding>();
722 o.add(buildGooglePrivacyDlpV2beta1Finding());
723 o.add(buildGooglePrivacyDlpV2beta1Finding());
724 return o;
725 }
726
727 checkUnnamed3296(core.List<api.GooglePrivacyDlpV2beta1Finding> o) {
728 unittest.expect(o, unittest.hasLength(2));
729 checkGooglePrivacyDlpV2beta1Finding(o[0]);
730 checkGooglePrivacyDlpV2beta1Finding(o[1]);
731 }
732
733 core.int buildCounterGooglePrivacyDlpV2beta1InspectResult = 0;
734 buildGooglePrivacyDlpV2beta1InspectResult() {
735 var o = new api.GooglePrivacyDlpV2beta1InspectResult();
736 buildCounterGooglePrivacyDlpV2beta1InspectResult++;
737 if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) {
738 o.findings = buildUnnamed3296();
539 o.findingsTruncated = true; 739 o.findingsTruncated = true;
540 } 740 }
541 buildCounterInspectResult--; 741 buildCounterGooglePrivacyDlpV2beta1InspectResult--;
542 return o; 742 return o;
543 } 743 }
544 744
545 checkInspectResult(api.InspectResult o) { 745 checkGooglePrivacyDlpV2beta1InspectResult(api.GooglePrivacyDlpV2beta1InspectResu lt o) {
546 buildCounterInspectResult++; 746 buildCounterGooglePrivacyDlpV2beta1InspectResult++;
547 if (buildCounterInspectResult < 3) { 747 if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) {
548 checkUnnamed3174(o.findings); 748 checkUnnamed3296(o.findings);
549 unittest.expect(o.findingsTruncated, unittest.isTrue); 749 unittest.expect(o.findingsTruncated, unittest.isTrue);
550 } 750 }
551 buildCounterInspectResult--; 751 buildCounterGooglePrivacyDlpV2beta1InspectResult--;
552 } 752 }
553 753
554 buildUnnamed3175() { 754 buildUnnamed3297() {
555 var o = new core.List<api.PathElement>(); 755 var o = new core.List<api.GooglePrivacyDlpV2beta1PathElement>();
556 o.add(buildPathElement()); 756 o.add(buildGooglePrivacyDlpV2beta1PathElement());
557 o.add(buildPathElement()); 757 o.add(buildGooglePrivacyDlpV2beta1PathElement());
558 return o; 758 return o;
559 } 759 }
560 760
561 checkUnnamed3175(core.List<api.PathElement> o) { 761 checkUnnamed3297(core.List<api.GooglePrivacyDlpV2beta1PathElement> o) {
562 unittest.expect(o, unittest.hasLength(2)); 762 unittest.expect(o, unittest.hasLength(2));
563 checkPathElement(o[0]); 763 checkGooglePrivacyDlpV2beta1PathElement(o[0]);
564 checkPathElement(o[1]); 764 checkGooglePrivacyDlpV2beta1PathElement(o[1]);
565 } 765 }
566 766
567 core.int buildCounterKey = 0; 767 core.int buildCounterGooglePrivacyDlpV2beta1Key = 0;
568 buildKey() { 768 buildGooglePrivacyDlpV2beta1Key() {
569 var o = new api.Key(); 769 var o = new api.GooglePrivacyDlpV2beta1Key();
570 buildCounterKey++; 770 buildCounterGooglePrivacyDlpV2beta1Key++;
571 if (buildCounterKey < 3) { 771 if (buildCounterGooglePrivacyDlpV2beta1Key < 3) {
572 o.partitionId = buildPartitionId(); 772 o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId();
573 o.path = buildUnnamed3175(); 773 o.path = buildUnnamed3297();
574 } 774 }
575 buildCounterKey--; 775 buildCounterGooglePrivacyDlpV2beta1Key--;
576 return o; 776 return o;
577 } 777 }
578 778
579 checkKey(api.Key o) { 779 checkGooglePrivacyDlpV2beta1Key(api.GooglePrivacyDlpV2beta1Key o) {
580 buildCounterKey++; 780 buildCounterGooglePrivacyDlpV2beta1Key++;
581 if (buildCounterKey < 3) { 781 if (buildCounterGooglePrivacyDlpV2beta1Key < 3) {
582 checkPartitionId(o.partitionId); 782 checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId);
583 checkUnnamed3175(o.path); 783 checkUnnamed3297(o.path);
584 } 784 }
585 buildCounterKey--; 785 buildCounterGooglePrivacyDlpV2beta1Key--;
586 } 786 }
587 787
588 core.int buildCounterKindExpression = 0; 788 core.int buildCounterGooglePrivacyDlpV2beta1KindExpression = 0;
589 buildKindExpression() { 789 buildGooglePrivacyDlpV2beta1KindExpression() {
590 var o = new api.KindExpression(); 790 var o = new api.GooglePrivacyDlpV2beta1KindExpression();
591 buildCounterKindExpression++; 791 buildCounterGooglePrivacyDlpV2beta1KindExpression++;
592 if (buildCounterKindExpression < 3) { 792 if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) {
593 o.name = "foo"; 793 o.name = "foo";
594 } 794 }
595 buildCounterKindExpression--; 795 buildCounterGooglePrivacyDlpV2beta1KindExpression--;
596 return o; 796 return o;
597 } 797 }
598 798
599 checkKindExpression(api.KindExpression o) { 799 checkGooglePrivacyDlpV2beta1KindExpression(api.GooglePrivacyDlpV2beta1KindExpres sion o) {
600 buildCounterKindExpression++; 800 buildCounterGooglePrivacyDlpV2beta1KindExpression++;
601 if (buildCounterKindExpression < 3) { 801 if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) {
602 unittest.expect(o.name, unittest.equals('foo')); 802 unittest.expect(o.name, unittest.equals('foo'));
603 } 803 }
604 buildCounterKindExpression--; 804 buildCounterGooglePrivacyDlpV2beta1KindExpression--;
605 } 805 }
606 806
607 buildUnnamed3176() { 807 buildUnnamed3298() {
608 var o = new core.List<api.InfoTypeDescription>(); 808 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription>();
609 o.add(buildInfoTypeDescription()); 809 o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription());
610 o.add(buildInfoTypeDescription()); 810 o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription());
611 return o; 811 return o;
612 } 812 }
613 813
614 checkUnnamed3176(core.List<api.InfoTypeDescription> o) { 814 checkUnnamed3298(core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription> o) {
615 unittest.expect(o, unittest.hasLength(2)); 815 unittest.expect(o, unittest.hasLength(2));
616 checkInfoTypeDescription(o[0]); 816 checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[0]);
617 checkInfoTypeDescription(o[1]); 817 checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[1]);
618 } 818 }
619 819
620 core.int buildCounterListInfoTypesResponse = 0; 820 core.int buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse = 0;
621 buildListInfoTypesResponse() { 821 buildGooglePrivacyDlpV2beta1ListInfoTypesResponse() {
622 var o = new api.ListInfoTypesResponse(); 822 var o = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse();
623 buildCounterListInfoTypesResponse++; 823 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++;
624 if (buildCounterListInfoTypesResponse < 3) { 824 if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) {
625 o.infoTypes = buildUnnamed3176(); 825 o.infoTypes = buildUnnamed3298();
626 } 826 }
627 buildCounterListInfoTypesResponse--; 827 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--;
628 return o; 828 return o;
629 } 829 }
630 830
631 checkListInfoTypesResponse(api.ListInfoTypesResponse o) { 831 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(api.GooglePrivacyDlpV2beta1Lis tInfoTypesResponse o) {
632 buildCounterListInfoTypesResponse++; 832 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++;
633 if (buildCounterListInfoTypesResponse < 3) { 833 if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) {
634 checkUnnamed3176(o.infoTypes); 834 checkUnnamed3298(o.infoTypes);
635 } 835 }
636 buildCounterListInfoTypesResponse--; 836 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--;
637 } 837 }
638 838
639 core.int buildCounterListInspectFindingsResponse = 0; 839 core.int buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse = 0;
640 buildListInspectFindingsResponse() { 840 buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse() {
641 var o = new api.ListInspectFindingsResponse(); 841 var o = new api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse();
642 buildCounterListInspectFindingsResponse++; 842 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++;
643 if (buildCounterListInspectFindingsResponse < 3) { 843 if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) {
644 o.nextPageToken = "foo"; 844 o.nextPageToken = "foo";
645 o.result = buildInspectResult(); 845 o.result = buildGooglePrivacyDlpV2beta1InspectResult();
646 } 846 }
647 buildCounterListInspectFindingsResponse--; 847 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--;
648 return o; 848 return o;
649 } 849 }
650 850
651 checkListInspectFindingsResponse(api.ListInspectFindingsResponse o) { 851 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(api.GooglePrivacyDlpV2be ta1ListInspectFindingsResponse o) {
652 buildCounterListInspectFindingsResponse++; 852 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++;
653 if (buildCounterListInspectFindingsResponse < 3) { 853 if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) {
654 unittest.expect(o.nextPageToken, unittest.equals('foo')); 854 unittest.expect(o.nextPageToken, unittest.equals('foo'));
655 checkInspectResult(o.result); 855 checkGooglePrivacyDlpV2beta1InspectResult(o.result);
656 } 856 }
657 buildCounterListInspectFindingsResponse--; 857 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--;
658 } 858 }
659 859
660 buildUnnamed3177() { 860 buildUnnamed3299() {
661 var o = new core.List<api.Operation>(); 861 var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>();
662 o.add(buildOperation()); 862 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription());
663 o.add(buildOperation()); 863 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription());
664 return o; 864 return o;
665 } 865 }
666 866
667 checkUnnamed3177(core.List<api.Operation> o) { 867 checkUnnamed3299(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) {
668 unittest.expect(o, unittest.hasLength(2)); 868 unittest.expect(o, unittest.hasLength(2));
669 checkOperation(o[0]); 869 checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]);
670 checkOperation(o[1]); 870 checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]);
671 } 871 }
672 872
673 core.int buildCounterListOperationsResponse = 0; 873 core.int buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse = 0;
674 buildListOperationsResponse() { 874 buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse() {
675 var o = new api.ListOperationsResponse(); 875 var o = new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse();
676 buildCounterListOperationsResponse++; 876 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++;
677 if (buildCounterListOperationsResponse < 3) { 877 if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) {
678 o.nextPageToken = "foo"; 878 o.categories = buildUnnamed3299();
679 o.operations = buildUnnamed3177(); 879 }
680 } 880 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--;
681 buildCounterListOperationsResponse--; 881 return o;
682 return o; 882 }
683 } 883
684 884 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(api.GooglePrivacyDlpV2bet a1ListRootCategoriesResponse o) {
685 checkListOperationsResponse(api.ListOperationsResponse o) { 885 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++;
686 buildCounterListOperationsResponse++; 886 if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) {
687 if (buildCounterListOperationsResponse < 3) { 887 checkUnnamed3299(o.categories);
688 unittest.expect(o.nextPageToken, unittest.equals('foo')); 888 }
689 checkUnnamed3177(o.operations); 889 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--;
690 } 890 }
691 buildCounterListOperationsResponse--; 891
692 } 892 buildUnnamed3300() {
693 893 var o = new core.List<api.GooglePrivacyDlpV2beta1ImageLocation>();
694 buildUnnamed3178() { 894 o.add(buildGooglePrivacyDlpV2beta1ImageLocation());
695 var o = new core.List<api.CategoryDescription>(); 895 o.add(buildGooglePrivacyDlpV2beta1ImageLocation());
696 o.add(buildCategoryDescription()); 896 return o;
697 o.add(buildCategoryDescription()); 897 }
698 return o; 898
699 } 899 checkUnnamed3300(core.List<api.GooglePrivacyDlpV2beta1ImageLocation> o) {
700 900 unittest.expect(o, unittest.hasLength(2));
701 checkUnnamed3178(core.List<api.CategoryDescription> o) { 901 checkGooglePrivacyDlpV2beta1ImageLocation(o[0]);
702 unittest.expect(o, unittest.hasLength(2)); 902 checkGooglePrivacyDlpV2beta1ImageLocation(o[1]);
703 checkCategoryDescription(o[0]); 903 }
704 checkCategoryDescription(o[1]); 904
705 } 905 core.int buildCounterGooglePrivacyDlpV2beta1Location = 0;
706 906 buildGooglePrivacyDlpV2beta1Location() {
707 core.int buildCounterListRootCategoriesResponse = 0; 907 var o = new api.GooglePrivacyDlpV2beta1Location();
708 buildListRootCategoriesResponse() { 908 buildCounterGooglePrivacyDlpV2beta1Location++;
709 var o = new api.ListRootCategoriesResponse(); 909 if (buildCounterGooglePrivacyDlpV2beta1Location < 3) {
710 buildCounterListRootCategoriesResponse++; 910 o.byteRange = buildGooglePrivacyDlpV2beta1Range();
711 if (buildCounterListRootCategoriesResponse < 3) { 911 o.codepointRange = buildGooglePrivacyDlpV2beta1Range();
712 o.categories = buildUnnamed3178(); 912 o.fieldId = buildGooglePrivacyDlpV2beta1FieldId();
713 } 913 o.imageBoxes = buildUnnamed3300();
714 buildCounterListRootCategoriesResponse--; 914 o.recordKey = buildGooglePrivacyDlpV2beta1RecordKey();
715 return o; 915 }
716 } 916 buildCounterGooglePrivacyDlpV2beta1Location--;
717 917 return o;
718 checkListRootCategoriesResponse(api.ListRootCategoriesResponse o) { 918 }
719 buildCounterListRootCategoriesResponse++; 919
720 if (buildCounterListRootCategoriesResponse < 3) { 920 checkGooglePrivacyDlpV2beta1Location(api.GooglePrivacyDlpV2beta1Location o) {
721 checkUnnamed3178(o.categories); 921 buildCounterGooglePrivacyDlpV2beta1Location++;
722 } 922 if (buildCounterGooglePrivacyDlpV2beta1Location < 3) {
723 buildCounterListRootCategoriesResponse--; 923 checkGooglePrivacyDlpV2beta1Range(o.byteRange);
724 } 924 checkGooglePrivacyDlpV2beta1Range(o.codepointRange);
725 925 checkGooglePrivacyDlpV2beta1FieldId(o.fieldId);
726 buildUnnamed3179() { 926 checkUnnamed3300(o.imageBoxes);
727 var o = new core.List<api.ImageLocation>(); 927 checkGooglePrivacyDlpV2beta1RecordKey(o.recordKey);
728 o.add(buildImageLocation()); 928 }
729 o.add(buildImageLocation()); 929 buildCounterGooglePrivacyDlpV2beta1Location--;
730 return o; 930 }
731 } 931
732 932 core.int buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig = 0;
733 checkUnnamed3179(core.List<api.ImageLocation> o) { 933 buildGooglePrivacyDlpV2beta1OutputStorageConfig() {
734 unittest.expect(o, unittest.hasLength(2)); 934 var o = new api.GooglePrivacyDlpV2beta1OutputStorageConfig();
735 checkImageLocation(o[0]); 935 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig++;
736 checkImageLocation(o[1]); 936 if (buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig < 3) {
737 } 937 o.storagePath = buildGooglePrivacyDlpV2beta1CloudStoragePath();
738 938 }
739 core.int buildCounterLocation = 0; 939 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig--;
740 buildLocation() { 940 return o;
741 var o = new api.Location(); 941 }
742 buildCounterLocation++; 942
743 if (buildCounterLocation < 3) { 943 checkGooglePrivacyDlpV2beta1OutputStorageConfig(api.GooglePrivacyDlpV2beta1Outpu tStorageConfig o) {
744 o.byteRange = buildRange(); 944 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig++;
745 o.codepointRange = buildRange(); 945 if (buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig < 3) {
746 o.fieldId = buildFieldId(); 946 checkGooglePrivacyDlpV2beta1CloudStoragePath(o.storagePath);
747 o.imageBoxes = buildUnnamed3179(); 947 }
748 o.recordKey = buildRecordKey(); 948 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig--;
749 } 949 }
750 buildCounterLocation--; 950
751 return o; 951 core.int buildCounterGooglePrivacyDlpV2beta1PartitionId = 0;
752 } 952 buildGooglePrivacyDlpV2beta1PartitionId() {
753 953 var o = new api.GooglePrivacyDlpV2beta1PartitionId();
754 checkLocation(api.Location o) { 954 buildCounterGooglePrivacyDlpV2beta1PartitionId++;
755 buildCounterLocation++; 955 if (buildCounterGooglePrivacyDlpV2beta1PartitionId < 3) {
756 if (buildCounterLocation < 3) { 956 o.namespaceId = "foo";
757 checkRange(o.byteRange); 957 o.projectId = "foo";
758 checkRange(o.codepointRange); 958 }
759 checkFieldId(o.fieldId); 959 buildCounterGooglePrivacyDlpV2beta1PartitionId--;
760 checkUnnamed3179(o.imageBoxes); 960 return o;
761 checkRecordKey(o.recordKey); 961 }
762 } 962
763 buildCounterLocation--; 963 checkGooglePrivacyDlpV2beta1PartitionId(api.GooglePrivacyDlpV2beta1PartitionId o ) {
764 } 964 buildCounterGooglePrivacyDlpV2beta1PartitionId++;
765 965 if (buildCounterGooglePrivacyDlpV2beta1PartitionId < 3) {
766 buildUnnamed3180() { 966 unittest.expect(o.namespaceId, unittest.equals('foo'));
967 unittest.expect(o.projectId, unittest.equals('foo'));
968 }
969 buildCounterGooglePrivacyDlpV2beta1PartitionId--;
970 }
971
972 core.int buildCounterGooglePrivacyDlpV2beta1PathElement = 0;
973 buildGooglePrivacyDlpV2beta1PathElement() {
974 var o = new api.GooglePrivacyDlpV2beta1PathElement();
975 buildCounterGooglePrivacyDlpV2beta1PathElement++;
976 if (buildCounterGooglePrivacyDlpV2beta1PathElement < 3) {
977 o.id = "foo";
978 o.kind = "foo";
979 o.name = "foo";
980 }
981 buildCounterGooglePrivacyDlpV2beta1PathElement--;
982 return o;
983 }
984
985 checkGooglePrivacyDlpV2beta1PathElement(api.GooglePrivacyDlpV2beta1PathElement o ) {
986 buildCounterGooglePrivacyDlpV2beta1PathElement++;
987 if (buildCounterGooglePrivacyDlpV2beta1PathElement < 3) {
988 unittest.expect(o.id, unittest.equals('foo'));
989 unittest.expect(o.kind, unittest.equals('foo'));
990 unittest.expect(o.name, unittest.equals('foo'));
991 }
992 buildCounterGooglePrivacyDlpV2beta1PathElement--;
993 }
994
995 core.int buildCounterGooglePrivacyDlpV2beta1Projection = 0;
996 buildGooglePrivacyDlpV2beta1Projection() {
997 var o = new api.GooglePrivacyDlpV2beta1Projection();
998 buildCounterGooglePrivacyDlpV2beta1Projection++;
999 if (buildCounterGooglePrivacyDlpV2beta1Projection < 3) {
1000 o.property = buildGooglePrivacyDlpV2beta1PropertyReference();
1001 }
1002 buildCounterGooglePrivacyDlpV2beta1Projection--;
1003 return o;
1004 }
1005
1006 checkGooglePrivacyDlpV2beta1Projection(api.GooglePrivacyDlpV2beta1Projection o) {
1007 buildCounterGooglePrivacyDlpV2beta1Projection++;
1008 if (buildCounterGooglePrivacyDlpV2beta1Projection < 3) {
1009 checkGooglePrivacyDlpV2beta1PropertyReference(o.property);
1010 }
1011 buildCounterGooglePrivacyDlpV2beta1Projection--;
1012 }
1013
1014 core.int buildCounterGooglePrivacyDlpV2beta1PropertyReference = 0;
1015 buildGooglePrivacyDlpV2beta1PropertyReference() {
1016 var o = new api.GooglePrivacyDlpV2beta1PropertyReference();
1017 buildCounterGooglePrivacyDlpV2beta1PropertyReference++;
1018 if (buildCounterGooglePrivacyDlpV2beta1PropertyReference < 3) {
1019 o.name = "foo";
1020 }
1021 buildCounterGooglePrivacyDlpV2beta1PropertyReference--;
1022 return o;
1023 }
1024
1025 checkGooglePrivacyDlpV2beta1PropertyReference(api.GooglePrivacyDlpV2beta1Propert yReference o) {
1026 buildCounterGooglePrivacyDlpV2beta1PropertyReference++;
1027 if (buildCounterGooglePrivacyDlpV2beta1PropertyReference < 3) {
1028 unittest.expect(o.name, unittest.equals('foo'));
1029 }
1030 buildCounterGooglePrivacyDlpV2beta1PropertyReference--;
1031 }
1032
1033 core.int buildCounterGooglePrivacyDlpV2beta1Range = 0;
1034 buildGooglePrivacyDlpV2beta1Range() {
1035 var o = new api.GooglePrivacyDlpV2beta1Range();
1036 buildCounterGooglePrivacyDlpV2beta1Range++;
1037 if (buildCounterGooglePrivacyDlpV2beta1Range < 3) {
1038 o.end = "foo";
1039 o.start = "foo";
1040 }
1041 buildCounterGooglePrivacyDlpV2beta1Range--;
1042 return o;
1043 }
1044
1045 checkGooglePrivacyDlpV2beta1Range(api.GooglePrivacyDlpV2beta1Range o) {
1046 buildCounterGooglePrivacyDlpV2beta1Range++;
1047 if (buildCounterGooglePrivacyDlpV2beta1Range < 3) {
1048 unittest.expect(o.end, unittest.equals('foo'));
1049 unittest.expect(o.start, unittest.equals('foo'));
1050 }
1051 buildCounterGooglePrivacyDlpV2beta1Range--;
1052 }
1053
1054 core.int buildCounterGooglePrivacyDlpV2beta1RecordKey = 0;
1055 buildGooglePrivacyDlpV2beta1RecordKey() {
1056 var o = new api.GooglePrivacyDlpV2beta1RecordKey();
1057 buildCounterGooglePrivacyDlpV2beta1RecordKey++;
1058 if (buildCounterGooglePrivacyDlpV2beta1RecordKey < 3) {
1059 o.cloudStorageKey = buildGooglePrivacyDlpV2beta1CloudStorageKey();
1060 o.datastoreKey = buildGooglePrivacyDlpV2beta1DatastoreKey();
1061 }
1062 buildCounterGooglePrivacyDlpV2beta1RecordKey--;
1063 return o;
1064 }
1065
1066 checkGooglePrivacyDlpV2beta1RecordKey(api.GooglePrivacyDlpV2beta1RecordKey o) {
1067 buildCounterGooglePrivacyDlpV2beta1RecordKey++;
1068 if (buildCounterGooglePrivacyDlpV2beta1RecordKey < 3) {
1069 checkGooglePrivacyDlpV2beta1CloudStorageKey(o.cloudStorageKey);
1070 checkGooglePrivacyDlpV2beta1DatastoreKey(o.datastoreKey);
1071 }
1072 buildCounterGooglePrivacyDlpV2beta1RecordKey--;
1073 }
1074
1075 buildUnnamed3301() {
1076 var o = new core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig>();
1077 o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig());
1078 o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig());
1079 return o;
1080 }
1081
1082 checkUnnamed3301(core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig> o) {
1083 unittest.expect(o, unittest.hasLength(2));
1084 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[0]);
1085 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[1]);
1086 }
1087
1088 buildUnnamed3302() {
1089 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>();
1090 o.add(buildGooglePrivacyDlpV2beta1ContentItem());
1091 o.add(buildGooglePrivacyDlpV2beta1ContentItem());
1092 return o;
1093 }
1094
1095 checkUnnamed3302(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) {
1096 unittest.expect(o, unittest.hasLength(2));
1097 checkGooglePrivacyDlpV2beta1ContentItem(o[0]);
1098 checkGooglePrivacyDlpV2beta1ContentItem(o[1]);
1099 }
1100
1101 buildUnnamed3303() {
1102 var o = new core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig>();
1103 o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig());
1104 o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig());
1105 return o;
1106 }
1107
1108 checkUnnamed3303(core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig> o) {
1109 unittest.expect(o, unittest.hasLength(2));
1110 checkGooglePrivacyDlpV2beta1ReplaceConfig(o[0]);
1111 checkGooglePrivacyDlpV2beta1ReplaceConfig(o[1]);
1112 }
1113
1114 core.int buildCounterGooglePrivacyDlpV2beta1RedactContentRequest = 0;
1115 buildGooglePrivacyDlpV2beta1RedactContentRequest() {
1116 var o = new api.GooglePrivacyDlpV2beta1RedactContentRequest();
1117 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++;
1118 if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) {
1119 o.imageRedactionConfigs = buildUnnamed3301();
1120 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig();
1121 o.items = buildUnnamed3302();
1122 o.replaceConfigs = buildUnnamed3303();
1123 }
1124 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--;
1125 return o;
1126 }
1127
1128 checkGooglePrivacyDlpV2beta1RedactContentRequest(api.GooglePrivacyDlpV2beta1Reda ctContentRequest o) {
1129 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++;
1130 if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) {
1131 checkUnnamed3301(o.imageRedactionConfigs);
1132 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig);
1133 checkUnnamed3302(o.items);
1134 checkUnnamed3303(o.replaceConfigs);
1135 }
1136 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--;
1137 }
1138
1139 buildUnnamed3304() {
1140 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>();
1141 o.add(buildGooglePrivacyDlpV2beta1ContentItem());
1142 o.add(buildGooglePrivacyDlpV2beta1ContentItem());
1143 return o;
1144 }
1145
1146 checkUnnamed3304(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) {
1147 unittest.expect(o, unittest.hasLength(2));
1148 checkGooglePrivacyDlpV2beta1ContentItem(o[0]);
1149 checkGooglePrivacyDlpV2beta1ContentItem(o[1]);
1150 }
1151
1152 core.int buildCounterGooglePrivacyDlpV2beta1RedactContentResponse = 0;
1153 buildGooglePrivacyDlpV2beta1RedactContentResponse() {
1154 var o = new api.GooglePrivacyDlpV2beta1RedactContentResponse();
1155 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++;
1156 if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) {
1157 o.items = buildUnnamed3304();
1158 }
1159 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--;
1160 return o;
1161 }
1162
1163 checkGooglePrivacyDlpV2beta1RedactContentResponse(api.GooglePrivacyDlpV2beta1Red actContentResponse o) {
1164 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++;
1165 if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) {
1166 checkUnnamed3304(o.items);
1167 }
1168 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--;
1169 }
1170
1171 core.int buildCounterGooglePrivacyDlpV2beta1ReplaceConfig = 0;
1172 buildGooglePrivacyDlpV2beta1ReplaceConfig() {
1173 var o = new api.GooglePrivacyDlpV2beta1ReplaceConfig();
1174 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig++;
1175 if (buildCounterGooglePrivacyDlpV2beta1ReplaceConfig < 3) {
1176 o.infoType = buildGooglePrivacyDlpV2beta1InfoType();
1177 o.replaceWith = "foo";
1178 }
1179 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig--;
1180 return o;
1181 }
1182
1183 checkGooglePrivacyDlpV2beta1ReplaceConfig(api.GooglePrivacyDlpV2beta1ReplaceConf ig o) {
1184 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig++;
1185 if (buildCounterGooglePrivacyDlpV2beta1ReplaceConfig < 3) {
1186 checkGooglePrivacyDlpV2beta1InfoType(o.infoType);
1187 unittest.expect(o.replaceWith, unittest.equals('foo'));
1188 }
1189 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig--;
1190 }
1191
1192 core.int buildCounterGooglePrivacyDlpV2beta1StorageConfig = 0;
1193 buildGooglePrivacyDlpV2beta1StorageConfig() {
1194 var o = new api.GooglePrivacyDlpV2beta1StorageConfig();
1195 buildCounterGooglePrivacyDlpV2beta1StorageConfig++;
1196 if (buildCounterGooglePrivacyDlpV2beta1StorageConfig < 3) {
1197 o.cloudStorageOptions = buildGooglePrivacyDlpV2beta1CloudStorageOptions();
1198 o.datastoreOptions = buildGooglePrivacyDlpV2beta1DatastoreOptions();
1199 }
1200 buildCounterGooglePrivacyDlpV2beta1StorageConfig--;
1201 return o;
1202 }
1203
1204 checkGooglePrivacyDlpV2beta1StorageConfig(api.GooglePrivacyDlpV2beta1StorageConf ig o) {
1205 buildCounterGooglePrivacyDlpV2beta1StorageConfig++;
1206 if (buildCounterGooglePrivacyDlpV2beta1StorageConfig < 3) {
1207 checkGooglePrivacyDlpV2beta1CloudStorageOptions(o.cloudStorageOptions);
1208 checkGooglePrivacyDlpV2beta1DatastoreOptions(o.datastoreOptions);
1209 }
1210 buildCounterGooglePrivacyDlpV2beta1StorageConfig--;
1211 }
1212
1213 core.int buildCounterGoogleProtobufEmpty = 0;
1214 buildGoogleProtobufEmpty() {
1215 var o = new api.GoogleProtobufEmpty();
1216 buildCounterGoogleProtobufEmpty++;
1217 if (buildCounterGoogleProtobufEmpty < 3) {
1218 }
1219 buildCounterGoogleProtobufEmpty--;
1220 return o;
1221 }
1222
1223 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) {
1224 buildCounterGoogleProtobufEmpty++;
1225 if (buildCounterGoogleProtobufEmpty < 3) {
1226 }
1227 buildCounterGoogleProtobufEmpty--;
1228 }
1229
1230 buildUnnamed3305() {
767 var o = new core.Map<core.String, core.Object>(); 1231 var o = new core.Map<core.String, core.Object>();
768 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1232 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
769 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1233 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
770 return o; 1234 return o;
771 } 1235 }
772 1236
773 checkUnnamed3180(core.Map<core.String, core.Object> o) { 1237 checkUnnamed3305(core.Map<core.String, core.Object> o) {
774 unittest.expect(o, unittest.hasLength(2));
775 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'));
776 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'));
777 }
778
779 buildUnnamed3181() {
780 var o = new core.Map<core.String, core.Object>();
781 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
782 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
783 return o;
784 }
785
786 checkUnnamed3181(core.Map<core.String, core.Object> o) {
787 unittest.expect(o, unittest.hasLength(2));
788 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'));
789 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'));
790 }
791
792 core.int buildCounterOperation = 0;
793 buildOperation() {
794 var o = new api.Operation();
795 buildCounterOperation++;
796 if (buildCounterOperation < 3) {
797 o.done = true;
798 o.error = buildStatus();
799 o.metadata = buildUnnamed3180();
800 o.name = "foo";
801 o.response = buildUnnamed3181();
802 }
803 buildCounterOperation--;
804 return o;
805 }
806
807 checkOperation(api.Operation o) {
808 buildCounterOperation++;
809 if (buildCounterOperation < 3) {
810 unittest.expect(o.done, unittest.isTrue);
811 checkStatus(o.error);
812 checkUnnamed3180(o.metadata);
813 unittest.expect(o.name, unittest.equals('foo'));
814 checkUnnamed3181(o.response);
815 }
816 buildCounterOperation--;
817 }
818
819 core.int buildCounterOutputStorageConfig = 0;
820 buildOutputStorageConfig() {
821 var o = new api.OutputStorageConfig();
822 buildCounterOutputStorageConfig++;
823 if (buildCounterOutputStorageConfig < 3) {
824 o.storagePath = buildCloudStoragePath();
825 }
826 buildCounterOutputStorageConfig--;
827 return o;
828 }
829
830 checkOutputStorageConfig(api.OutputStorageConfig o) {
831 buildCounterOutputStorageConfig++;
832 if (buildCounterOutputStorageConfig < 3) {
833 checkCloudStoragePath(o.storagePath);
834 }
835 buildCounterOutputStorageConfig--;
836 }
837
838 core.int buildCounterPartitionId = 0;
839 buildPartitionId() {
840 var o = new api.PartitionId();
841 buildCounterPartitionId++;
842 if (buildCounterPartitionId < 3) {
843 o.namespaceId = "foo";
844 o.projectId = "foo";
845 }
846 buildCounterPartitionId--;
847 return o;
848 }
849
850 checkPartitionId(api.PartitionId o) {
851 buildCounterPartitionId++;
852 if (buildCounterPartitionId < 3) {
853 unittest.expect(o.namespaceId, unittest.equals('foo'));
854 unittest.expect(o.projectId, unittest.equals('foo'));
855 }
856 buildCounterPartitionId--;
857 }
858
859 core.int buildCounterPathElement = 0;
860 buildPathElement() {
861 var o = new api.PathElement();
862 buildCounterPathElement++;
863 if (buildCounterPathElement < 3) {
864 o.id = "foo";
865 o.kind = "foo";
866 o.name = "foo";
867 }
868 buildCounterPathElement--;
869 return o;
870 }
871
872 checkPathElement(api.PathElement o) {
873 buildCounterPathElement++;
874 if (buildCounterPathElement < 3) {
875 unittest.expect(o.id, unittest.equals('foo'));
876 unittest.expect(o.kind, unittest.equals('foo'));
877 unittest.expect(o.name, unittest.equals('foo'));
878 }
879 buildCounterPathElement--;
880 }
881
882 core.int buildCounterProjection = 0;
883 buildProjection() {
884 var o = new api.Projection();
885 buildCounterProjection++;
886 if (buildCounterProjection < 3) {
887 o.property = buildPropertyReference();
888 }
889 buildCounterProjection--;
890 return o;
891 }
892
893 checkProjection(api.Projection o) {
894 buildCounterProjection++;
895 if (buildCounterProjection < 3) {
896 checkPropertyReference(o.property);
897 }
898 buildCounterProjection--;
899 }
900
901 core.int buildCounterPropertyReference = 0;
902 buildPropertyReference() {
903 var o = new api.PropertyReference();
904 buildCounterPropertyReference++;
905 if (buildCounterPropertyReference < 3) {
906 o.name = "foo";
907 }
908 buildCounterPropertyReference--;
909 return o;
910 }
911
912 checkPropertyReference(api.PropertyReference o) {
913 buildCounterPropertyReference++;
914 if (buildCounterPropertyReference < 3) {
915 unittest.expect(o.name, unittest.equals('foo'));
916 }
917 buildCounterPropertyReference--;
918 }
919
920 core.int buildCounterRange = 0;
921 buildRange() {
922 var o = new api.Range();
923 buildCounterRange++;
924 if (buildCounterRange < 3) {
925 o.end = "foo";
926 o.start = "foo";
927 }
928 buildCounterRange--;
929 return o;
930 }
931
932 checkRange(api.Range o) {
933 buildCounterRange++;
934 if (buildCounterRange < 3) {
935 unittest.expect(o.end, unittest.equals('foo'));
936 unittest.expect(o.start, unittest.equals('foo'));
937 }
938 buildCounterRange--;
939 }
940
941 core.int buildCounterRecordKey = 0;
942 buildRecordKey() {
943 var o = new api.RecordKey();
944 buildCounterRecordKey++;
945 if (buildCounterRecordKey < 3) {
946 o.cloudStorageKey = buildCloudStorageKey();
947 o.datastoreKey = buildDatastoreKey();
948 }
949 buildCounterRecordKey--;
950 return o;
951 }
952
953 checkRecordKey(api.RecordKey o) {
954 buildCounterRecordKey++;
955 if (buildCounterRecordKey < 3) {
956 checkCloudStorageKey(o.cloudStorageKey);
957 checkDatastoreKey(o.datastoreKey);
958 }
959 buildCounterRecordKey--;
960 }
961
962 buildUnnamed3182() {
963 var o = new core.List<api.ContentItem>();
964 o.add(buildContentItem());
965 o.add(buildContentItem());
966 return o;
967 }
968
969 checkUnnamed3182(core.List<api.ContentItem> o) {
970 unittest.expect(o, unittest.hasLength(2));
971 checkContentItem(o[0]);
972 checkContentItem(o[1]);
973 }
974
975 buildUnnamed3183() {
976 var o = new core.List<api.ReplaceConfig>();
977 o.add(buildReplaceConfig());
978 o.add(buildReplaceConfig());
979 return o;
980 }
981
982 checkUnnamed3183(core.List<api.ReplaceConfig> o) {
983 unittest.expect(o, unittest.hasLength(2));
984 checkReplaceConfig(o[0]);
985 checkReplaceConfig(o[1]);
986 }
987
988 core.int buildCounterRedactContentRequest = 0;
989 buildRedactContentRequest() {
990 var o = new api.RedactContentRequest();
991 buildCounterRedactContentRequest++;
992 if (buildCounterRedactContentRequest < 3) {
993 o.inspectConfig = buildInspectConfig();
994 o.items = buildUnnamed3182();
995 o.replaceConfigs = buildUnnamed3183();
996 }
997 buildCounterRedactContentRequest--;
998 return o;
999 }
1000
1001 checkRedactContentRequest(api.RedactContentRequest o) {
1002 buildCounterRedactContentRequest++;
1003 if (buildCounterRedactContentRequest < 3) {
1004 checkInspectConfig(o.inspectConfig);
1005 checkUnnamed3182(o.items);
1006 checkUnnamed3183(o.replaceConfigs);
1007 }
1008 buildCounterRedactContentRequest--;
1009 }
1010
1011 buildUnnamed3184() {
1012 var o = new core.List<api.ContentItem>();
1013 o.add(buildContentItem());
1014 o.add(buildContentItem());
1015 return o;
1016 }
1017
1018 checkUnnamed3184(core.List<api.ContentItem> o) {
1019 unittest.expect(o, unittest.hasLength(2));
1020 checkContentItem(o[0]);
1021 checkContentItem(o[1]);
1022 }
1023
1024 core.int buildCounterRedactContentResponse = 0;
1025 buildRedactContentResponse() {
1026 var o = new api.RedactContentResponse();
1027 buildCounterRedactContentResponse++;
1028 if (buildCounterRedactContentResponse < 3) {
1029 o.items = buildUnnamed3184();
1030 }
1031 buildCounterRedactContentResponse--;
1032 return o;
1033 }
1034
1035 checkRedactContentResponse(api.RedactContentResponse o) {
1036 buildCounterRedactContentResponse++;
1037 if (buildCounterRedactContentResponse < 3) {
1038 checkUnnamed3184(o.items);
1039 }
1040 buildCounterRedactContentResponse--;
1041 }
1042
1043 core.int buildCounterReplaceConfig = 0;
1044 buildReplaceConfig() {
1045 var o = new api.ReplaceConfig();
1046 buildCounterReplaceConfig++;
1047 if (buildCounterReplaceConfig < 3) {
1048 o.infoType = buildInfoType();
1049 o.replaceWith = "foo";
1050 }
1051 buildCounterReplaceConfig--;
1052 return o;
1053 }
1054
1055 checkReplaceConfig(api.ReplaceConfig o) {
1056 buildCounterReplaceConfig++;
1057 if (buildCounterReplaceConfig < 3) {
1058 checkInfoType(o.infoType);
1059 unittest.expect(o.replaceWith, unittest.equals('foo'));
1060 }
1061 buildCounterReplaceConfig--;
1062 }
1063
1064 buildUnnamed3185() {
1065 var o = new core.Map<core.String, core.Object>();
1066 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1067 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1068 return o;
1069 }
1070
1071 checkUnnamed3185(core.Map<core.String, core.Object> o) {
1072 unittest.expect(o, unittest.hasLength(2)); 1238 unittest.expect(o, unittest.hasLength(2));
1073 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')); 1239 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'));
1074 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')); 1240 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'));
1075 } 1241 }
1076 1242
1077 buildUnnamed3186() { 1243 buildUnnamed3306() {
1078 var o = new core.List<core.Map<core.String, core.Object>>(); 1244 var o = new core.List<core.Map<core.String, core.Object>>();
1079 o.add(buildUnnamed3185()); 1245 o.add(buildUnnamed3305());
1080 o.add(buildUnnamed3185()); 1246 o.add(buildUnnamed3305());
1081 return o; 1247 return o;
1082 } 1248 }
1083 1249
1084 checkUnnamed3186(core.List<core.Map<core.String, core.Object>> o) { 1250 checkUnnamed3306(core.List<core.Map<core.String, core.Object>> o) {
1085 unittest.expect(o, unittest.hasLength(2)); 1251 unittest.expect(o, unittest.hasLength(2));
1086 checkUnnamed3185(o[0]); 1252 checkUnnamed3305(o[0]);
1087 checkUnnamed3185(o[1]); 1253 checkUnnamed3305(o[1]);
1088 } 1254 }
1089 1255
1090 core.int buildCounterStatus = 0; 1256 core.int buildCounterGoogleRpcStatus = 0;
1091 buildStatus() { 1257 buildGoogleRpcStatus() {
1092 var o = new api.Status(); 1258 var o = new api.GoogleRpcStatus();
1093 buildCounterStatus++; 1259 buildCounterGoogleRpcStatus++;
1094 if (buildCounterStatus < 3) { 1260 if (buildCounterGoogleRpcStatus < 3) {
1095 o.code = 42; 1261 o.code = 42;
1096 o.details = buildUnnamed3186(); 1262 o.details = buildUnnamed3306();
1097 o.message = "foo"; 1263 o.message = "foo";
1098 } 1264 }
1099 buildCounterStatus--; 1265 buildCounterGoogleRpcStatus--;
1100 return o; 1266 return o;
1101 } 1267 }
1102 1268
1103 checkStatus(api.Status o) { 1269 checkGoogleRpcStatus(api.GoogleRpcStatus o) {
1104 buildCounterStatus++; 1270 buildCounterGoogleRpcStatus++;
1105 if (buildCounterStatus < 3) { 1271 if (buildCounterGoogleRpcStatus < 3) {
1106 unittest.expect(o.code, unittest.equals(42)); 1272 unittest.expect(o.code, unittest.equals(42));
1107 checkUnnamed3186(o.details); 1273 checkUnnamed3306(o.details);
1108 unittest.expect(o.message, unittest.equals('foo')); 1274 unittest.expect(o.message, unittest.equals('foo'));
1109 } 1275 }
1110 buildCounterStatus--; 1276 buildCounterGoogleRpcStatus--;
1111 }
1112
1113 core.int buildCounterStorageConfig = 0;
1114 buildStorageConfig() {
1115 var o = new api.StorageConfig();
1116 buildCounterStorageConfig++;
1117 if (buildCounterStorageConfig < 3) {
1118 o.cloudStorageOptions = buildCloudStorageOptions();
1119 o.datastoreOptions = buildDatastoreOptions();
1120 }
1121 buildCounterStorageConfig--;
1122 return o;
1123 }
1124
1125 checkStorageConfig(api.StorageConfig o) {
1126 buildCounterStorageConfig++;
1127 if (buildCounterStorageConfig < 3) {
1128 checkCloudStorageOptions(o.cloudStorageOptions);
1129 checkDatastoreOptions(o.datastoreOptions);
1130 }
1131 buildCounterStorageConfig--;
1132 } 1277 }
1133 1278
1134 1279
1135 main() { 1280 main() {
1136 unittest.group("obj-schema-CancelOperationRequest", () { 1281 unittest.group("obj-schema-GoogleLongrunningCancelOperationRequest", () {
1137 unittest.test("to-json--from-json", () { 1282 unittest.test("to-json--from-json", () {
1138 var o = buildCancelOperationRequest(); 1283 var o = buildGoogleLongrunningCancelOperationRequest();
1139 var od = new api.CancelOperationRequest.fromJson(o.toJson()); 1284 var od = new api.GoogleLongrunningCancelOperationRequest.fromJson(o.toJson ());
1140 checkCancelOperationRequest(od); 1285 checkGoogleLongrunningCancelOperationRequest(od);
1141 }); 1286 });
1142 }); 1287 });
1143 1288
1144 1289
1145 unittest.group("obj-schema-CategoryDescription", () { 1290 unittest.group("obj-schema-GoogleLongrunningListOperationsResponse", () {
1146 unittest.test("to-json--from-json", () { 1291 unittest.test("to-json--from-json", () {
1147 var o = buildCategoryDescription(); 1292 var o = buildGoogleLongrunningListOperationsResponse();
1148 var od = new api.CategoryDescription.fromJson(o.toJson()); 1293 var od = new api.GoogleLongrunningListOperationsResponse.fromJson(o.toJson ());
1149 checkCategoryDescription(od); 1294 checkGoogleLongrunningListOperationsResponse(od);
1150 }); 1295 });
1151 }); 1296 });
1152 1297
1153 1298
1154 unittest.group("obj-schema-CloudStorageKey", () { 1299 unittest.group("obj-schema-GoogleLongrunningOperation", () {
1155 unittest.test("to-json--from-json", () { 1300 unittest.test("to-json--from-json", () {
1156 var o = buildCloudStorageKey(); 1301 var o = buildGoogleLongrunningOperation();
1157 var od = new api.CloudStorageKey.fromJson(o.toJson()); 1302 var od = new api.GoogleLongrunningOperation.fromJson(o.toJson());
1158 checkCloudStorageKey(od); 1303 checkGoogleLongrunningOperation(od);
1159 }); 1304 });
1160 }); 1305 });
1161 1306
1162 1307
1163 unittest.group("obj-schema-CloudStorageOptions", () { 1308 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CategoryDescription", () {
1164 unittest.test("to-json--from-json", () { 1309 unittest.test("to-json--from-json", () {
1165 var o = buildCloudStorageOptions(); 1310 var o = buildGooglePrivacyDlpV2beta1CategoryDescription();
1166 var od = new api.CloudStorageOptions.fromJson(o.toJson()); 1311 var od = new api.GooglePrivacyDlpV2beta1CategoryDescription.fromJson(o.toJ son());
1167 checkCloudStorageOptions(od); 1312 checkGooglePrivacyDlpV2beta1CategoryDescription(od);
1168 }); 1313 });
1169 }); 1314 });
1170 1315
1171 1316
1172 unittest.group("obj-schema-CloudStoragePath", () { 1317 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStorageKey", () {
1173 unittest.test("to-json--from-json", () { 1318 unittest.test("to-json--from-json", () {
1174 var o = buildCloudStoragePath(); 1319 var o = buildGooglePrivacyDlpV2beta1CloudStorageKey();
1175 var od = new api.CloudStoragePath.fromJson(o.toJson()); 1320 var od = new api.GooglePrivacyDlpV2beta1CloudStorageKey.fromJson(o.toJson( ));
1176 checkCloudStoragePath(od); 1321 checkGooglePrivacyDlpV2beta1CloudStorageKey(od);
1177 }); 1322 });
1178 }); 1323 });
1179 1324
1180 1325
1181 unittest.group("obj-schema-ContentItem", () { 1326 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStorageOptions", () {
1182 unittest.test("to-json--from-json", () { 1327 unittest.test("to-json--from-json", () {
1183 var o = buildContentItem(); 1328 var o = buildGooglePrivacyDlpV2beta1CloudStorageOptions();
1184 var od = new api.ContentItem.fromJson(o.toJson()); 1329 var od = new api.GooglePrivacyDlpV2beta1CloudStorageOptions.fromJson(o.toJ son());
1185 checkContentItem(od); 1330 checkGooglePrivacyDlpV2beta1CloudStorageOptions(od);
1186 }); 1331 });
1187 }); 1332 });
1188 1333
1189 1334
1190 unittest.group("obj-schema-CreateInspectOperationRequest", () { 1335 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStoragePath", () {
1191 unittest.test("to-json--from-json", () { 1336 unittest.test("to-json--from-json", () {
1192 var o = buildCreateInspectOperationRequest(); 1337 var o = buildGooglePrivacyDlpV2beta1CloudStoragePath();
1193 var od = new api.CreateInspectOperationRequest.fromJson(o.toJson()); 1338 var od = new api.GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(o.toJson ());
1194 checkCreateInspectOperationRequest(od); 1339 checkGooglePrivacyDlpV2beta1CloudStoragePath(od);
1195 }); 1340 });
1196 }); 1341 });
1197 1342
1198 1343
1199 unittest.group("obj-schema-DatastoreKey", () { 1344 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Color", () {
1200 unittest.test("to-json--from-json", () { 1345 unittest.test("to-json--from-json", () {
1201 var o = buildDatastoreKey(); 1346 var o = buildGooglePrivacyDlpV2beta1Color();
1202 var od = new api.DatastoreKey.fromJson(o.toJson()); 1347 var od = new api.GooglePrivacyDlpV2beta1Color.fromJson(o.toJson());
1203 checkDatastoreKey(od); 1348 checkGooglePrivacyDlpV2beta1Color(od);
1204 }); 1349 });
1205 }); 1350 });
1206 1351
1207 1352
1208 unittest.group("obj-schema-DatastoreOptions", () { 1353 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ContentItem", () {
1209 unittest.test("to-json--from-json", () { 1354 unittest.test("to-json--from-json", () {
1210 var o = buildDatastoreOptions(); 1355 var o = buildGooglePrivacyDlpV2beta1ContentItem();
1211 var od = new api.DatastoreOptions.fromJson(o.toJson()); 1356 var od = new api.GooglePrivacyDlpV2beta1ContentItem.fromJson(o.toJson());
1212 checkDatastoreOptions(od); 1357 checkGooglePrivacyDlpV2beta1ContentItem(od);
1213 }); 1358 });
1214 }); 1359 });
1215 1360
1216 1361
1217 unittest.group("obj-schema-Empty", () { 1362 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CreateInspectOperationReques t", () {
1218 unittest.test("to-json--from-json", () { 1363 unittest.test("to-json--from-json", () {
1219 var o = buildEmpty(); 1364 var o = buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest();
1220 var od = new api.Empty.fromJson(o.toJson()); 1365 var od = new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest.from Json(o.toJson());
1221 checkEmpty(od); 1366 checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(od);
1222 }); 1367 });
1223 }); 1368 });
1224 1369
1225 1370
1226 unittest.group("obj-schema-FieldId", () { 1371 unittest.group("obj-schema-GooglePrivacyDlpV2beta1DatastoreKey", () {
1227 unittest.test("to-json--from-json", () { 1372 unittest.test("to-json--from-json", () {
1228 var o = buildFieldId(); 1373 var o = buildGooglePrivacyDlpV2beta1DatastoreKey();
1229 var od = new api.FieldId.fromJson(o.toJson()); 1374 var od = new api.GooglePrivacyDlpV2beta1DatastoreKey.fromJson(o.toJson());
1230 checkFieldId(od); 1375 checkGooglePrivacyDlpV2beta1DatastoreKey(od);
1231 }); 1376 });
1232 }); 1377 });
1233 1378
1234 1379
1235 unittest.group("obj-schema-FileSet", () { 1380 unittest.group("obj-schema-GooglePrivacyDlpV2beta1DatastoreOptions", () {
1236 unittest.test("to-json--from-json", () { 1381 unittest.test("to-json--from-json", () {
1237 var o = buildFileSet(); 1382 var o = buildGooglePrivacyDlpV2beta1DatastoreOptions();
1238 var od = new api.FileSet.fromJson(o.toJson()); 1383 var od = new api.GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(o.toJson ());
1239 checkFileSet(od); 1384 checkGooglePrivacyDlpV2beta1DatastoreOptions(od);
1240 }); 1385 });
1241 }); 1386 });
1242 1387
1243 1388
1244 unittest.group("obj-schema-Finding", () { 1389 unittest.group("obj-schema-GooglePrivacyDlpV2beta1FieldId", () {
1245 unittest.test("to-json--from-json", () { 1390 unittest.test("to-json--from-json", () {
1246 var o = buildFinding(); 1391 var o = buildGooglePrivacyDlpV2beta1FieldId();
1247 var od = new api.Finding.fromJson(o.toJson()); 1392 var od = new api.GooglePrivacyDlpV2beta1FieldId.fromJson(o.toJson());
1248 checkFinding(od); 1393 checkGooglePrivacyDlpV2beta1FieldId(od);
1249 }); 1394 });
1250 }); 1395 });
1251 1396
1252 1397
1253 unittest.group("obj-schema-ImageLocation", () { 1398 unittest.group("obj-schema-GooglePrivacyDlpV2beta1FileSet", () {
1254 unittest.test("to-json--from-json", () { 1399 unittest.test("to-json--from-json", () {
1255 var o = buildImageLocation(); 1400 var o = buildGooglePrivacyDlpV2beta1FileSet();
1256 var od = new api.ImageLocation.fromJson(o.toJson()); 1401 var od = new api.GooglePrivacyDlpV2beta1FileSet.fromJson(o.toJson());
1257 checkImageLocation(od); 1402 checkGooglePrivacyDlpV2beta1FileSet(od);
1258 }); 1403 });
1259 }); 1404 });
1260 1405
1261 1406
1262 unittest.group("obj-schema-InfoType", () { 1407 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Finding", () {
1263 unittest.test("to-json--from-json", () { 1408 unittest.test("to-json--from-json", () {
1264 var o = buildInfoType(); 1409 var o = buildGooglePrivacyDlpV2beta1Finding();
1265 var od = new api.InfoType.fromJson(o.toJson()); 1410 var od = new api.GooglePrivacyDlpV2beta1Finding.fromJson(o.toJson());
1266 checkInfoType(od); 1411 checkGooglePrivacyDlpV2beta1Finding(od);
1267 }); 1412 });
1268 }); 1413 });
1269 1414
1270 1415
1271 unittest.group("obj-schema-InfoTypeDescription", () { 1416 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ImageLocation", () {
1272 unittest.test("to-json--from-json", () { 1417 unittest.test("to-json--from-json", () {
1273 var o = buildInfoTypeDescription(); 1418 var o = buildGooglePrivacyDlpV2beta1ImageLocation();
1274 var od = new api.InfoTypeDescription.fromJson(o.toJson()); 1419 var od = new api.GooglePrivacyDlpV2beta1ImageLocation.fromJson(o.toJson()) ;
1275 checkInfoTypeDescription(od); 1420 checkGooglePrivacyDlpV2beta1ImageLocation(od);
1276 }); 1421 });
1277 }); 1422 });
1278 1423
1279 1424
1280 unittest.group("obj-schema-InspectConfig", () { 1425 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ImageRedactionConfig", () {
1281 unittest.test("to-json--from-json", () { 1426 unittest.test("to-json--from-json", () {
1282 var o = buildInspectConfig(); 1427 var o = buildGooglePrivacyDlpV2beta1ImageRedactionConfig();
1283 var od = new api.InspectConfig.fromJson(o.toJson()); 1428 var od = new api.GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson(o.to Json());
1284 checkInspectConfig(od); 1429 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(od);
1285 }); 1430 });
1286 }); 1431 });
1287 1432
1288 1433
1289 unittest.group("obj-schema-InspectContentRequest", () { 1434 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoType", () {
1290 unittest.test("to-json--from-json", () { 1435 unittest.test("to-json--from-json", () {
1291 var o = buildInspectContentRequest(); 1436 var o = buildGooglePrivacyDlpV2beta1InfoType();
1292 var od = new api.InspectContentRequest.fromJson(o.toJson()); 1437 var od = new api.GooglePrivacyDlpV2beta1InfoType.fromJson(o.toJson());
1293 checkInspectContentRequest(od); 1438 checkGooglePrivacyDlpV2beta1InfoType(od);
1294 }); 1439 });
1295 }); 1440 });
1296 1441
1297 1442
1298 unittest.group("obj-schema-InspectContentResponse", () { 1443 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeDescription", () {
1299 unittest.test("to-json--from-json", () { 1444 unittest.test("to-json--from-json", () {
1300 var o = buildInspectContentResponse(); 1445 var o = buildGooglePrivacyDlpV2beta1InfoTypeDescription();
1301 var od = new api.InspectContentResponse.fromJson(o.toJson()); 1446 var od = new api.GooglePrivacyDlpV2beta1InfoTypeDescription.fromJson(o.toJ son());
1302 checkInspectContentResponse(od); 1447 checkGooglePrivacyDlpV2beta1InfoTypeDescription(od);
1303 }); 1448 });
1304 }); 1449 });
1305 1450
1306 1451
1307 unittest.group("obj-schema-InspectResult", () { 1452 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeStatistics", () {
1308 unittest.test("to-json--from-json", () { 1453 unittest.test("to-json--from-json", () {
1309 var o = buildInspectResult(); 1454 var o = buildGooglePrivacyDlpV2beta1InfoTypeStatistics();
1310 var od = new api.InspectResult.fromJson(o.toJson()); 1455 var od = new api.GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson(o.toJs on());
1311 checkInspectResult(od); 1456 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(od);
1312 }); 1457 });
1313 }); 1458 });
1314 1459
1315 1460
1316 unittest.group("obj-schema-Key", () { 1461 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectConfig", () {
1317 unittest.test("to-json--from-json", () { 1462 unittest.test("to-json--from-json", () {
1318 var o = buildKey(); 1463 var o = buildGooglePrivacyDlpV2beta1InspectConfig();
1319 var od = new api.Key.fromJson(o.toJson()); 1464 var od = new api.GooglePrivacyDlpV2beta1InspectConfig.fromJson(o.toJson()) ;
1320 checkKey(od); 1465 checkGooglePrivacyDlpV2beta1InspectConfig(od);
1321 }); 1466 });
1322 }); 1467 });
1323 1468
1324 1469
1325 unittest.group("obj-schema-KindExpression", () { 1470 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectContentRequest", () {
1326 unittest.test("to-json--from-json", () { 1471 unittest.test("to-json--from-json", () {
1327 var o = buildKindExpression(); 1472 var o = buildGooglePrivacyDlpV2beta1InspectContentRequest();
1328 var od = new api.KindExpression.fromJson(o.toJson()); 1473 var od = new api.GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(o.t oJson());
1329 checkKindExpression(od); 1474 checkGooglePrivacyDlpV2beta1InspectContentRequest(od);
1330 }); 1475 });
1331 }); 1476 });
1332 1477
1333 1478
1334 unittest.group("obj-schema-ListInfoTypesResponse", () { 1479 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectContentResponse", () {
1335 unittest.test("to-json--from-json", () { 1480 unittest.test("to-json--from-json", () {
1336 var o = buildListInfoTypesResponse(); 1481 var o = buildGooglePrivacyDlpV2beta1InspectContentResponse();
1337 var od = new api.ListInfoTypesResponse.fromJson(o.toJson()); 1482 var od = new api.GooglePrivacyDlpV2beta1InspectContentResponse.fromJson(o. toJson());
1338 checkListInfoTypesResponse(od); 1483 checkGooglePrivacyDlpV2beta1InspectContentResponse(od);
1339 }); 1484 });
1340 }); 1485 });
1341 1486
1342 1487
1343 unittest.group("obj-schema-ListInspectFindingsResponse", () { 1488 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectOperationMetadata", ( ) {
1344 unittest.test("to-json--from-json", () { 1489 unittest.test("to-json--from-json", () {
1345 var o = buildListInspectFindingsResponse(); 1490 var o = buildGooglePrivacyDlpV2beta1InspectOperationMetadata();
1346 var od = new api.ListInspectFindingsResponse.fromJson(o.toJson()); 1491 var od = new api.GooglePrivacyDlpV2beta1InspectOperationMetadata.fromJson( o.toJson());
1347 checkListInspectFindingsResponse(od); 1492 checkGooglePrivacyDlpV2beta1InspectOperationMetadata(od);
1348 }); 1493 });
1349 }); 1494 });
1350 1495
1351 1496
1352 unittest.group("obj-schema-ListOperationsResponse", () { 1497 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectOperationResult", () {
1353 unittest.test("to-json--from-json", () { 1498 unittest.test("to-json--from-json", () {
1354 var o = buildListOperationsResponse(); 1499 var o = buildGooglePrivacyDlpV2beta1InspectOperationResult();
1355 var od = new api.ListOperationsResponse.fromJson(o.toJson()); 1500 var od = new api.GooglePrivacyDlpV2beta1InspectOperationResult.fromJson(o. toJson());
1356 checkListOperationsResponse(od); 1501 checkGooglePrivacyDlpV2beta1InspectOperationResult(od);
1357 }); 1502 });
1358 }); 1503 });
1359 1504
1360 1505
1361 unittest.group("obj-schema-ListRootCategoriesResponse", () { 1506 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectResult", () {
1362 unittest.test("to-json--from-json", () { 1507 unittest.test("to-json--from-json", () {
1363 var o = buildListRootCategoriesResponse(); 1508 var o = buildGooglePrivacyDlpV2beta1InspectResult();
1364 var od = new api.ListRootCategoriesResponse.fromJson(o.toJson()); 1509 var od = new api.GooglePrivacyDlpV2beta1InspectResult.fromJson(o.toJson()) ;
1365 checkListRootCategoriesResponse(od); 1510 checkGooglePrivacyDlpV2beta1InspectResult(od);
1366 }); 1511 });
1367 }); 1512 });
1368 1513
1369 1514
1370 unittest.group("obj-schema-Location", () { 1515 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Key", () {
1371 unittest.test("to-json--from-json", () { 1516 unittest.test("to-json--from-json", () {
1372 var o = buildLocation(); 1517 var o = buildGooglePrivacyDlpV2beta1Key();
1373 var od = new api.Location.fromJson(o.toJson()); 1518 var od = new api.GooglePrivacyDlpV2beta1Key.fromJson(o.toJson());
1374 checkLocation(od); 1519 checkGooglePrivacyDlpV2beta1Key(od);
1375 }); 1520 });
1376 }); 1521 });
1377 1522
1378 1523
1379 unittest.group("obj-schema-Operation", () { 1524 unittest.group("obj-schema-GooglePrivacyDlpV2beta1KindExpression", () {
1380 unittest.test("to-json--from-json", () { 1525 unittest.test("to-json--from-json", () {
1381 var o = buildOperation(); 1526 var o = buildGooglePrivacyDlpV2beta1KindExpression();
1382 var od = new api.Operation.fromJson(o.toJson()); 1527 var od = new api.GooglePrivacyDlpV2beta1KindExpression.fromJson(o.toJson() );
1383 checkOperation(od); 1528 checkGooglePrivacyDlpV2beta1KindExpression(od);
1384 }); 1529 });
1385 }); 1530 });
1386 1531
1387 1532
1388 unittest.group("obj-schema-OutputStorageConfig", () { 1533 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListInfoTypesResponse", () {
1389 unittest.test("to-json--from-json", () { 1534 unittest.test("to-json--from-json", () {
1390 var o = buildOutputStorageConfig(); 1535 var o = buildGooglePrivacyDlpV2beta1ListInfoTypesResponse();
1391 var od = new api.OutputStorageConfig.fromJson(o.toJson()); 1536 var od = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse.fromJson(o.t oJson());
1392 checkOutputStorageConfig(od); 1537 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(od);
1393 }); 1538 });
1394 }); 1539 });
1395 1540
1396 1541
1397 unittest.group("obj-schema-PartitionId", () { 1542 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListInspectFindingsResponse" , () {
1398 unittest.test("to-json--from-json", () { 1543 unittest.test("to-json--from-json", () {
1399 var o = buildPartitionId(); 1544 var o = buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse();
1400 var od = new api.PartitionId.fromJson(o.toJson()); 1545 var od = new api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse.fromJs on(o.toJson());
1401 checkPartitionId(od); 1546 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(od);
1402 }); 1547 });
1403 }); 1548 });
1404 1549
1405 1550
1406 unittest.group("obj-schema-PathElement", () { 1551 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListRootCategoriesResponse", () {
1407 unittest.test("to-json--from-json", () { 1552 unittest.test("to-json--from-json", () {
1408 var o = buildPathElement(); 1553 var o = buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse();
1409 var od = new api.PathElement.fromJson(o.toJson()); 1554 var od = new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse.fromJso n(o.toJson());
1410 checkPathElement(od); 1555 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(od);
1411 }); 1556 });
1412 }); 1557 });
1413 1558
1414 1559
1415 unittest.group("obj-schema-Projection", () { 1560 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Location", () {
1416 unittest.test("to-json--from-json", () { 1561 unittest.test("to-json--from-json", () {
1417 var o = buildProjection(); 1562 var o = buildGooglePrivacyDlpV2beta1Location();
1418 var od = new api.Projection.fromJson(o.toJson()); 1563 var od = new api.GooglePrivacyDlpV2beta1Location.fromJson(o.toJson());
1419 checkProjection(od); 1564 checkGooglePrivacyDlpV2beta1Location(od);
1420 }); 1565 });
1421 }); 1566 });
1422 1567
1423 1568
1424 unittest.group("obj-schema-PropertyReference", () { 1569 unittest.group("obj-schema-GooglePrivacyDlpV2beta1OutputStorageConfig", () {
1425 unittest.test("to-json--from-json", () { 1570 unittest.test("to-json--from-json", () {
1426 var o = buildPropertyReference(); 1571 var o = buildGooglePrivacyDlpV2beta1OutputStorageConfig();
1427 var od = new api.PropertyReference.fromJson(o.toJson()); 1572 var od = new api.GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(o.toJ son());
1428 checkPropertyReference(od); 1573 checkGooglePrivacyDlpV2beta1OutputStorageConfig(od);
1429 }); 1574 });
1430 }); 1575 });
1431 1576
1432 1577
1433 unittest.group("obj-schema-Range", () { 1578 unittest.group("obj-schema-GooglePrivacyDlpV2beta1PartitionId", () {
1434 unittest.test("to-json--from-json", () { 1579 unittest.test("to-json--from-json", () {
1435 var o = buildRange(); 1580 var o = buildGooglePrivacyDlpV2beta1PartitionId();
1436 var od = new api.Range.fromJson(o.toJson()); 1581 var od = new api.GooglePrivacyDlpV2beta1PartitionId.fromJson(o.toJson());
1437 checkRange(od); 1582 checkGooglePrivacyDlpV2beta1PartitionId(od);
1438 }); 1583 });
1439 }); 1584 });
1440 1585
1441 1586
1442 unittest.group("obj-schema-RecordKey", () { 1587 unittest.group("obj-schema-GooglePrivacyDlpV2beta1PathElement", () {
1443 unittest.test("to-json--from-json", () { 1588 unittest.test("to-json--from-json", () {
1444 var o = buildRecordKey(); 1589 var o = buildGooglePrivacyDlpV2beta1PathElement();
1445 var od = new api.RecordKey.fromJson(o.toJson()); 1590 var od = new api.GooglePrivacyDlpV2beta1PathElement.fromJson(o.toJson());
1446 checkRecordKey(od); 1591 checkGooglePrivacyDlpV2beta1PathElement(od);
1447 }); 1592 });
1448 }); 1593 });
1449 1594
1450 1595
1451 unittest.group("obj-schema-RedactContentRequest", () { 1596 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Projection", () {
1452 unittest.test("to-json--from-json", () { 1597 unittest.test("to-json--from-json", () {
1453 var o = buildRedactContentRequest(); 1598 var o = buildGooglePrivacyDlpV2beta1Projection();
1454 var od = new api.RedactContentRequest.fromJson(o.toJson()); 1599 var od = new api.GooglePrivacyDlpV2beta1Projection.fromJson(o.toJson());
1455 checkRedactContentRequest(od); 1600 checkGooglePrivacyDlpV2beta1Projection(od);
1456 }); 1601 });
1457 }); 1602 });
1458 1603
1459 1604
1460 unittest.group("obj-schema-RedactContentResponse", () { 1605 unittest.group("obj-schema-GooglePrivacyDlpV2beta1PropertyReference", () {
1461 unittest.test("to-json--from-json", () { 1606 unittest.test("to-json--from-json", () {
1462 var o = buildRedactContentResponse(); 1607 var o = buildGooglePrivacyDlpV2beta1PropertyReference();
1463 var od = new api.RedactContentResponse.fromJson(o.toJson()); 1608 var od = new api.GooglePrivacyDlpV2beta1PropertyReference.fromJson(o.toJso n());
1464 checkRedactContentResponse(od); 1609 checkGooglePrivacyDlpV2beta1PropertyReference(od);
1465 }); 1610 });
1466 }); 1611 });
1467 1612
1468 1613
1469 unittest.group("obj-schema-ReplaceConfig", () { 1614 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Range", () {
1470 unittest.test("to-json--from-json", () { 1615 unittest.test("to-json--from-json", () {
1471 var o = buildReplaceConfig(); 1616 var o = buildGooglePrivacyDlpV2beta1Range();
1472 var od = new api.ReplaceConfig.fromJson(o.toJson()); 1617 var od = new api.GooglePrivacyDlpV2beta1Range.fromJson(o.toJson());
1473 checkReplaceConfig(od); 1618 checkGooglePrivacyDlpV2beta1Range(od);
1474 }); 1619 });
1475 }); 1620 });
1476 1621
1477 1622
1478 unittest.group("obj-schema-Status", () { 1623 unittest.group("obj-schema-GooglePrivacyDlpV2beta1RecordKey", () {
1479 unittest.test("to-json--from-json", () { 1624 unittest.test("to-json--from-json", () {
1480 var o = buildStatus(); 1625 var o = buildGooglePrivacyDlpV2beta1RecordKey();
1481 var od = new api.Status.fromJson(o.toJson()); 1626 var od = new api.GooglePrivacyDlpV2beta1RecordKey.fromJson(o.toJson());
1482 checkStatus(od); 1627 checkGooglePrivacyDlpV2beta1RecordKey(od);
1483 }); 1628 });
1484 }); 1629 });
1485 1630
1486 1631
1487 unittest.group("obj-schema-StorageConfig", () { 1632 unittest.group("obj-schema-GooglePrivacyDlpV2beta1RedactContentRequest", () {
1488 unittest.test("to-json--from-json", () { 1633 unittest.test("to-json--from-json", () {
1489 var o = buildStorageConfig(); 1634 var o = buildGooglePrivacyDlpV2beta1RedactContentRequest();
1490 var od = new api.StorageConfig.fromJson(o.toJson()); 1635 var od = new api.GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(o.to Json());
1491 checkStorageConfig(od); 1636 checkGooglePrivacyDlpV2beta1RedactContentRequest(od);
1492 }); 1637 });
1493 }); 1638 });
1494 1639
1640
1641 unittest.group("obj-schema-GooglePrivacyDlpV2beta1RedactContentResponse", () {
1642 unittest.test("to-json--from-json", () {
1643 var o = buildGooglePrivacyDlpV2beta1RedactContentResponse();
1644 var od = new api.GooglePrivacyDlpV2beta1RedactContentResponse.fromJson(o.t oJson());
1645 checkGooglePrivacyDlpV2beta1RedactContentResponse(od);
1646 });
1647 });
1648
1649
1650 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ReplaceConfig", () {
1651 unittest.test("to-json--from-json", () {
1652 var o = buildGooglePrivacyDlpV2beta1ReplaceConfig();
1653 var od = new api.GooglePrivacyDlpV2beta1ReplaceConfig.fromJson(o.toJson()) ;
1654 checkGooglePrivacyDlpV2beta1ReplaceConfig(od);
1655 });
1656 });
1657
1658
1659 unittest.group("obj-schema-GooglePrivacyDlpV2beta1StorageConfig", () {
1660 unittest.test("to-json--from-json", () {
1661 var o = buildGooglePrivacyDlpV2beta1StorageConfig();
1662 var od = new api.GooglePrivacyDlpV2beta1StorageConfig.fromJson(o.toJson()) ;
1663 checkGooglePrivacyDlpV2beta1StorageConfig(od);
1664 });
1665 });
1666
1667
1668 unittest.group("obj-schema-GoogleProtobufEmpty", () {
1669 unittest.test("to-json--from-json", () {
1670 var o = buildGoogleProtobufEmpty();
1671 var od = new api.GoogleProtobufEmpty.fromJson(o.toJson());
1672 checkGoogleProtobufEmpty(od);
1673 });
1674 });
1675
1676
1677 unittest.group("obj-schema-GoogleRpcStatus", () {
1678 unittest.test("to-json--from-json", () {
1679 var o = buildGoogleRpcStatus();
1680 var od = new api.GoogleRpcStatus.fromJson(o.toJson());
1681 checkGoogleRpcStatus(od);
1682 });
1683 });
1684
1495 1685
1496 unittest.group("resource-ContentResourceApi", () { 1686 unittest.group("resource-ContentResourceApi", () {
1497 unittest.test("method--inspect", () { 1687 unittest.test("method--inspect", () {
1498 1688
1499 var mock = new HttpServerMock(); 1689 var mock = new HttpServerMock();
1500 api.ContentResourceApi res = new api.DlpApi(mock).content; 1690 api.ContentResourceApi res = new api.DlpApi(mock).content;
1501 var arg_request = buildInspectContentRequest(); 1691 var arg_request = buildGooglePrivacyDlpV2beta1InspectContentRequest();
1502 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1692 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1503 var obj = new api.InspectContentRequest.fromJson(json); 1693 var obj = new api.GooglePrivacyDlpV2beta1InspectContentRequest.fromJson( json);
1504 checkInspectContentRequest(obj); 1694 checkGooglePrivacyDlpV2beta1InspectContentRequest(obj);
1505 1695
1506 var path = (req.url).path; 1696 var path = (req.url).path;
1507 var pathOffset = 0; 1697 var pathOffset = 0;
1508 var index; 1698 var index;
1509 var subPart; 1699 var subPart;
1510 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1700 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1511 pathOffset += 1; 1701 pathOffset += 1;
1512 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq uals("v2beta1/content:inspect")); 1702 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq uals("v2beta1/content:inspect"));
1513 pathOffset += 23; 1703 pathOffset += 23;
1514 1704
(...skipping 11 matching lines...) Expand all
1526 for (var part in query.split("&")) { 1716 for (var part in query.split("&")) {
1527 var keyvalue = part.split("="); 1717 var keyvalue = part.split("=");
1528 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1718 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1529 } 1719 }
1530 } 1720 }
1531 1721
1532 1722
1533 var h = { 1723 var h = {
1534 "content-type" : "application/json; charset=utf-8", 1724 "content-type" : "application/json; charset=utf-8",
1535 }; 1725 };
1536 var resp = convert.JSON.encode(buildInspectContentResponse()); 1726 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1InspectConten tResponse());
1537 return new async.Future.value(stringResponse(200, h, resp)); 1727 return new async.Future.value(stringResponse(200, h, resp));
1538 }), true); 1728 }), true);
1539 res.inspect(arg_request).then(unittest.expectAsync1(((api.InspectContentRe sponse response) { 1729 res.inspect(arg_request).then(unittest.expectAsync1(((api.GooglePrivacyDlp V2beta1InspectContentResponse response) {
1540 checkInspectContentResponse(response); 1730 checkGooglePrivacyDlpV2beta1InspectContentResponse(response);
1541 }))); 1731 })));
1542 }); 1732 });
1543 1733
1544 unittest.test("method--redact", () { 1734 unittest.test("method--redact", () {
1545 1735
1546 var mock = new HttpServerMock(); 1736 var mock = new HttpServerMock();
1547 api.ContentResourceApi res = new api.DlpApi(mock).content; 1737 api.ContentResourceApi res = new api.DlpApi(mock).content;
1548 var arg_request = buildRedactContentRequest(); 1738 var arg_request = buildGooglePrivacyDlpV2beta1RedactContentRequest();
1549 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1739 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1550 var obj = new api.RedactContentRequest.fromJson(json); 1740 var obj = new api.GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(j son);
1551 checkRedactContentRequest(obj); 1741 checkGooglePrivacyDlpV2beta1RedactContentRequest(obj);
1552 1742
1553 var path = (req.url).path; 1743 var path = (req.url).path;
1554 var pathOffset = 0; 1744 var pathOffset = 0;
1555 var index; 1745 var index;
1556 var subPart; 1746 var subPart;
1557 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1747 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1558 pathOffset += 1; 1748 pathOffset += 1;
1559 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("v2beta1/content:redact")); 1749 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("v2beta1/content:redact"));
1560 pathOffset += 22; 1750 pathOffset += 22;
1561 1751
(...skipping 11 matching lines...) Expand all
1573 for (var part in query.split("&")) { 1763 for (var part in query.split("&")) {
1574 var keyvalue = part.split("="); 1764 var keyvalue = part.split("=");
1575 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1765 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1576 } 1766 }
1577 } 1767 }
1578 1768
1579 1769
1580 var h = { 1770 var h = {
1581 "content-type" : "application/json; charset=utf-8", 1771 "content-type" : "application/json; charset=utf-8",
1582 }; 1772 };
1583 var resp = convert.JSON.encode(buildRedactContentResponse()); 1773 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1RedactContent Response());
1584 return new async.Future.value(stringResponse(200, h, resp)); 1774 return new async.Future.value(stringResponse(200, h, resp));
1585 }), true); 1775 }), true);
1586 res.redact(arg_request).then(unittest.expectAsync1(((api.RedactContentResp onse response) { 1776 res.redact(arg_request).then(unittest.expectAsync1(((api.GooglePrivacyDlpV 2beta1RedactContentResponse response) {
1587 checkRedactContentResponse(response); 1777 checkGooglePrivacyDlpV2beta1RedactContentResponse(response);
1588 }))); 1778 })));
1589 }); 1779 });
1590 1780
1591 }); 1781 });
1592 1782
1593 1783
1594 unittest.group("resource-InspectOperationsResourceApi", () { 1784 unittest.group("resource-InspectOperationsResourceApi", () {
1595 unittest.test("method--cancel", () { 1785 unittest.test("method--cancel", () {
1596 1786
1597 var mock = new HttpServerMock(); 1787 var mock = new HttpServerMock();
1598 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat ions; 1788 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat ions;
1599 var arg_request = buildCancelOperationRequest(); 1789 var arg_request = buildGoogleLongrunningCancelOperationRequest();
1600 var arg_name = "foo"; 1790 var arg_name = "foo";
1601 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1791 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1602 var obj = new api.CancelOperationRequest.fromJson(json); 1792 var obj = new api.GoogleLongrunningCancelOperationRequest.fromJson(json) ;
1603 checkCancelOperationRequest(obj); 1793 checkGoogleLongrunningCancelOperationRequest(obj);
1604 1794
1605 var path = (req.url).path; 1795 var path = (req.url).path;
1606 var pathOffset = 0; 1796 var pathOffset = 0;
1607 var index; 1797 var index;
1608 var subPart; 1798 var subPart;
1609 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1799 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1610 pathOffset += 1; 1800 pathOffset += 1;
1611 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/")); 1801 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/"));
1612 pathOffset += 8; 1802 pathOffset += 8;
1613 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1803 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
(...skipping 12 matching lines...) Expand all
1626 for (var part in query.split("&")) { 1816 for (var part in query.split("&")) {
1627 var keyvalue = part.split("="); 1817 var keyvalue = part.split("=");
1628 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1818 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1629 } 1819 }
1630 } 1820 }
1631 1821
1632 1822
1633 var h = { 1823 var h = {
1634 "content-type" : "application/json; charset=utf-8", 1824 "content-type" : "application/json; charset=utf-8",
1635 }; 1825 };
1636 var resp = convert.JSON.encode(buildEmpty()); 1826 var resp = convert.JSON.encode(buildGoogleProtobufEmpty());
1637 return new async.Future.value(stringResponse(200, h, resp)); 1827 return new async.Future.value(stringResponse(200, h, resp));
1638 }), true); 1828 }), true);
1639 res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty r esponse) { 1829 res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.GoogleP rotobufEmpty response) {
1640 checkEmpty(response); 1830 checkGoogleProtobufEmpty(response);
1641 }))); 1831 })));
1642 }); 1832 });
1643 1833
1644 unittest.test("method--create", () { 1834 unittest.test("method--create", () {
1645 1835
1646 var mock = new HttpServerMock(); 1836 var mock = new HttpServerMock();
1647 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat ions; 1837 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat ions;
1648 var arg_request = buildCreateInspectOperationRequest(); 1838 var arg_request = buildGooglePrivacyDlpV2beta1CreateInspectOperationReques t();
1649 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1839 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1650 var obj = new api.CreateInspectOperationRequest.fromJson(json); 1840 var obj = new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest.f romJson(json);
1651 checkCreateInspectOperationRequest(obj); 1841 checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(obj);
1652 1842
1653 var path = (req.url).path; 1843 var path = (req.url).path;
1654 var pathOffset = 0; 1844 var pathOffset = 0;
1655 var index; 1845 var index;
1656 var subPart; 1846 var subPart;
1657 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1847 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1658 pathOffset += 1; 1848 pathOffset += 1;
1659 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("v2beta1/inspect/operations")); 1849 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq uals("v2beta1/inspect/operations"));
1660 pathOffset += 26; 1850 pathOffset += 26;
1661 1851
(...skipping 11 matching lines...) Expand all
1673 for (var part in query.split("&")) { 1863 for (var part in query.split("&")) {
1674 var keyvalue = part.split("="); 1864 var keyvalue = part.split("=");
1675 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1865 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1676 } 1866 }
1677 } 1867 }
1678 1868
1679 1869
1680 var h = { 1870 var h = {
1681 "content-type" : "application/json; charset=utf-8", 1871 "content-type" : "application/json; charset=utf-8",
1682 }; 1872 };
1683 var resp = convert.JSON.encode(buildOperation()); 1873 var resp = convert.JSON.encode(buildGoogleLongrunningOperation());
1684 return new async.Future.value(stringResponse(200, h, resp)); 1874 return new async.Future.value(stringResponse(200, h, resp));
1685 }), true); 1875 }), true);
1686 res.create(arg_request).then(unittest.expectAsync1(((api.Operation respons e) { 1876 res.create(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunning Operation response) {
1687 checkOperation(response); 1877 checkGoogleLongrunningOperation(response);
1688 }))); 1878 })));
1689 }); 1879 });
1690 1880
1691 unittest.test("method--delete", () { 1881 unittest.test("method--delete", () {
1692 1882
1693 var mock = new HttpServerMock(); 1883 var mock = new HttpServerMock();
1694 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat ions; 1884 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat ions;
1695 var arg_name = "foo"; 1885 var arg_name = "foo";
1696 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1886 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1697 var path = (req.url).path; 1887 var path = (req.url).path;
(...skipping 20 matching lines...) Expand all
1718 for (var part in query.split("&")) { 1908 for (var part in query.split("&")) {
1719 var keyvalue = part.split("="); 1909 var keyvalue = part.split("=");
1720 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1910 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1721 } 1911 }
1722 } 1912 }
1723 1913
1724 1914
1725 var h = { 1915 var h = {
1726 "content-type" : "application/json; charset=utf-8", 1916 "content-type" : "application/json; charset=utf-8",
1727 }; 1917 };
1728 var resp = convert.JSON.encode(buildEmpty()); 1918 var resp = convert.JSON.encode(buildGoogleProtobufEmpty());
1729 return new async.Future.value(stringResponse(200, h, resp)); 1919 return new async.Future.value(stringResponse(200, h, resp));
1730 }), true); 1920 }), true);
1731 res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { 1921 res.delete(arg_name).then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) {
1732 checkEmpty(response); 1922 checkGoogleProtobufEmpty(response);
1733 }))); 1923 })));
1734 }); 1924 });
1735 1925
1736 unittest.test("method--get", () { 1926 unittest.test("method--get", () {
1737 1927
1738 var mock = new HttpServerMock(); 1928 var mock = new HttpServerMock();
1739 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat ions; 1929 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat ions;
1740 var arg_name = "foo"; 1930 var arg_name = "foo";
1741 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1931 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1742 var path = (req.url).path; 1932 var path = (req.url).path;
(...skipping 20 matching lines...) Expand all
1763 for (var part in query.split("&")) { 1953 for (var part in query.split("&")) {
1764 var keyvalue = part.split("="); 1954 var keyvalue = part.split("=");
1765 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1955 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1766 } 1956 }
1767 } 1957 }
1768 1958
1769 1959
1770 var h = { 1960 var h = {
1771 "content-type" : "application/json; charset=utf-8", 1961 "content-type" : "application/json; charset=utf-8",
1772 }; 1962 };
1773 var resp = convert.JSON.encode(buildOperation()); 1963 var resp = convert.JSON.encode(buildGoogleLongrunningOperation());
1774 return new async.Future.value(stringResponse(200, h, resp)); 1964 return new async.Future.value(stringResponse(200, h, resp));
1775 }), true); 1965 }), true);
1776 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { 1966 res.get(arg_name).then(unittest.expectAsync1(((api.GoogleLongrunningOperat ion response) {
1777 checkOperation(response); 1967 checkGoogleLongrunningOperation(response);
1778 }))); 1968 })));
1779 }); 1969 });
1780 1970
1781 unittest.test("method--list", () { 1971 unittest.test("method--list", () {
1782 1972
1783 var mock = new HttpServerMock(); 1973 var mock = new HttpServerMock();
1784 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat ions; 1974 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat ions;
1785 var arg_name = "foo"; 1975 var arg_name = "foo";
1786 var arg_pageSize = 42;
1787 var arg_filter = "foo"; 1976 var arg_filter = "foo";
1788 var arg_pageToken = "foo"; 1977 var arg_pageToken = "foo";
1978 var arg_pageSize = 42;
1789 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1979 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1790 var path = (req.url).path; 1980 var path = (req.url).path;
1791 var pathOffset = 0; 1981 var pathOffset = 0;
1792 var index; 1982 var index;
1793 var subPart; 1983 var subPart;
1794 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1984 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1795 pathOffset += 1; 1985 pathOffset += 1;
1796 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/")); 1986 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/"));
1797 pathOffset += 8; 1987 pathOffset += 8;
1798 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1988 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1799 1989
1800 var query = (req.url).query; 1990 var query = (req.url).query;
1801 var queryOffset = 0; 1991 var queryOffset = 0;
1802 var queryMap = {}; 1992 var queryMap = {};
1803 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1993 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1804 parseBool(n) { 1994 parseBool(n) {
1805 if (n == "true") return true; 1995 if (n == "true") return true;
1806 if (n == "false") return false; 1996 if (n == "false") return false;
1807 if (n == null) return null; 1997 if (n == null) return null;
1808 throw new core.ArgumentError("Invalid boolean: $n"); 1998 throw new core.ArgumentError("Invalid boolean: $n");
1809 } 1999 }
1810 if (query.length > 0) { 2000 if (query.length > 0) {
1811 for (var part in query.split("&")) { 2001 for (var part in query.split("&")) {
1812 var keyvalue = part.split("="); 2002 var keyvalue = part.split("=");
1813 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2003 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1814 } 2004 }
1815 } 2005 }
1816 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1817 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 2006 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
1818 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2007 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2008 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1819 2009
1820 2010
1821 var h = { 2011 var h = {
1822 "content-type" : "application/json; charset=utf-8", 2012 "content-type" : "application/json; charset=utf-8",
1823 }; 2013 };
1824 var resp = convert.JSON.encode(buildListOperationsResponse()); 2014 var resp = convert.JSON.encode(buildGoogleLongrunningListOperationsRespo nse());
1825 return new async.Future.value(stringResponse(200, h, resp)); 2015 return new async.Future.value(stringResponse(200, h, resp));
1826 }), true); 2016 }), true);
1827 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { 2017 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.GoogleLongrunningListOperationsR esponse response) {
1828 checkListOperationsResponse(response); 2018 checkGoogleLongrunningListOperationsResponse(response);
1829 }))); 2019 })));
1830 }); 2020 });
1831 2021
1832 }); 2022 });
1833 2023
1834 2024
1835 unittest.group("resource-InspectResultsFindingsResourceApi", () { 2025 unittest.group("resource-InspectResultsFindingsResourceApi", () {
1836 unittest.test("method--list", () { 2026 unittest.test("method--list", () {
1837 2027
1838 var mock = new HttpServerMock(); 2028 var mock = new HttpServerMock();
1839 api.InspectResultsFindingsResourceApi res = new api.DlpApi(mock).inspect.r esults.findings; 2029 api.InspectResultsFindingsResourceApi res = new api.DlpApi(mock).inspect.r esults.findings;
1840 var arg_name = "foo"; 2030 var arg_name = "foo";
1841 var arg_pageSize = 42;
1842 var arg_filter = "foo"; 2031 var arg_filter = "foo";
1843 var arg_pageToken = "foo"; 2032 var arg_pageToken = "foo";
2033 var arg_pageSize = 42;
1844 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 2034 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1845 var path = (req.url).path; 2035 var path = (req.url).path;
1846 var pathOffset = 0; 2036 var pathOffset = 0;
1847 var index; 2037 var index;
1848 var subPart; 2038 var subPart;
1849 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2039 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1850 pathOffset += 1; 2040 pathOffset += 1;
1851 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/")); 2041 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/"));
1852 pathOffset += 8; 2042 pathOffset += 8;
1853 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 2043 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1854 2044
1855 var query = (req.url).query; 2045 var query = (req.url).query;
1856 var queryOffset = 0; 2046 var queryOffset = 0;
1857 var queryMap = {}; 2047 var queryMap = {};
1858 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2048 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1859 parseBool(n) { 2049 parseBool(n) {
1860 if (n == "true") return true; 2050 if (n == "true") return true;
1861 if (n == "false") return false; 2051 if (n == "false") return false;
1862 if (n == null) return null; 2052 if (n == null) return null;
1863 throw new core.ArgumentError("Invalid boolean: $n"); 2053 throw new core.ArgumentError("Invalid boolean: $n");
1864 } 2054 }
1865 if (query.length > 0) { 2055 if (query.length > 0) {
1866 for (var part in query.split("&")) { 2056 for (var part in query.split("&")) {
1867 var keyvalue = part.split("="); 2057 var keyvalue = part.split("=");
1868 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2058 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1869 } 2059 }
1870 } 2060 }
1871 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1872 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 2061 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
1873 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2062 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2063 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1874 2064
1875 2065
1876 var h = { 2066 var h = {
1877 "content-type" : "application/json; charset=utf-8", 2067 "content-type" : "application/json; charset=utf-8",
1878 }; 2068 };
1879 var resp = convert.JSON.encode(buildListInspectFindingsResponse()); 2069 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListInspectFi ndingsResponse());
1880 return new async.Future.value(stringResponse(200, h, resp)); 2070 return new async.Future.value(stringResponse(200, h, resp));
1881 }), true); 2071 }), true);
1882 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListInspectFindingsResponse resp onse) { 2072 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.GooglePrivacyDlpV2beta1ListInspe ctFindingsResponse response) {
1883 checkListInspectFindingsResponse(response); 2073 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(response);
1884 }))); 2074 })));
1885 }); 2075 });
1886 2076
1887 }); 2077 });
1888 2078
1889 2079
1890 unittest.group("resource-RootCategoriesResourceApi", () { 2080 unittest.group("resource-RootCategoriesResourceApi", () {
1891 unittest.test("method--list", () { 2081 unittest.test("method--list", () {
1892 2082
1893 var mock = new HttpServerMock(); 2083 var mock = new HttpServerMock();
(...skipping 24 matching lines...) Expand all
1918 var keyvalue = part.split("="); 2108 var keyvalue = part.split("=");
1919 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2109 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1920 } 2110 }
1921 } 2111 }
1922 unittest.expect(queryMap["languageCode"].first, unittest.equals(arg_lang uageCode)); 2112 unittest.expect(queryMap["languageCode"].first, unittest.equals(arg_lang uageCode));
1923 2113
1924 2114
1925 var h = { 2115 var h = {
1926 "content-type" : "application/json; charset=utf-8", 2116 "content-type" : "application/json; charset=utf-8",
1927 }; 2117 };
1928 var resp = convert.JSON.encode(buildListRootCategoriesResponse()); 2118 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListRootCateg oriesResponse());
1929 return new async.Future.value(stringResponse(200, h, resp)); 2119 return new async.Future.value(stringResponse(200, h, resp));
1930 }), true); 2120 }), true);
1931 res.list(languageCode: arg_languageCode).then(unittest.expectAsync1(((api. ListRootCategoriesResponse response) { 2121 res.list(languageCode: arg_languageCode).then(unittest.expectAsync1(((api. GooglePrivacyDlpV2beta1ListRootCategoriesResponse response) {
1932 checkListRootCategoriesResponse(response); 2122 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(response);
1933 }))); 2123 })));
1934 }); 2124 });
1935 2125
1936 }); 2126 });
1937 2127
1938 2128
1939 unittest.group("resource-RootCategoriesInfoTypesResourceApi", () { 2129 unittest.group("resource-RootCategoriesInfoTypesResourceApi", () {
1940 unittest.test("method--list", () { 2130 unittest.test("method--list", () {
1941 2131
1942 var mock = new HttpServerMock(); 2132 var mock = new HttpServerMock();
(...skipping 26 matching lines...) Expand all
1969 var keyvalue = part.split("="); 2159 var keyvalue = part.split("=");
1970 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2160 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1971 } 2161 }
1972 } 2162 }
1973 unittest.expect(queryMap["languageCode"].first, unittest.equals(arg_lang uageCode)); 2163 unittest.expect(queryMap["languageCode"].first, unittest.equals(arg_lang uageCode));
1974 2164
1975 2165
1976 var h = { 2166 var h = {
1977 "content-type" : "application/json; charset=utf-8", 2167 "content-type" : "application/json; charset=utf-8",
1978 }; 2168 };
1979 var resp = convert.JSON.encode(buildListInfoTypesResponse()); 2169 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListInfoTypes Response());
1980 return new async.Future.value(stringResponse(200, h, resp)); 2170 return new async.Future.value(stringResponse(200, h, resp));
1981 }), true); 2171 }), true);
1982 res.list(arg_category, languageCode: arg_languageCode).then(unittest.expec tAsync1(((api.ListInfoTypesResponse response) { 2172 res.list(arg_category, languageCode: arg_languageCode).then(unittest.expec tAsync1(((api.GooglePrivacyDlpV2beta1ListInfoTypesResponse response) {
1983 checkListInfoTypesResponse(response); 2173 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(response);
1984 }))); 2174 })));
1985 }); 2175 });
1986 2176
1987 }); 2177 });
1988 2178
1989 2179
1990 } 2180 }
1991 2181
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/dataproc/v1beta1_test.dart ('k') | generated/googleapis_beta/test/dns/v2beta1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698