| // ignore_for_file: avoid_returning_null |
| // ignore_for_file: camel_case_types |
| // ignore_for_file: cascade_invocations |
| // ignore_for_file: comment_references |
| // ignore_for_file: file_names |
| // ignore_for_file: library_names |
| // ignore_for_file: lines_longer_than_80_chars |
| // ignore_for_file: non_constant_identifier_names |
| // ignore_for_file: prefer_expression_function_bodies |
| // ignore_for_file: prefer_final_locals |
| // ignore_for_file: prefer_interpolation_to_compose_strings |
| // ignore_for_file: prefer_single_quotes |
| // ignore_for_file: unnecessary_brace_in_string_interps |
| // ignore_for_file: unnecessary_cast |
| // ignore_for_file: unnecessary_lambdas |
| // ignore_for_file: unnecessary_parenthesis |
| // ignore_for_file: unnecessary_string_interpolations |
| // ignore_for_file: unused_local_variable |
| |
| import 'dart:async' as async; |
| import 'dart:convert' as convert; |
| import 'dart:core' as core; |
| |
| import 'package:googleapis/vision/v1.dart' as api; |
| import 'package:http/http.dart' as http; |
| import 'package:test/test.dart' as unittest; |
| |
| import '../test_shared.dart'; |
| |
| core.int buildCounterAddProductToProductSetRequest = 0; |
| api.AddProductToProductSetRequest buildAddProductToProductSetRequest() { |
| var o = api.AddProductToProductSetRequest(); |
| buildCounterAddProductToProductSetRequest++; |
| if (buildCounterAddProductToProductSetRequest < 3) { |
| o.product = 'foo'; |
| } |
| buildCounterAddProductToProductSetRequest--; |
| return o; |
| } |
| |
| void checkAddProductToProductSetRequest(api.AddProductToProductSetRequest o) { |
| buildCounterAddProductToProductSetRequest++; |
| if (buildCounterAddProductToProductSetRequest < 3) { |
| unittest.expect( |
| o.product!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterAddProductToProductSetRequest--; |
| } |
| |
| core.List<api.Feature> buildUnnamed4147() { |
| var o = <api.Feature>[]; |
| o.add(buildFeature()); |
| o.add(buildFeature()); |
| return o; |
| } |
| |
| void checkUnnamed4147(core.List<api.Feature> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkFeature(o[0] as api.Feature); |
| checkFeature(o[1] as api.Feature); |
| } |
| |
| core.List<core.int> buildUnnamed4148() { |
| var o = <core.int>[]; |
| o.add(42); |
| o.add(42); |
| return o; |
| } |
| |
| void checkUnnamed4148(core.List<core.int> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals(42), |
| ); |
| } |
| |
| core.int buildCounterAnnotateFileRequest = 0; |
| api.AnnotateFileRequest buildAnnotateFileRequest() { |
| var o = api.AnnotateFileRequest(); |
| buildCounterAnnotateFileRequest++; |
| if (buildCounterAnnotateFileRequest < 3) { |
| o.features = buildUnnamed4147(); |
| o.imageContext = buildImageContext(); |
| o.inputConfig = buildInputConfig(); |
| o.pages = buildUnnamed4148(); |
| } |
| buildCounterAnnotateFileRequest--; |
| return o; |
| } |
| |
| void checkAnnotateFileRequest(api.AnnotateFileRequest o) { |
| buildCounterAnnotateFileRequest++; |
| if (buildCounterAnnotateFileRequest < 3) { |
| checkUnnamed4147(o.features!); |
| checkImageContext(o.imageContext! as api.ImageContext); |
| checkInputConfig(o.inputConfig! as api.InputConfig); |
| checkUnnamed4148(o.pages!); |
| } |
| buildCounterAnnotateFileRequest--; |
| } |
| |
| core.List<api.AnnotateImageResponse> buildUnnamed4149() { |
| var o = <api.AnnotateImageResponse>[]; |
| o.add(buildAnnotateImageResponse()); |
| o.add(buildAnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4149(core.List<api.AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateImageResponse(o[0] as api.AnnotateImageResponse); |
| checkAnnotateImageResponse(o[1] as api.AnnotateImageResponse); |
| } |
| |
| core.int buildCounterAnnotateFileResponse = 0; |
| api.AnnotateFileResponse buildAnnotateFileResponse() { |
| var o = api.AnnotateFileResponse(); |
| buildCounterAnnotateFileResponse++; |
| if (buildCounterAnnotateFileResponse < 3) { |
| o.error = buildStatus(); |
| o.inputConfig = buildInputConfig(); |
| o.responses = buildUnnamed4149(); |
| o.totalPages = 42; |
| } |
| buildCounterAnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkAnnotateFileResponse(api.AnnotateFileResponse o) { |
| buildCounterAnnotateFileResponse++; |
| if (buildCounterAnnotateFileResponse < 3) { |
| checkStatus(o.error! as api.Status); |
| checkInputConfig(o.inputConfig! as api.InputConfig); |
| checkUnnamed4149(o.responses!); |
| unittest.expect( |
| o.totalPages!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterAnnotateFileResponse--; |
| } |
| |
| core.List<api.Feature> buildUnnamed4150() { |
| var o = <api.Feature>[]; |
| o.add(buildFeature()); |
| o.add(buildFeature()); |
| return o; |
| } |
| |
| void checkUnnamed4150(core.List<api.Feature> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkFeature(o[0] as api.Feature); |
| checkFeature(o[1] as api.Feature); |
| } |
| |
| core.int buildCounterAnnotateImageRequest = 0; |
| api.AnnotateImageRequest buildAnnotateImageRequest() { |
| var o = api.AnnotateImageRequest(); |
| buildCounterAnnotateImageRequest++; |
| if (buildCounterAnnotateImageRequest < 3) { |
| o.features = buildUnnamed4150(); |
| o.image = buildImage(); |
| o.imageContext = buildImageContext(); |
| } |
| buildCounterAnnotateImageRequest--; |
| return o; |
| } |
| |
| void checkAnnotateImageRequest(api.AnnotateImageRequest o) { |
| buildCounterAnnotateImageRequest++; |
| if (buildCounterAnnotateImageRequest < 3) { |
| checkUnnamed4150(o.features!); |
| checkImage(o.image! as api.Image); |
| checkImageContext(o.imageContext! as api.ImageContext); |
| } |
| buildCounterAnnotateImageRequest--; |
| } |
| |
| core.List<api.FaceAnnotation> buildUnnamed4151() { |
| var o = <api.FaceAnnotation>[]; |
| o.add(buildFaceAnnotation()); |
| o.add(buildFaceAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4151(core.List<api.FaceAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkFaceAnnotation(o[0] as api.FaceAnnotation); |
| checkFaceAnnotation(o[1] as api.FaceAnnotation); |
| } |
| |
| core.List<api.EntityAnnotation> buildUnnamed4152() { |
| var o = <api.EntityAnnotation>[]; |
| o.add(buildEntityAnnotation()); |
| o.add(buildEntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4152(core.List<api.EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkEntityAnnotation(o[0] as api.EntityAnnotation); |
| checkEntityAnnotation(o[1] as api.EntityAnnotation); |
| } |
| |
| core.List<api.EntityAnnotation> buildUnnamed4153() { |
| var o = <api.EntityAnnotation>[]; |
| o.add(buildEntityAnnotation()); |
| o.add(buildEntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4153(core.List<api.EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkEntityAnnotation(o[0] as api.EntityAnnotation); |
| checkEntityAnnotation(o[1] as api.EntityAnnotation); |
| } |
| |
| core.List<api.LocalizedObjectAnnotation> buildUnnamed4154() { |
| var o = <api.LocalizedObjectAnnotation>[]; |
| o.add(buildLocalizedObjectAnnotation()); |
| o.add(buildLocalizedObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4154(core.List<api.LocalizedObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkLocalizedObjectAnnotation(o[0] as api.LocalizedObjectAnnotation); |
| checkLocalizedObjectAnnotation(o[1] as api.LocalizedObjectAnnotation); |
| } |
| |
| core.List<api.EntityAnnotation> buildUnnamed4155() { |
| var o = <api.EntityAnnotation>[]; |
| o.add(buildEntityAnnotation()); |
| o.add(buildEntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4155(core.List<api.EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkEntityAnnotation(o[0] as api.EntityAnnotation); |
| checkEntityAnnotation(o[1] as api.EntityAnnotation); |
| } |
| |
| core.List<api.EntityAnnotation> buildUnnamed4156() { |
| var o = <api.EntityAnnotation>[]; |
| o.add(buildEntityAnnotation()); |
| o.add(buildEntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4156(core.List<api.EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkEntityAnnotation(o[0] as api.EntityAnnotation); |
| checkEntityAnnotation(o[1] as api.EntityAnnotation); |
| } |
| |
| core.int buildCounterAnnotateImageResponse = 0; |
| api.AnnotateImageResponse buildAnnotateImageResponse() { |
| var o = api.AnnotateImageResponse(); |
| buildCounterAnnotateImageResponse++; |
| if (buildCounterAnnotateImageResponse < 3) { |
| o.context = buildImageAnnotationContext(); |
| o.cropHintsAnnotation = buildCropHintsAnnotation(); |
| o.error = buildStatus(); |
| o.faceAnnotations = buildUnnamed4151(); |
| o.fullTextAnnotation = buildTextAnnotation(); |
| o.imagePropertiesAnnotation = buildImageProperties(); |
| o.labelAnnotations = buildUnnamed4152(); |
| o.landmarkAnnotations = buildUnnamed4153(); |
| o.localizedObjectAnnotations = buildUnnamed4154(); |
| o.logoAnnotations = buildUnnamed4155(); |
| o.productSearchResults = buildProductSearchResults(); |
| o.safeSearchAnnotation = buildSafeSearchAnnotation(); |
| o.textAnnotations = buildUnnamed4156(); |
| o.webDetection = buildWebDetection(); |
| } |
| buildCounterAnnotateImageResponse--; |
| return o; |
| } |
| |
| void checkAnnotateImageResponse(api.AnnotateImageResponse o) { |
| buildCounterAnnotateImageResponse++; |
| if (buildCounterAnnotateImageResponse < 3) { |
| checkImageAnnotationContext(o.context! as api.ImageAnnotationContext); |
| checkCropHintsAnnotation(o.cropHintsAnnotation! as api.CropHintsAnnotation); |
| checkStatus(o.error! as api.Status); |
| checkUnnamed4151(o.faceAnnotations!); |
| checkTextAnnotation(o.fullTextAnnotation! as api.TextAnnotation); |
| checkImageProperties(o.imagePropertiesAnnotation! as api.ImageProperties); |
| checkUnnamed4152(o.labelAnnotations!); |
| checkUnnamed4153(o.landmarkAnnotations!); |
| checkUnnamed4154(o.localizedObjectAnnotations!); |
| checkUnnamed4155(o.logoAnnotations!); |
| checkProductSearchResults( |
| o.productSearchResults! as api.ProductSearchResults); |
| checkSafeSearchAnnotation( |
| o.safeSearchAnnotation! as api.SafeSearchAnnotation); |
| checkUnnamed4156(o.textAnnotations!); |
| checkWebDetection(o.webDetection! as api.WebDetection); |
| } |
| buildCounterAnnotateImageResponse--; |
| } |
| |
| core.List<api.Feature> buildUnnamed4157() { |
| var o = <api.Feature>[]; |
| o.add(buildFeature()); |
| o.add(buildFeature()); |
| return o; |
| } |
| |
| void checkUnnamed4157(core.List<api.Feature> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkFeature(o[0] as api.Feature); |
| checkFeature(o[1] as api.Feature); |
| } |
| |
| core.int buildCounterAsyncAnnotateFileRequest = 0; |
| api.AsyncAnnotateFileRequest buildAsyncAnnotateFileRequest() { |
| var o = api.AsyncAnnotateFileRequest(); |
| buildCounterAsyncAnnotateFileRequest++; |
| if (buildCounterAsyncAnnotateFileRequest < 3) { |
| o.features = buildUnnamed4157(); |
| o.imageContext = buildImageContext(); |
| o.inputConfig = buildInputConfig(); |
| o.outputConfig = buildOutputConfig(); |
| } |
| buildCounterAsyncAnnotateFileRequest--; |
| return o; |
| } |
| |
| void checkAsyncAnnotateFileRequest(api.AsyncAnnotateFileRequest o) { |
| buildCounterAsyncAnnotateFileRequest++; |
| if (buildCounterAsyncAnnotateFileRequest < 3) { |
| checkUnnamed4157(o.features!); |
| checkImageContext(o.imageContext! as api.ImageContext); |
| checkInputConfig(o.inputConfig! as api.InputConfig); |
| checkOutputConfig(o.outputConfig! as api.OutputConfig); |
| } |
| buildCounterAsyncAnnotateFileRequest--; |
| } |
| |
| core.int buildCounterAsyncAnnotateFileResponse = 0; |
| api.AsyncAnnotateFileResponse buildAsyncAnnotateFileResponse() { |
| var o = api.AsyncAnnotateFileResponse(); |
| buildCounterAsyncAnnotateFileResponse++; |
| if (buildCounterAsyncAnnotateFileResponse < 3) { |
| o.outputConfig = buildOutputConfig(); |
| } |
| buildCounterAsyncAnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkAsyncAnnotateFileResponse(api.AsyncAnnotateFileResponse o) { |
| buildCounterAsyncAnnotateFileResponse++; |
| if (buildCounterAsyncAnnotateFileResponse < 3) { |
| checkOutputConfig(o.outputConfig! as api.OutputConfig); |
| } |
| buildCounterAsyncAnnotateFileResponse--; |
| } |
| |
| core.List<api.AsyncAnnotateFileRequest> buildUnnamed4158() { |
| var o = <api.AsyncAnnotateFileRequest>[]; |
| o.add(buildAsyncAnnotateFileRequest()); |
| o.add(buildAsyncAnnotateFileRequest()); |
| return o; |
| } |
| |
| void checkUnnamed4158(core.List<api.AsyncAnnotateFileRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAsyncAnnotateFileRequest(o[0] as api.AsyncAnnotateFileRequest); |
| checkAsyncAnnotateFileRequest(o[1] as api.AsyncAnnotateFileRequest); |
| } |
| |
| core.int buildCounterAsyncBatchAnnotateFilesRequest = 0; |
| api.AsyncBatchAnnotateFilesRequest buildAsyncBatchAnnotateFilesRequest() { |
| var o = api.AsyncBatchAnnotateFilesRequest(); |
| buildCounterAsyncBatchAnnotateFilesRequest++; |
| if (buildCounterAsyncBatchAnnotateFilesRequest < 3) { |
| o.parent = 'foo'; |
| o.requests = buildUnnamed4158(); |
| } |
| buildCounterAsyncBatchAnnotateFilesRequest--; |
| return o; |
| } |
| |
| void checkAsyncBatchAnnotateFilesRequest(api.AsyncBatchAnnotateFilesRequest o) { |
| buildCounterAsyncBatchAnnotateFilesRequest++; |
| if (buildCounterAsyncBatchAnnotateFilesRequest < 3) { |
| unittest.expect( |
| o.parent!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4158(o.requests!); |
| } |
| buildCounterAsyncBatchAnnotateFilesRequest--; |
| } |
| |
| core.List<api.AsyncAnnotateFileResponse> buildUnnamed4159() { |
| var o = <api.AsyncAnnotateFileResponse>[]; |
| o.add(buildAsyncAnnotateFileResponse()); |
| o.add(buildAsyncAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4159(core.List<api.AsyncAnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAsyncAnnotateFileResponse(o[0] as api.AsyncAnnotateFileResponse); |
| checkAsyncAnnotateFileResponse(o[1] as api.AsyncAnnotateFileResponse); |
| } |
| |
| core.int buildCounterAsyncBatchAnnotateFilesResponse = 0; |
| api.AsyncBatchAnnotateFilesResponse buildAsyncBatchAnnotateFilesResponse() { |
| var o = api.AsyncBatchAnnotateFilesResponse(); |
| buildCounterAsyncBatchAnnotateFilesResponse++; |
| if (buildCounterAsyncBatchAnnotateFilesResponse < 3) { |
| o.responses = buildUnnamed4159(); |
| } |
| buildCounterAsyncBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkAsyncBatchAnnotateFilesResponse( |
| api.AsyncBatchAnnotateFilesResponse o) { |
| buildCounterAsyncBatchAnnotateFilesResponse++; |
| if (buildCounterAsyncBatchAnnotateFilesResponse < 3) { |
| checkUnnamed4159(o.responses!); |
| } |
| buildCounterAsyncBatchAnnotateFilesResponse--; |
| } |
| |
| core.List<api.AnnotateImageRequest> buildUnnamed4160() { |
| var o = <api.AnnotateImageRequest>[]; |
| o.add(buildAnnotateImageRequest()); |
| o.add(buildAnnotateImageRequest()); |
| return o; |
| } |
| |
| void checkUnnamed4160(core.List<api.AnnotateImageRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateImageRequest(o[0] as api.AnnotateImageRequest); |
| checkAnnotateImageRequest(o[1] as api.AnnotateImageRequest); |
| } |
| |
| core.int buildCounterAsyncBatchAnnotateImagesRequest = 0; |
| api.AsyncBatchAnnotateImagesRequest buildAsyncBatchAnnotateImagesRequest() { |
| var o = api.AsyncBatchAnnotateImagesRequest(); |
| buildCounterAsyncBatchAnnotateImagesRequest++; |
| if (buildCounterAsyncBatchAnnotateImagesRequest < 3) { |
| o.outputConfig = buildOutputConfig(); |
| o.parent = 'foo'; |
| o.requests = buildUnnamed4160(); |
| } |
| buildCounterAsyncBatchAnnotateImagesRequest--; |
| return o; |
| } |
| |
| void checkAsyncBatchAnnotateImagesRequest( |
| api.AsyncBatchAnnotateImagesRequest o) { |
| buildCounterAsyncBatchAnnotateImagesRequest++; |
| if (buildCounterAsyncBatchAnnotateImagesRequest < 3) { |
| checkOutputConfig(o.outputConfig! as api.OutputConfig); |
| unittest.expect( |
| o.parent!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4160(o.requests!); |
| } |
| buildCounterAsyncBatchAnnotateImagesRequest--; |
| } |
| |
| core.int buildCounterAsyncBatchAnnotateImagesResponse = 0; |
| api.AsyncBatchAnnotateImagesResponse buildAsyncBatchAnnotateImagesResponse() { |
| var o = api.AsyncBatchAnnotateImagesResponse(); |
| buildCounterAsyncBatchAnnotateImagesResponse++; |
| if (buildCounterAsyncBatchAnnotateImagesResponse < 3) { |
| o.outputConfig = buildOutputConfig(); |
| } |
| buildCounterAsyncBatchAnnotateImagesResponse--; |
| return o; |
| } |
| |
| void checkAsyncBatchAnnotateImagesResponse( |
| api.AsyncBatchAnnotateImagesResponse o) { |
| buildCounterAsyncBatchAnnotateImagesResponse++; |
| if (buildCounterAsyncBatchAnnotateImagesResponse < 3) { |
| checkOutputConfig(o.outputConfig! as api.OutputConfig); |
| } |
| buildCounterAsyncBatchAnnotateImagesResponse--; |
| } |
| |
| core.List<api.AnnotateFileRequest> buildUnnamed4161() { |
| var o = <api.AnnotateFileRequest>[]; |
| o.add(buildAnnotateFileRequest()); |
| o.add(buildAnnotateFileRequest()); |
| return o; |
| } |
| |
| void checkUnnamed4161(core.List<api.AnnotateFileRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateFileRequest(o[0] as api.AnnotateFileRequest); |
| checkAnnotateFileRequest(o[1] as api.AnnotateFileRequest); |
| } |
| |
| core.int buildCounterBatchAnnotateFilesRequest = 0; |
| api.BatchAnnotateFilesRequest buildBatchAnnotateFilesRequest() { |
| var o = api.BatchAnnotateFilesRequest(); |
| buildCounterBatchAnnotateFilesRequest++; |
| if (buildCounterBatchAnnotateFilesRequest < 3) { |
| o.parent = 'foo'; |
| o.requests = buildUnnamed4161(); |
| } |
| buildCounterBatchAnnotateFilesRequest--; |
| return o; |
| } |
| |
| void checkBatchAnnotateFilesRequest(api.BatchAnnotateFilesRequest o) { |
| buildCounterBatchAnnotateFilesRequest++; |
| if (buildCounterBatchAnnotateFilesRequest < 3) { |
| unittest.expect( |
| o.parent!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4161(o.requests!); |
| } |
| buildCounterBatchAnnotateFilesRequest--; |
| } |
| |
| core.List<api.AnnotateFileResponse> buildUnnamed4162() { |
| var o = <api.AnnotateFileResponse>[]; |
| o.add(buildAnnotateFileResponse()); |
| o.add(buildAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4162(core.List<api.AnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateFileResponse(o[0] as api.AnnotateFileResponse); |
| checkAnnotateFileResponse(o[1] as api.AnnotateFileResponse); |
| } |
| |
| core.int buildCounterBatchAnnotateFilesResponse = 0; |
| api.BatchAnnotateFilesResponse buildBatchAnnotateFilesResponse() { |
| var o = api.BatchAnnotateFilesResponse(); |
| buildCounterBatchAnnotateFilesResponse++; |
| if (buildCounterBatchAnnotateFilesResponse < 3) { |
| o.responses = buildUnnamed4162(); |
| } |
| buildCounterBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkBatchAnnotateFilesResponse(api.BatchAnnotateFilesResponse o) { |
| buildCounterBatchAnnotateFilesResponse++; |
| if (buildCounterBatchAnnotateFilesResponse < 3) { |
| checkUnnamed4162(o.responses!); |
| } |
| buildCounterBatchAnnotateFilesResponse--; |
| } |
| |
| core.List<api.AnnotateImageRequest> buildUnnamed4163() { |
| var o = <api.AnnotateImageRequest>[]; |
| o.add(buildAnnotateImageRequest()); |
| o.add(buildAnnotateImageRequest()); |
| return o; |
| } |
| |
| void checkUnnamed4163(core.List<api.AnnotateImageRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateImageRequest(o[0] as api.AnnotateImageRequest); |
| checkAnnotateImageRequest(o[1] as api.AnnotateImageRequest); |
| } |
| |
| core.int buildCounterBatchAnnotateImagesRequest = 0; |
| api.BatchAnnotateImagesRequest buildBatchAnnotateImagesRequest() { |
| var o = api.BatchAnnotateImagesRequest(); |
| buildCounterBatchAnnotateImagesRequest++; |
| if (buildCounterBatchAnnotateImagesRequest < 3) { |
| o.parent = 'foo'; |
| o.requests = buildUnnamed4163(); |
| } |
| buildCounterBatchAnnotateImagesRequest--; |
| return o; |
| } |
| |
| void checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { |
| buildCounterBatchAnnotateImagesRequest++; |
| if (buildCounterBatchAnnotateImagesRequest < 3) { |
| unittest.expect( |
| o.parent!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4163(o.requests!); |
| } |
| buildCounterBatchAnnotateImagesRequest--; |
| } |
| |
| core.List<api.AnnotateImageResponse> buildUnnamed4164() { |
| var o = <api.AnnotateImageResponse>[]; |
| o.add(buildAnnotateImageResponse()); |
| o.add(buildAnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4164(core.List<api.AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateImageResponse(o[0] as api.AnnotateImageResponse); |
| checkAnnotateImageResponse(o[1] as api.AnnotateImageResponse); |
| } |
| |
| core.int buildCounterBatchAnnotateImagesResponse = 0; |
| api.BatchAnnotateImagesResponse buildBatchAnnotateImagesResponse() { |
| var o = api.BatchAnnotateImagesResponse(); |
| buildCounterBatchAnnotateImagesResponse++; |
| if (buildCounterBatchAnnotateImagesResponse < 3) { |
| o.responses = buildUnnamed4164(); |
| } |
| buildCounterBatchAnnotateImagesResponse--; |
| return o; |
| } |
| |
| void checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { |
| buildCounterBatchAnnotateImagesResponse++; |
| if (buildCounterBatchAnnotateImagesResponse < 3) { |
| checkUnnamed4164(o.responses!); |
| } |
| buildCounterBatchAnnotateImagesResponse--; |
| } |
| |
| core.int buildCounterBatchOperationMetadata = 0; |
| api.BatchOperationMetadata buildBatchOperationMetadata() { |
| var o = api.BatchOperationMetadata(); |
| buildCounterBatchOperationMetadata++; |
| if (buildCounterBatchOperationMetadata < 3) { |
| o.endTime = 'foo'; |
| o.state = 'foo'; |
| o.submitTime = 'foo'; |
| } |
| buildCounterBatchOperationMetadata--; |
| return o; |
| } |
| |
| void checkBatchOperationMetadata(api.BatchOperationMetadata o) { |
| buildCounterBatchOperationMetadata++; |
| if (buildCounterBatchOperationMetadata < 3) { |
| unittest.expect( |
| o.endTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.state!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.submitTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterBatchOperationMetadata--; |
| } |
| |
| core.List<api.Paragraph> buildUnnamed4165() { |
| var o = <api.Paragraph>[]; |
| o.add(buildParagraph()); |
| o.add(buildParagraph()); |
| return o; |
| } |
| |
| void checkUnnamed4165(core.List<api.Paragraph> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkParagraph(o[0] as api.Paragraph); |
| checkParagraph(o[1] as api.Paragraph); |
| } |
| |
| core.int buildCounterBlock = 0; |
| api.Block buildBlock() { |
| var o = api.Block(); |
| buildCounterBlock++; |
| if (buildCounterBlock < 3) { |
| o.blockType = 'foo'; |
| o.boundingBox = buildBoundingPoly(); |
| o.confidence = 42.0; |
| o.paragraphs = buildUnnamed4165(); |
| o.property = buildTextProperty(); |
| } |
| buildCounterBlock--; |
| return o; |
| } |
| |
| void checkBlock(api.Block o) { |
| buildCounterBlock++; |
| if (buildCounterBlock < 3) { |
| unittest.expect( |
| o.blockType!, |
| unittest.equals('foo'), |
| ); |
| checkBoundingPoly(o.boundingBox! as api.BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4165(o.paragraphs!); |
| checkTextProperty(o.property! as api.TextProperty); |
| } |
| buildCounterBlock--; |
| } |
| |
| core.List<api.NormalizedVertex> buildUnnamed4166() { |
| var o = <api.NormalizedVertex>[]; |
| o.add(buildNormalizedVertex()); |
| o.add(buildNormalizedVertex()); |
| return o; |
| } |
| |
| void checkUnnamed4166(core.List<api.NormalizedVertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkNormalizedVertex(o[0] as api.NormalizedVertex); |
| checkNormalizedVertex(o[1] as api.NormalizedVertex); |
| } |
| |
| core.List<api.Vertex> buildUnnamed4167() { |
| var o = <api.Vertex>[]; |
| o.add(buildVertex()); |
| o.add(buildVertex()); |
| return o; |
| } |
| |
| void checkUnnamed4167(core.List<api.Vertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkVertex(o[0] as api.Vertex); |
| checkVertex(o[1] as api.Vertex); |
| } |
| |
| core.int buildCounterBoundingPoly = 0; |
| api.BoundingPoly buildBoundingPoly() { |
| var o = api.BoundingPoly(); |
| buildCounterBoundingPoly++; |
| if (buildCounterBoundingPoly < 3) { |
| o.normalizedVertices = buildUnnamed4166(); |
| o.vertices = buildUnnamed4167(); |
| } |
| buildCounterBoundingPoly--; |
| return o; |
| } |
| |
| void checkBoundingPoly(api.BoundingPoly o) { |
| buildCounterBoundingPoly++; |
| if (buildCounterBoundingPoly < 3) { |
| checkUnnamed4166(o.normalizedVertices!); |
| checkUnnamed4167(o.vertices!); |
| } |
| buildCounterBoundingPoly--; |
| } |
| |
| core.int buildCounterCancelOperationRequest = 0; |
| api.CancelOperationRequest buildCancelOperationRequest() { |
| var o = api.CancelOperationRequest(); |
| buildCounterCancelOperationRequest++; |
| if (buildCounterCancelOperationRequest < 3) {} |
| buildCounterCancelOperationRequest--; |
| return o; |
| } |
| |
| void checkCancelOperationRequest(api.CancelOperationRequest o) { |
| buildCounterCancelOperationRequest++; |
| if (buildCounterCancelOperationRequest < 3) {} |
| buildCounterCancelOperationRequest--; |
| } |
| |
| core.int buildCounterColor = 0; |
| api.Color buildColor() { |
| var o = api.Color(); |
| buildCounterColor++; |
| if (buildCounterColor < 3) { |
| o.alpha = 42.0; |
| o.blue = 42.0; |
| o.green = 42.0; |
| o.red = 42.0; |
| } |
| buildCounterColor--; |
| return o; |
| } |
| |
| void checkColor(api.Color o) { |
| buildCounterColor++; |
| if (buildCounterColor < 3) { |
| unittest.expect( |
| o.alpha!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.blue!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.green!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.red!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterColor--; |
| } |
| |
| core.int buildCounterColorInfo = 0; |
| api.ColorInfo buildColorInfo() { |
| var o = api.ColorInfo(); |
| buildCounterColorInfo++; |
| if (buildCounterColorInfo < 3) { |
| o.color = buildColor(); |
| o.pixelFraction = 42.0; |
| o.score = 42.0; |
| } |
| buildCounterColorInfo--; |
| return o; |
| } |
| |
| void checkColorInfo(api.ColorInfo o) { |
| buildCounterColorInfo++; |
| if (buildCounterColorInfo < 3) { |
| checkColor(o.color! as api.Color); |
| unittest.expect( |
| o.pixelFraction!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterColorInfo--; |
| } |
| |
| core.int buildCounterCropHint = 0; |
| api.CropHint buildCropHint() { |
| var o = api.CropHint(); |
| buildCounterCropHint++; |
| if (buildCounterCropHint < 3) { |
| o.boundingPoly = buildBoundingPoly(); |
| o.confidence = 42.0; |
| o.importanceFraction = 42.0; |
| } |
| buildCounterCropHint--; |
| return o; |
| } |
| |
| void checkCropHint(api.CropHint o) { |
| buildCounterCropHint++; |
| if (buildCounterCropHint < 3) { |
| checkBoundingPoly(o.boundingPoly! as api.BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.importanceFraction!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterCropHint--; |
| } |
| |
| core.List<api.CropHint> buildUnnamed4168() { |
| var o = <api.CropHint>[]; |
| o.add(buildCropHint()); |
| o.add(buildCropHint()); |
| return o; |
| } |
| |
| void checkUnnamed4168(core.List<api.CropHint> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkCropHint(o[0] as api.CropHint); |
| checkCropHint(o[1] as api.CropHint); |
| } |
| |
| core.int buildCounterCropHintsAnnotation = 0; |
| api.CropHintsAnnotation buildCropHintsAnnotation() { |
| var o = api.CropHintsAnnotation(); |
| buildCounterCropHintsAnnotation++; |
| if (buildCounterCropHintsAnnotation < 3) { |
| o.cropHints = buildUnnamed4168(); |
| } |
| buildCounterCropHintsAnnotation--; |
| return o; |
| } |
| |
| void checkCropHintsAnnotation(api.CropHintsAnnotation o) { |
| buildCounterCropHintsAnnotation++; |
| if (buildCounterCropHintsAnnotation < 3) { |
| checkUnnamed4168(o.cropHints!); |
| } |
| buildCounterCropHintsAnnotation--; |
| } |
| |
| core.List<core.double> buildUnnamed4169() { |
| var o = <core.double>[]; |
| o.add(42.0); |
| o.add(42.0); |
| return o; |
| } |
| |
| void checkUnnamed4169(core.List<core.double> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals(42.0), |
| ); |
| } |
| |
| core.int buildCounterCropHintsParams = 0; |
| api.CropHintsParams buildCropHintsParams() { |
| var o = api.CropHintsParams(); |
| buildCounterCropHintsParams++; |
| if (buildCounterCropHintsParams < 3) { |
| o.aspectRatios = buildUnnamed4169(); |
| } |
| buildCounterCropHintsParams--; |
| return o; |
| } |
| |
| void checkCropHintsParams(api.CropHintsParams o) { |
| buildCounterCropHintsParams++; |
| if (buildCounterCropHintsParams < 3) { |
| checkUnnamed4169(o.aspectRatios!); |
| } |
| buildCounterCropHintsParams--; |
| } |
| |
| core.int buildCounterDetectedBreak = 0; |
| api.DetectedBreak buildDetectedBreak() { |
| var o = api.DetectedBreak(); |
| buildCounterDetectedBreak++; |
| if (buildCounterDetectedBreak < 3) { |
| o.isPrefix = true; |
| o.type = 'foo'; |
| } |
| buildCounterDetectedBreak--; |
| return o; |
| } |
| |
| void checkDetectedBreak(api.DetectedBreak o) { |
| buildCounterDetectedBreak++; |
| if (buildCounterDetectedBreak < 3) { |
| unittest.expect(o.isPrefix!, unittest.isTrue); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterDetectedBreak--; |
| } |
| |
| core.int buildCounterDetectedLanguage = 0; |
| api.DetectedLanguage buildDetectedLanguage() { |
| var o = api.DetectedLanguage(); |
| buildCounterDetectedLanguage++; |
| if (buildCounterDetectedLanguage < 3) { |
| o.confidence = 42.0; |
| o.languageCode = 'foo'; |
| } |
| buildCounterDetectedLanguage--; |
| return o; |
| } |
| |
| void checkDetectedLanguage(api.DetectedLanguage o) { |
| buildCounterDetectedLanguage++; |
| if (buildCounterDetectedLanguage < 3) { |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterDetectedLanguage--; |
| } |
| |
| core.List<api.ColorInfo> buildUnnamed4170() { |
| var o = <api.ColorInfo>[]; |
| o.add(buildColorInfo()); |
| o.add(buildColorInfo()); |
| return o; |
| } |
| |
| void checkUnnamed4170(core.List<api.ColorInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkColorInfo(o[0] as api.ColorInfo); |
| checkColorInfo(o[1] as api.ColorInfo); |
| } |
| |
| core.int buildCounterDominantColorsAnnotation = 0; |
| api.DominantColorsAnnotation buildDominantColorsAnnotation() { |
| var o = api.DominantColorsAnnotation(); |
| buildCounterDominantColorsAnnotation++; |
| if (buildCounterDominantColorsAnnotation < 3) { |
| o.colors = buildUnnamed4170(); |
| } |
| buildCounterDominantColorsAnnotation--; |
| return o; |
| } |
| |
| void checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { |
| buildCounterDominantColorsAnnotation++; |
| if (buildCounterDominantColorsAnnotation < 3) { |
| checkUnnamed4170(o.colors!); |
| } |
| buildCounterDominantColorsAnnotation--; |
| } |
| |
| core.int buildCounterEmpty = 0; |
| api.Empty buildEmpty() { |
| var o = api.Empty(); |
| buildCounterEmpty++; |
| if (buildCounterEmpty < 3) {} |
| buildCounterEmpty--; |
| return o; |
| } |
| |
| void checkEmpty(api.Empty o) { |
| buildCounterEmpty++; |
| if (buildCounterEmpty < 3) {} |
| buildCounterEmpty--; |
| } |
| |
| core.List<api.LocationInfo> buildUnnamed4171() { |
| var o = <api.LocationInfo>[]; |
| o.add(buildLocationInfo()); |
| o.add(buildLocationInfo()); |
| return o; |
| } |
| |
| void checkUnnamed4171(core.List<api.LocationInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkLocationInfo(o[0] as api.LocationInfo); |
| checkLocationInfo(o[1] as api.LocationInfo); |
| } |
| |
| core.List<api.Property> buildUnnamed4172() { |
| var o = <api.Property>[]; |
| o.add(buildProperty()); |
| o.add(buildProperty()); |
| return o; |
| } |
| |
| void checkUnnamed4172(core.List<api.Property> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkProperty(o[0] as api.Property); |
| checkProperty(o[1] as api.Property); |
| } |
| |
| core.int buildCounterEntityAnnotation = 0; |
| api.EntityAnnotation buildEntityAnnotation() { |
| var o = api.EntityAnnotation(); |
| buildCounterEntityAnnotation++; |
| if (buildCounterEntityAnnotation < 3) { |
| o.boundingPoly = buildBoundingPoly(); |
| o.confidence = 42.0; |
| o.description = 'foo'; |
| o.locale = 'foo'; |
| o.locations = buildUnnamed4171(); |
| o.mid = 'foo'; |
| o.properties = buildUnnamed4172(); |
| o.score = 42.0; |
| o.topicality = 42.0; |
| } |
| buildCounterEntityAnnotation--; |
| return o; |
| } |
| |
| void checkEntityAnnotation(api.EntityAnnotation o) { |
| buildCounterEntityAnnotation++; |
| if (buildCounterEntityAnnotation < 3) { |
| checkBoundingPoly(o.boundingPoly! as api.BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.locale!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4171(o.locations!); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4172(o.properties!); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.topicality!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterEntityAnnotation--; |
| } |
| |
| core.List<api.Landmark> buildUnnamed4173() { |
| var o = <api.Landmark>[]; |
| o.add(buildLandmark()); |
| o.add(buildLandmark()); |
| return o; |
| } |
| |
| void checkUnnamed4173(core.List<api.Landmark> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkLandmark(o[0] as api.Landmark); |
| checkLandmark(o[1] as api.Landmark); |
| } |
| |
| core.int buildCounterFaceAnnotation = 0; |
| api.FaceAnnotation buildFaceAnnotation() { |
| var o = api.FaceAnnotation(); |
| buildCounterFaceAnnotation++; |
| if (buildCounterFaceAnnotation < 3) { |
| o.angerLikelihood = 'foo'; |
| o.blurredLikelihood = 'foo'; |
| o.boundingPoly = buildBoundingPoly(); |
| o.detectionConfidence = 42.0; |
| o.fdBoundingPoly = buildBoundingPoly(); |
| o.headwearLikelihood = 'foo'; |
| o.joyLikelihood = 'foo'; |
| o.landmarkingConfidence = 42.0; |
| o.landmarks = buildUnnamed4173(); |
| o.panAngle = 42.0; |
| o.rollAngle = 42.0; |
| o.sorrowLikelihood = 'foo'; |
| o.surpriseLikelihood = 'foo'; |
| o.tiltAngle = 42.0; |
| o.underExposedLikelihood = 'foo'; |
| } |
| buildCounterFaceAnnotation--; |
| return o; |
| } |
| |
| void checkFaceAnnotation(api.FaceAnnotation o) { |
| buildCounterFaceAnnotation++; |
| if (buildCounterFaceAnnotation < 3) { |
| unittest.expect( |
| o.angerLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.blurredLikelihood!, |
| unittest.equals('foo'), |
| ); |
| checkBoundingPoly(o.boundingPoly! as api.BoundingPoly); |
| unittest.expect( |
| o.detectionConfidence!, |
| unittest.equals(42.0), |
| ); |
| checkBoundingPoly(o.fdBoundingPoly! as api.BoundingPoly); |
| unittest.expect( |
| o.headwearLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.joyLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.landmarkingConfidence!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4173(o.landmarks!); |
| unittest.expect( |
| o.panAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.rollAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.sorrowLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.surpriseLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.tiltAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.underExposedLikelihood!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterFaceAnnotation--; |
| } |
| |
| core.int buildCounterFeature = 0; |
| api.Feature buildFeature() { |
| var o = api.Feature(); |
| buildCounterFeature++; |
| if (buildCounterFeature < 3) { |
| o.maxResults = 42; |
| o.model = 'foo'; |
| o.type = 'foo'; |
| } |
| buildCounterFeature--; |
| return o; |
| } |
| |
| void checkFeature(api.Feature o) { |
| buildCounterFeature++; |
| if (buildCounterFeature < 3) { |
| unittest.expect( |
| o.maxResults!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.model!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterFeature--; |
| } |
| |
| core.int buildCounterGcsDestination = 0; |
| api.GcsDestination buildGcsDestination() { |
| var o = api.GcsDestination(); |
| buildCounterGcsDestination++; |
| if (buildCounterGcsDestination < 3) { |
| o.uri = 'foo'; |
| } |
| buildCounterGcsDestination--; |
| return o; |
| } |
| |
| void checkGcsDestination(api.GcsDestination o) { |
| buildCounterGcsDestination++; |
| if (buildCounterGcsDestination < 3) { |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGcsDestination--; |
| } |
| |
| core.int buildCounterGcsSource = 0; |
| api.GcsSource buildGcsSource() { |
| var o = api.GcsSource(); |
| buildCounterGcsSource++; |
| if (buildCounterGcsSource < 3) { |
| o.uri = 'foo'; |
| } |
| buildCounterGcsSource--; |
| return o; |
| } |
| |
| void checkGcsSource(api.GcsSource o) { |
| buildCounterGcsSource++; |
| if (buildCounterGcsSource < 3) { |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGcsSource--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1AnnotateImageResponse> |
| buildUnnamed4174() { |
| var o = <api.GoogleCloudVisionV1p1beta1AnnotateImageResponse>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1AnnotateImageResponse()); |
| o.add(buildGoogleCloudVisionV1p1beta1AnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4174( |
| core.List<api.GoogleCloudVisionV1p1beta1AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1AnnotateImageResponse( |
| o[0] as api.GoogleCloudVisionV1p1beta1AnnotateImageResponse); |
| checkGoogleCloudVisionV1p1beta1AnnotateImageResponse( |
| o[1] as api.GoogleCloudVisionV1p1beta1AnnotateImageResponse); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p1beta1AnnotateFileResponse |
| buildGoogleCloudVisionV1p1beta1AnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p1beta1AnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse < 3) { |
| o.error = buildStatus(); |
| o.inputConfig = buildGoogleCloudVisionV1p1beta1InputConfig(); |
| o.responses = buildUnnamed4174(); |
| o.totalPages = 42; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1AnnotateFileResponse( |
| api.GoogleCloudVisionV1p1beta1AnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse < 3) { |
| checkStatus(o.error! as api.Status); |
| checkGoogleCloudVisionV1p1beta1InputConfig( |
| o.inputConfig! as api.GoogleCloudVisionV1p1beta1InputConfig); |
| checkUnnamed4174(o.responses!); |
| unittest.expect( |
| o.totalPages!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotation> buildUnnamed4175() { |
| var o = <api.GoogleCloudVisionV1p1beta1FaceAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4175( |
| core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotation( |
| o[0] as api.GoogleCloudVisionV1p1beta1FaceAnnotation); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotation( |
| o[1] as api.GoogleCloudVisionV1p1beta1FaceAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> buildUnnamed4176() { |
| var o = <api.GoogleCloudVisionV1p1beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4176( |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p1beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p1beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> buildUnnamed4177() { |
| var o = <api.GoogleCloudVisionV1p1beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4177( |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p1beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p1beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation> |
| buildUnnamed4178() { |
| var o = <api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4178( |
| core.List<api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation( |
| o[0] as api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation); |
| checkGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation( |
| o[1] as api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> buildUnnamed4179() { |
| var o = <api.GoogleCloudVisionV1p1beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4179( |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p1beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p1beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> buildUnnamed4180() { |
| var o = <api.GoogleCloudVisionV1p1beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4180( |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p1beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p1beta1EntityAnnotation); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse = 0; |
| api.GoogleCloudVisionV1p1beta1AnnotateImageResponse |
| buildGoogleCloudVisionV1p1beta1AnnotateImageResponse() { |
| var o = api.GoogleCloudVisionV1p1beta1AnnotateImageResponse(); |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse < 3) { |
| o.context = buildGoogleCloudVisionV1p1beta1ImageAnnotationContext(); |
| o.cropHintsAnnotation = |
| buildGoogleCloudVisionV1p1beta1CropHintsAnnotation(); |
| o.error = buildStatus(); |
| o.faceAnnotations = buildUnnamed4175(); |
| o.fullTextAnnotation = buildGoogleCloudVisionV1p1beta1TextAnnotation(); |
| o.imagePropertiesAnnotation = |
| buildGoogleCloudVisionV1p1beta1ImageProperties(); |
| o.labelAnnotations = buildUnnamed4176(); |
| o.landmarkAnnotations = buildUnnamed4177(); |
| o.localizedObjectAnnotations = buildUnnamed4178(); |
| o.logoAnnotations = buildUnnamed4179(); |
| o.productSearchResults = |
| buildGoogleCloudVisionV1p1beta1ProductSearchResults(); |
| o.safeSearchAnnotation = |
| buildGoogleCloudVisionV1p1beta1SafeSearchAnnotation(); |
| o.textAnnotations = buildUnnamed4180(); |
| o.webDetection = buildGoogleCloudVisionV1p1beta1WebDetection(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1AnnotateImageResponse( |
| api.GoogleCloudVisionV1p1beta1AnnotateImageResponse o) { |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse < 3) { |
| checkGoogleCloudVisionV1p1beta1ImageAnnotationContext( |
| o.context! as api.GoogleCloudVisionV1p1beta1ImageAnnotationContext); |
| checkGoogleCloudVisionV1p1beta1CropHintsAnnotation(o.cropHintsAnnotation! |
| as api.GoogleCloudVisionV1p1beta1CropHintsAnnotation); |
| checkStatus(o.error! as api.Status); |
| checkUnnamed4175(o.faceAnnotations!); |
| checkGoogleCloudVisionV1p1beta1TextAnnotation( |
| o.fullTextAnnotation! as api.GoogleCloudVisionV1p1beta1TextAnnotation); |
| checkGoogleCloudVisionV1p1beta1ImageProperties(o.imagePropertiesAnnotation! |
| as api.GoogleCloudVisionV1p1beta1ImageProperties); |
| checkUnnamed4176(o.labelAnnotations!); |
| checkUnnamed4177(o.landmarkAnnotations!); |
| checkUnnamed4178(o.localizedObjectAnnotations!); |
| checkUnnamed4179(o.logoAnnotations!); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResults(o.productSearchResults! |
| as api.GoogleCloudVisionV1p1beta1ProductSearchResults); |
| checkGoogleCloudVisionV1p1beta1SafeSearchAnnotation(o.safeSearchAnnotation! |
| as api.GoogleCloudVisionV1p1beta1SafeSearchAnnotation); |
| checkUnnamed4180(o.textAnnotations!); |
| checkGoogleCloudVisionV1p1beta1WebDetection( |
| o.webDetection! as api.GoogleCloudVisionV1p1beta1WebDetection); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse |
| buildGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse < 3) { |
| o.outputConfig = buildGoogleCloudVisionV1p1beta1OutputConfig(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse( |
| api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse < 3) { |
| checkGoogleCloudVisionV1p1beta1OutputConfig( |
| o.outputConfig! as api.GoogleCloudVisionV1p1beta1OutputConfig); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse> |
| buildUnnamed4181() { |
| var o = <api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse()); |
| o.add(buildGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4181( |
| core.List<api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse( |
| o[0] as api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse); |
| checkGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse( |
| o[1] as api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse = |
| 0; |
| api.GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse |
| buildGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse() { |
| var o = api.GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse(); |
| buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| o.responses = buildUnnamed4181(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse( |
| api.GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse o) { |
| buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| checkUnnamed4181(o.responses!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Paragraph> buildUnnamed4182() { |
| var o = <api.GoogleCloudVisionV1p1beta1Paragraph>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Paragraph()); |
| o.add(buildGoogleCloudVisionV1p1beta1Paragraph()); |
| return o; |
| } |
| |
| void checkUnnamed4182(core.List<api.GoogleCloudVisionV1p1beta1Paragraph> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Paragraph( |
| o[0] as api.GoogleCloudVisionV1p1beta1Paragraph); |
| checkGoogleCloudVisionV1p1beta1Paragraph( |
| o[1] as api.GoogleCloudVisionV1p1beta1Paragraph); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1Block = 0; |
| api.GoogleCloudVisionV1p1beta1Block buildGoogleCloudVisionV1p1beta1Block() { |
| var o = api.GoogleCloudVisionV1p1beta1Block(); |
| buildCounterGoogleCloudVisionV1p1beta1Block++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Block < 3) { |
| o.blockType = 'foo'; |
| o.boundingBox = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.paragraphs = buildUnnamed4182(); |
| o.property = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Block--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Block( |
| api.GoogleCloudVisionV1p1beta1Block o) { |
| buildCounterGoogleCloudVisionV1p1beta1Block++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Block < 3) { |
| unittest.expect( |
| o.blockType!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4182(o.paragraphs!); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Block--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1NormalizedVertex> buildUnnamed4183() { |
| var o = <api.GoogleCloudVisionV1p1beta1NormalizedVertex>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1NormalizedVertex()); |
| o.add(buildGoogleCloudVisionV1p1beta1NormalizedVertex()); |
| return o; |
| } |
| |
| void checkUnnamed4183( |
| core.List<api.GoogleCloudVisionV1p1beta1NormalizedVertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1NormalizedVertex( |
| o[0] as api.GoogleCloudVisionV1p1beta1NormalizedVertex); |
| checkGoogleCloudVisionV1p1beta1NormalizedVertex( |
| o[1] as api.GoogleCloudVisionV1p1beta1NormalizedVertex); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Vertex> buildUnnamed4184() { |
| var o = <api.GoogleCloudVisionV1p1beta1Vertex>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Vertex()); |
| o.add(buildGoogleCloudVisionV1p1beta1Vertex()); |
| return o; |
| } |
| |
| void checkUnnamed4184(core.List<api.GoogleCloudVisionV1p1beta1Vertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Vertex( |
| o[0] as api.GoogleCloudVisionV1p1beta1Vertex); |
| checkGoogleCloudVisionV1p1beta1Vertex( |
| o[1] as api.GoogleCloudVisionV1p1beta1Vertex); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1BoundingPoly = 0; |
| api.GoogleCloudVisionV1p1beta1BoundingPoly |
| buildGoogleCloudVisionV1p1beta1BoundingPoly() { |
| var o = api.GoogleCloudVisionV1p1beta1BoundingPoly(); |
| buildCounterGoogleCloudVisionV1p1beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p1beta1BoundingPoly < 3) { |
| o.normalizedVertices = buildUnnamed4183(); |
| o.vertices = buildUnnamed4184(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1BoundingPoly--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| api.GoogleCloudVisionV1p1beta1BoundingPoly o) { |
| buildCounterGoogleCloudVisionV1p1beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p1beta1BoundingPoly < 3) { |
| checkUnnamed4183(o.normalizedVertices!); |
| checkUnnamed4184(o.vertices!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1BoundingPoly--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1ColorInfo = 0; |
| api.GoogleCloudVisionV1p1beta1ColorInfo |
| buildGoogleCloudVisionV1p1beta1ColorInfo() { |
| var o = api.GoogleCloudVisionV1p1beta1ColorInfo(); |
| buildCounterGoogleCloudVisionV1p1beta1ColorInfo++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ColorInfo < 3) { |
| o.color = buildColor(); |
| o.pixelFraction = 42.0; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ColorInfo--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1ColorInfo( |
| api.GoogleCloudVisionV1p1beta1ColorInfo o) { |
| buildCounterGoogleCloudVisionV1p1beta1ColorInfo++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ColorInfo < 3) { |
| checkColor(o.color! as api.Color); |
| unittest.expect( |
| o.pixelFraction!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ColorInfo--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1CropHint = 0; |
| api.GoogleCloudVisionV1p1beta1CropHint |
| buildGoogleCloudVisionV1p1beta1CropHint() { |
| var o = api.GoogleCloudVisionV1p1beta1CropHint(); |
| buildCounterGoogleCloudVisionV1p1beta1CropHint++; |
| if (buildCounterGoogleCloudVisionV1p1beta1CropHint < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.importanceFraction = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1CropHint--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1CropHint( |
| api.GoogleCloudVisionV1p1beta1CropHint o) { |
| buildCounterGoogleCloudVisionV1p1beta1CropHint++; |
| if (buildCounterGoogleCloudVisionV1p1beta1CropHint < 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.importanceFraction!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1CropHint--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1CropHint> buildUnnamed4185() { |
| var o = <api.GoogleCloudVisionV1p1beta1CropHint>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1CropHint()); |
| o.add(buildGoogleCloudVisionV1p1beta1CropHint()); |
| return o; |
| } |
| |
| void checkUnnamed4185(core.List<api.GoogleCloudVisionV1p1beta1CropHint> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1CropHint( |
| o[0] as api.GoogleCloudVisionV1p1beta1CropHint); |
| checkGoogleCloudVisionV1p1beta1CropHint( |
| o[1] as api.GoogleCloudVisionV1p1beta1CropHint); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation = 0; |
| api.GoogleCloudVisionV1p1beta1CropHintsAnnotation |
| buildGoogleCloudVisionV1p1beta1CropHintsAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1CropHintsAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation < 3) { |
| o.cropHints = buildUnnamed4185(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1CropHintsAnnotation( |
| api.GoogleCloudVisionV1p1beta1CropHintsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation < 3) { |
| checkUnnamed4185(o.cropHints!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1ColorInfo> buildUnnamed4186() { |
| var o = <api.GoogleCloudVisionV1p1beta1ColorInfo>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ColorInfo()); |
| o.add(buildGoogleCloudVisionV1p1beta1ColorInfo()); |
| return o; |
| } |
| |
| void checkUnnamed4186(core.List<api.GoogleCloudVisionV1p1beta1ColorInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ColorInfo( |
| o[0] as api.GoogleCloudVisionV1p1beta1ColorInfo); |
| checkGoogleCloudVisionV1p1beta1ColorInfo( |
| o[1] as api.GoogleCloudVisionV1p1beta1ColorInfo); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation = 0; |
| api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation |
| buildGoogleCloudVisionV1p1beta1DominantColorsAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation < 3) { |
| o.colors = buildUnnamed4186(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1DominantColorsAnnotation( |
| api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation < 3) { |
| checkUnnamed4186(o.colors!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1LocationInfo> buildUnnamed4187() { |
| var o = <api.GoogleCloudVisionV1p1beta1LocationInfo>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1LocationInfo()); |
| o.add(buildGoogleCloudVisionV1p1beta1LocationInfo()); |
| return o; |
| } |
| |
| void checkUnnamed4187(core.List<api.GoogleCloudVisionV1p1beta1LocationInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1LocationInfo( |
| o[0] as api.GoogleCloudVisionV1p1beta1LocationInfo); |
| checkGoogleCloudVisionV1p1beta1LocationInfo( |
| o[1] as api.GoogleCloudVisionV1p1beta1LocationInfo); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Property> buildUnnamed4188() { |
| var o = <api.GoogleCloudVisionV1p1beta1Property>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Property()); |
| o.add(buildGoogleCloudVisionV1p1beta1Property()); |
| return o; |
| } |
| |
| void checkUnnamed4188(core.List<api.GoogleCloudVisionV1p1beta1Property> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Property( |
| o[0] as api.GoogleCloudVisionV1p1beta1Property); |
| checkGoogleCloudVisionV1p1beta1Property( |
| o[1] as api.GoogleCloudVisionV1p1beta1Property); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation = 0; |
| api.GoogleCloudVisionV1p1beta1EntityAnnotation |
| buildGoogleCloudVisionV1p1beta1EntityAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1EntityAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.description = 'foo'; |
| o.locale = 'foo'; |
| o.locations = buildUnnamed4187(); |
| o.mid = 'foo'; |
| o.properties = buildUnnamed4188(); |
| o.score = 42.0; |
| o.topicality = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| api.GoogleCloudVisionV1p1beta1EntityAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation < 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.locale!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4187(o.locations!); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4188(o.properties!); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.topicality!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark> |
| buildUnnamed4189() { |
| var o = <api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotationLandmark()); |
| o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotationLandmark()); |
| return o; |
| } |
| |
| void checkUnnamed4189( |
| core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotationLandmark( |
| o[0] as api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotationLandmark( |
| o[1] as api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1FaceAnnotation = 0; |
| api.GoogleCloudVisionV1p1beta1FaceAnnotation |
| buildGoogleCloudVisionV1p1beta1FaceAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1FaceAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1FaceAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1FaceAnnotation < 3) { |
| o.angerLikelihood = 'foo'; |
| o.blurredLikelihood = 'foo'; |
| o.boundingPoly = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.detectionConfidence = 42.0; |
| o.fdBoundingPoly = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.headwearLikelihood = 'foo'; |
| o.joyLikelihood = 'foo'; |
| o.landmarkingConfidence = 42.0; |
| o.landmarks = buildUnnamed4189(); |
| o.panAngle = 42.0; |
| o.rollAngle = 42.0; |
| o.sorrowLikelihood = 'foo'; |
| o.surpriseLikelihood = 'foo'; |
| o.tiltAngle = 42.0; |
| o.underExposedLikelihood = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1FaceAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1FaceAnnotation( |
| api.GoogleCloudVisionV1p1beta1FaceAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1FaceAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1FaceAnnotation < 3) { |
| unittest.expect( |
| o.angerLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.blurredLikelihood!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| unittest.expect( |
| o.detectionConfidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| o.fdBoundingPoly! as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| unittest.expect( |
| o.headwearLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.joyLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.landmarkingConfidence!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4189(o.landmarks!); |
| unittest.expect( |
| o.panAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.rollAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.sorrowLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.surpriseLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.tiltAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.underExposedLikelihood!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1FaceAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1FaceAnnotationLandmark = 0; |
| api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark |
| buildGoogleCloudVisionV1p1beta1FaceAnnotationLandmark() { |
| var o = api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark(); |
| buildCounterGoogleCloudVisionV1p1beta1FaceAnnotationLandmark++; |
| if (buildCounterGoogleCloudVisionV1p1beta1FaceAnnotationLandmark < 3) { |
| o.position = buildGoogleCloudVisionV1p1beta1Position(); |
| o.type = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1FaceAnnotationLandmark--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1FaceAnnotationLandmark( |
| api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark o) { |
| buildCounterGoogleCloudVisionV1p1beta1FaceAnnotationLandmark++; |
| if (buildCounterGoogleCloudVisionV1p1beta1FaceAnnotationLandmark < 3) { |
| checkGoogleCloudVisionV1p1beta1Position( |
| o.position! as api.GoogleCloudVisionV1p1beta1Position); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1FaceAnnotationLandmark--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1GcsDestination = 0; |
| api.GoogleCloudVisionV1p1beta1GcsDestination |
| buildGoogleCloudVisionV1p1beta1GcsDestination() { |
| var o = api.GoogleCloudVisionV1p1beta1GcsDestination(); |
| buildCounterGoogleCloudVisionV1p1beta1GcsDestination++; |
| if (buildCounterGoogleCloudVisionV1p1beta1GcsDestination < 3) { |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1GcsDestination--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1GcsDestination( |
| api.GoogleCloudVisionV1p1beta1GcsDestination o) { |
| buildCounterGoogleCloudVisionV1p1beta1GcsDestination++; |
| if (buildCounterGoogleCloudVisionV1p1beta1GcsDestination < 3) { |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1GcsDestination--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1GcsSource = 0; |
| api.GoogleCloudVisionV1p1beta1GcsSource |
| buildGoogleCloudVisionV1p1beta1GcsSource() { |
| var o = api.GoogleCloudVisionV1p1beta1GcsSource(); |
| buildCounterGoogleCloudVisionV1p1beta1GcsSource++; |
| if (buildCounterGoogleCloudVisionV1p1beta1GcsSource < 3) { |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1GcsSource--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1GcsSource( |
| api.GoogleCloudVisionV1p1beta1GcsSource o) { |
| buildCounterGoogleCloudVisionV1p1beta1GcsSource++; |
| if (buildCounterGoogleCloudVisionV1p1beta1GcsSource < 3) { |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1GcsSource--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1ImageAnnotationContext = 0; |
| api.GoogleCloudVisionV1p1beta1ImageAnnotationContext |
| buildGoogleCloudVisionV1p1beta1ImageAnnotationContext() { |
| var o = api.GoogleCloudVisionV1p1beta1ImageAnnotationContext(); |
| buildCounterGoogleCloudVisionV1p1beta1ImageAnnotationContext++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ImageAnnotationContext < 3) { |
| o.pageNumber = 42; |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ImageAnnotationContext--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1ImageAnnotationContext( |
| api.GoogleCloudVisionV1p1beta1ImageAnnotationContext o) { |
| buildCounterGoogleCloudVisionV1p1beta1ImageAnnotationContext++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ImageAnnotationContext < 3) { |
| unittest.expect( |
| o.pageNumber!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ImageAnnotationContext--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1ImageProperties = 0; |
| api.GoogleCloudVisionV1p1beta1ImageProperties |
| buildGoogleCloudVisionV1p1beta1ImageProperties() { |
| var o = api.GoogleCloudVisionV1p1beta1ImageProperties(); |
| buildCounterGoogleCloudVisionV1p1beta1ImageProperties++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ImageProperties < 3) { |
| o.dominantColors = |
| buildGoogleCloudVisionV1p1beta1DominantColorsAnnotation(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ImageProperties--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1ImageProperties( |
| api.GoogleCloudVisionV1p1beta1ImageProperties o) { |
| buildCounterGoogleCloudVisionV1p1beta1ImageProperties++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ImageProperties < 3) { |
| checkGoogleCloudVisionV1p1beta1DominantColorsAnnotation(o.dominantColors! |
| as api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ImageProperties--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1InputConfig = 0; |
| api.GoogleCloudVisionV1p1beta1InputConfig |
| buildGoogleCloudVisionV1p1beta1InputConfig() { |
| var o = api.GoogleCloudVisionV1p1beta1InputConfig(); |
| buildCounterGoogleCloudVisionV1p1beta1InputConfig++; |
| if (buildCounterGoogleCloudVisionV1p1beta1InputConfig < 3) { |
| o.content = 'foo'; |
| o.gcsSource = buildGoogleCloudVisionV1p1beta1GcsSource(); |
| o.mimeType = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1InputConfig--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1InputConfig( |
| api.GoogleCloudVisionV1p1beta1InputConfig o) { |
| buildCounterGoogleCloudVisionV1p1beta1InputConfig++; |
| if (buildCounterGoogleCloudVisionV1p1beta1InputConfig < 3) { |
| unittest.expect( |
| o.content!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p1beta1GcsSource( |
| o.gcsSource! as api.GoogleCloudVisionV1p1beta1GcsSource); |
| unittest.expect( |
| o.mimeType!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1InputConfig--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation = 0; |
| api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation |
| buildGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.languageCode = 'foo'; |
| o.mid = 'foo'; |
| o.name = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation( |
| api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation < 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1LocationInfo = 0; |
| api.GoogleCloudVisionV1p1beta1LocationInfo |
| buildGoogleCloudVisionV1p1beta1LocationInfo() { |
| var o = api.GoogleCloudVisionV1p1beta1LocationInfo(); |
| buildCounterGoogleCloudVisionV1p1beta1LocationInfo++; |
| if (buildCounterGoogleCloudVisionV1p1beta1LocationInfo < 3) { |
| o.latLng = buildLatLng(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1LocationInfo--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1LocationInfo( |
| api.GoogleCloudVisionV1p1beta1LocationInfo o) { |
| buildCounterGoogleCloudVisionV1p1beta1LocationInfo++; |
| if (buildCounterGoogleCloudVisionV1p1beta1LocationInfo < 3) { |
| checkLatLng(o.latLng! as api.LatLng); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1LocationInfo--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1NormalizedVertex = 0; |
| api.GoogleCloudVisionV1p1beta1NormalizedVertex |
| buildGoogleCloudVisionV1p1beta1NormalizedVertex() { |
| var o = api.GoogleCloudVisionV1p1beta1NormalizedVertex(); |
| buildCounterGoogleCloudVisionV1p1beta1NormalizedVertex++; |
| if (buildCounterGoogleCloudVisionV1p1beta1NormalizedVertex < 3) { |
| o.x = 42.0; |
| o.y = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1NormalizedVertex--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1NormalizedVertex( |
| api.GoogleCloudVisionV1p1beta1NormalizedVertex o) { |
| buildCounterGoogleCloudVisionV1p1beta1NormalizedVertex++; |
| if (buildCounterGoogleCloudVisionV1p1beta1NormalizedVertex < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1NormalizedVertex--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1OperationMetadata = 0; |
| api.GoogleCloudVisionV1p1beta1OperationMetadata |
| buildGoogleCloudVisionV1p1beta1OperationMetadata() { |
| var o = api.GoogleCloudVisionV1p1beta1OperationMetadata(); |
| buildCounterGoogleCloudVisionV1p1beta1OperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p1beta1OperationMetadata < 3) { |
| o.createTime = 'foo'; |
| o.state = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1OperationMetadata--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1OperationMetadata( |
| api.GoogleCloudVisionV1p1beta1OperationMetadata o) { |
| buildCounterGoogleCloudVisionV1p1beta1OperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p1beta1OperationMetadata < 3) { |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.state!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1OperationMetadata--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1OutputConfig = 0; |
| api.GoogleCloudVisionV1p1beta1OutputConfig |
| buildGoogleCloudVisionV1p1beta1OutputConfig() { |
| var o = api.GoogleCloudVisionV1p1beta1OutputConfig(); |
| buildCounterGoogleCloudVisionV1p1beta1OutputConfig++; |
| if (buildCounterGoogleCloudVisionV1p1beta1OutputConfig < 3) { |
| o.batchSize = 42; |
| o.gcsDestination = buildGoogleCloudVisionV1p1beta1GcsDestination(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1OutputConfig--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1OutputConfig( |
| api.GoogleCloudVisionV1p1beta1OutputConfig o) { |
| buildCounterGoogleCloudVisionV1p1beta1OutputConfig++; |
| if (buildCounterGoogleCloudVisionV1p1beta1OutputConfig < 3) { |
| unittest.expect( |
| o.batchSize!, |
| unittest.equals(42), |
| ); |
| checkGoogleCloudVisionV1p1beta1GcsDestination( |
| o.gcsDestination! as api.GoogleCloudVisionV1p1beta1GcsDestination); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1OutputConfig--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Block> buildUnnamed4190() { |
| var o = <api.GoogleCloudVisionV1p1beta1Block>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Block()); |
| o.add(buildGoogleCloudVisionV1p1beta1Block()); |
| return o; |
| } |
| |
| void checkUnnamed4190(core.List<api.GoogleCloudVisionV1p1beta1Block> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Block( |
| o[0] as api.GoogleCloudVisionV1p1beta1Block); |
| checkGoogleCloudVisionV1p1beta1Block( |
| o[1] as api.GoogleCloudVisionV1p1beta1Block); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1Page = 0; |
| api.GoogleCloudVisionV1p1beta1Page buildGoogleCloudVisionV1p1beta1Page() { |
| var o = api.GoogleCloudVisionV1p1beta1Page(); |
| buildCounterGoogleCloudVisionV1p1beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Page < 3) { |
| o.blocks = buildUnnamed4190(); |
| o.confidence = 42.0; |
| o.height = 42; |
| o.property = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); |
| o.width = 42; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Page--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Page(api.GoogleCloudVisionV1p1beta1Page o) { |
| buildCounterGoogleCloudVisionV1p1beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Page < 3) { |
| checkUnnamed4190(o.blocks!); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.height!, |
| unittest.equals(42), |
| ); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty); |
| unittest.expect( |
| o.width!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Page--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Word> buildUnnamed4191() { |
| var o = <api.GoogleCloudVisionV1p1beta1Word>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Word()); |
| o.add(buildGoogleCloudVisionV1p1beta1Word()); |
| return o; |
| } |
| |
| void checkUnnamed4191(core.List<api.GoogleCloudVisionV1p1beta1Word> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Word( |
| o[0] as api.GoogleCloudVisionV1p1beta1Word); |
| checkGoogleCloudVisionV1p1beta1Word( |
| o[1] as api.GoogleCloudVisionV1p1beta1Word); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1Paragraph = 0; |
| api.GoogleCloudVisionV1p1beta1Paragraph |
| buildGoogleCloudVisionV1p1beta1Paragraph() { |
| var o = api.GoogleCloudVisionV1p1beta1Paragraph(); |
| buildCounterGoogleCloudVisionV1p1beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Paragraph < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); |
| o.words = buildUnnamed4191(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Paragraph--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Paragraph( |
| api.GoogleCloudVisionV1p1beta1Paragraph o) { |
| buildCounterGoogleCloudVisionV1p1beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Paragraph < 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty); |
| checkUnnamed4191(o.words!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Paragraph--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1Position = 0; |
| api.GoogleCloudVisionV1p1beta1Position |
| buildGoogleCloudVisionV1p1beta1Position() { |
| var o = api.GoogleCloudVisionV1p1beta1Position(); |
| buildCounterGoogleCloudVisionV1p1beta1Position++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Position < 3) { |
| o.x = 42.0; |
| o.y = 42.0; |
| o.z = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Position--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Position( |
| api.GoogleCloudVisionV1p1beta1Position o) { |
| buildCounterGoogleCloudVisionV1p1beta1Position++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Position < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.z!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Position--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1ProductKeyValue> buildUnnamed4192() { |
| var o = <api.GoogleCloudVisionV1p1beta1ProductKeyValue>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ProductKeyValue()); |
| o.add(buildGoogleCloudVisionV1p1beta1ProductKeyValue()); |
| return o; |
| } |
| |
| void checkUnnamed4192( |
| core.List<api.GoogleCloudVisionV1p1beta1ProductKeyValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ProductKeyValue( |
| o[0] as api.GoogleCloudVisionV1p1beta1ProductKeyValue); |
| checkGoogleCloudVisionV1p1beta1ProductKeyValue( |
| o[1] as api.GoogleCloudVisionV1p1beta1ProductKeyValue); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1Product = 0; |
| api.GoogleCloudVisionV1p1beta1Product buildGoogleCloudVisionV1p1beta1Product() { |
| var o = api.GoogleCloudVisionV1p1beta1Product(); |
| buildCounterGoogleCloudVisionV1p1beta1Product++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Product < 3) { |
| o.description = 'foo'; |
| o.displayName = 'foo'; |
| o.name = 'foo'; |
| o.productCategory = 'foo'; |
| o.productLabels = buildUnnamed4192(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Product--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Product( |
| api.GoogleCloudVisionV1p1beta1Product o) { |
| buildCounterGoogleCloudVisionV1p1beta1Product++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Product < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.productCategory!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4192(o.productLabels!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Product--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1ProductKeyValue = 0; |
| api.GoogleCloudVisionV1p1beta1ProductKeyValue |
| buildGoogleCloudVisionV1p1beta1ProductKeyValue() { |
| var o = api.GoogleCloudVisionV1p1beta1ProductKeyValue(); |
| buildCounterGoogleCloudVisionV1p1beta1ProductKeyValue++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductKeyValue < 3) { |
| o.key = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductKeyValue--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1ProductKeyValue( |
| api.GoogleCloudVisionV1p1beta1ProductKeyValue o) { |
| buildCounterGoogleCloudVisionV1p1beta1ProductKeyValue++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductKeyValue < 3) { |
| unittest.expect( |
| o.key!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductKeyValue--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult> |
| buildUnnamed4193() { |
| var o = <api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult()); |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult()); |
| return o; |
| } |
| |
| void checkUnnamed4193( |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult( |
| o[0] as api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult( |
| o[1] as api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult> |
| buildUnnamed4194() { |
| var o = <api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed4194( |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult( |
| o[0] as api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult( |
| o[1] as api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults = 0; |
| api.GoogleCloudVisionV1p1beta1ProductSearchResults |
| buildGoogleCloudVisionV1p1beta1ProductSearchResults() { |
| var o = api.GoogleCloudVisionV1p1beta1ProductSearchResults(); |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults < 3) { |
| o.indexTime = 'foo'; |
| o.productGroupedResults = buildUnnamed4193(); |
| o.results = buildUnnamed4194(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1ProductSearchResults( |
| api.GoogleCloudVisionV1p1beta1ProductSearchResults o) { |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults < 3) { |
| unittest.expect( |
| o.indexTime!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4193(o.productGroupedResults!); |
| checkUnnamed4194(o.results!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation> |
| buildUnnamed4195() { |
| var o = |
| <api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4195( |
| core.List< |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation(o[0] |
| as api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation(o[1] |
| as api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult> |
| buildUnnamed4196() { |
| var o = <api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed4196( |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult( |
| o[0] as api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult( |
| o[1] as api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult); |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult = 0; |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult |
| buildGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult() { |
| var o = api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult(); |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult < |
| 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.objectAnnotations = buildUnnamed4195(); |
| o.results = buildUnnamed4196(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult( |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult o) { |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult < |
| 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| checkUnnamed4195(o.objectAnnotations!); |
| checkUnnamed4196(o.results!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult--; |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation = |
| 0; |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation |
| buildGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation < |
| 3) { |
| o.languageCode = 'foo'; |
| o.mid = 'foo'; |
| o.name = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation( |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation < |
| 3) { |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsResult = 0; |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult |
| buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult() { |
| var o = api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult(); |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsResult++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsResult < 3) { |
| o.image = 'foo'; |
| o.product = buildGoogleCloudVisionV1p1beta1Product(); |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult( |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult o) { |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsResult++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsResult < 3) { |
| unittest.expect( |
| o.image!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p1beta1Product( |
| o.product! as api.GoogleCloudVisionV1p1beta1Product); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsResult--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1Property = 0; |
| api.GoogleCloudVisionV1p1beta1Property |
| buildGoogleCloudVisionV1p1beta1Property() { |
| var o = api.GoogleCloudVisionV1p1beta1Property(); |
| buildCounterGoogleCloudVisionV1p1beta1Property++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Property < 3) { |
| o.name = 'foo'; |
| o.uint64Value = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Property--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Property( |
| api.GoogleCloudVisionV1p1beta1Property o) { |
| buildCounterGoogleCloudVisionV1p1beta1Property++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Property < 3) { |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.uint64Value!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Property--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1SafeSearchAnnotation = 0; |
| api.GoogleCloudVisionV1p1beta1SafeSearchAnnotation |
| buildGoogleCloudVisionV1p1beta1SafeSearchAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1SafeSearchAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1SafeSearchAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1SafeSearchAnnotation < 3) { |
| o.adult = 'foo'; |
| o.medical = 'foo'; |
| o.racy = 'foo'; |
| o.spoof = 'foo'; |
| o.violence = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1SafeSearchAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1SafeSearchAnnotation( |
| api.GoogleCloudVisionV1p1beta1SafeSearchAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1SafeSearchAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1SafeSearchAnnotation < 3) { |
| unittest.expect( |
| o.adult!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.medical!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.racy!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.spoof!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.violence!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1SafeSearchAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1Symbol = 0; |
| api.GoogleCloudVisionV1p1beta1Symbol buildGoogleCloudVisionV1p1beta1Symbol() { |
| var o = api.GoogleCloudVisionV1p1beta1Symbol(); |
| buildCounterGoogleCloudVisionV1p1beta1Symbol++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Symbol < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Symbol--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Symbol( |
| api.GoogleCloudVisionV1p1beta1Symbol o) { |
| buildCounterGoogleCloudVisionV1p1beta1Symbol++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Symbol < 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty); |
| unittest.expect( |
| o.text!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Symbol--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Page> buildUnnamed4197() { |
| var o = <api.GoogleCloudVisionV1p1beta1Page>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Page()); |
| o.add(buildGoogleCloudVisionV1p1beta1Page()); |
| return o; |
| } |
| |
| void checkUnnamed4197(core.List<api.GoogleCloudVisionV1p1beta1Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Page( |
| o[0] as api.GoogleCloudVisionV1p1beta1Page); |
| checkGoogleCloudVisionV1p1beta1Page( |
| o[1] as api.GoogleCloudVisionV1p1beta1Page); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1TextAnnotation = 0; |
| api.GoogleCloudVisionV1p1beta1TextAnnotation |
| buildGoogleCloudVisionV1p1beta1TextAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1TextAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotation < 3) { |
| o.pages = buildUnnamed4197(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1TextAnnotation( |
| api.GoogleCloudVisionV1p1beta1TextAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotation < 3) { |
| checkUnnamed4197(o.pages!); |
| unittest.expect( |
| o.text!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak = 0; |
| api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak |
| buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak() { |
| var o = api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak(); |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak < 3) { |
| o.isPrefix = true; |
| o.type = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak( |
| api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak o) { |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak < 3) { |
| unittest.expect(o.isPrefix!, unittest.isTrue); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage = |
| 0; |
| api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage |
| buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage() { |
| var o = api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage(); |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage < |
| 3) { |
| o.confidence = 42.0; |
| o.languageCode = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage( |
| api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage o) { |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage < |
| 3) { |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage> |
| buildUnnamed4198() { |
| var o = <api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage()); |
| o.add(buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage()); |
| return o; |
| } |
| |
| void checkUnnamed4198( |
| core.List<api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage( |
| o[0] as api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage( |
| o[1] as api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty = 0; |
| api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty |
| buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty() { |
| var o = api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty < 3) { |
| o.detectedBreak = |
| buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak(); |
| o.detectedLanguages = buildUnnamed4198(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty( |
| api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty o) { |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty < 3) { |
| checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak(o.detectedBreak! |
| as api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak); |
| checkUnnamed4198(o.detectedLanguages!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1Vertex = 0; |
| api.GoogleCloudVisionV1p1beta1Vertex buildGoogleCloudVisionV1p1beta1Vertex() { |
| var o = api.GoogleCloudVisionV1p1beta1Vertex(); |
| buildCounterGoogleCloudVisionV1p1beta1Vertex++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Vertex < 3) { |
| o.x = 42; |
| o.y = 42; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Vertex--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Vertex( |
| api.GoogleCloudVisionV1p1beta1Vertex o) { |
| buildCounterGoogleCloudVisionV1p1beta1Vertex++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Vertex < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Vertex--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel> |
| buildUnnamed4199() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebLabel()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebLabel()); |
| return o; |
| } |
| |
| void checkUnnamed4199( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebLabel( |
| o[0] as api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebLabel( |
| o[1] as api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> |
| buildUnnamed4200() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4200( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebPage> |
| buildUnnamed4201() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebPage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebPage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebPage()); |
| return o; |
| } |
| |
| void checkUnnamed4201( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebPage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebPage( |
| o[0] as api.GoogleCloudVisionV1p1beta1WebDetectionWebPage); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebPage( |
| o[1] as api.GoogleCloudVisionV1p1beta1WebDetectionWebPage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> |
| buildUnnamed4202() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4202( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> |
| buildUnnamed4203() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4203( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity> |
| buildUnnamed4204() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebEntity()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebEntity()); |
| return o; |
| } |
| |
| void checkUnnamed4204( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebEntity( |
| o[0] as api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebEntity( |
| o[1] as api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1WebDetection = 0; |
| api.GoogleCloudVisionV1p1beta1WebDetection |
| buildGoogleCloudVisionV1p1beta1WebDetection() { |
| var o = api.GoogleCloudVisionV1p1beta1WebDetection(); |
| buildCounterGoogleCloudVisionV1p1beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetection < 3) { |
| o.bestGuessLabels = buildUnnamed4199(); |
| o.fullMatchingImages = buildUnnamed4200(); |
| o.pagesWithMatchingImages = buildUnnamed4201(); |
| o.partialMatchingImages = buildUnnamed4202(); |
| o.visuallySimilarImages = buildUnnamed4203(); |
| o.webEntities = buildUnnamed4204(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetection--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1WebDetection( |
| api.GoogleCloudVisionV1p1beta1WebDetection o) { |
| buildCounterGoogleCloudVisionV1p1beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetection < 3) { |
| checkUnnamed4199(o.bestGuessLabels!); |
| checkUnnamed4200(o.fullMatchingImages!); |
| checkUnnamed4201(o.pagesWithMatchingImages!); |
| checkUnnamed4202(o.partialMatchingImages!); |
| checkUnnamed4203(o.visuallySimilarImages!); |
| checkUnnamed4204(o.webEntities!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetection--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebEntity = 0; |
| api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity |
| buildGoogleCloudVisionV1p1beta1WebDetectionWebEntity() { |
| var o = api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity(); |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebEntity++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebEntity < 3) { |
| o.description = 'foo'; |
| o.entityId = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebEntity--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1WebDetectionWebEntity( |
| api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity o) { |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebEntity++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebEntity < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.entityId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebEntity--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebImage = 0; |
| api.GoogleCloudVisionV1p1beta1WebDetectionWebImage |
| buildGoogleCloudVisionV1p1beta1WebDetectionWebImage() { |
| var o = api.GoogleCloudVisionV1p1beta1WebDetectionWebImage(); |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebImage++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebImage < 3) { |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebImage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| api.GoogleCloudVisionV1p1beta1WebDetectionWebImage o) { |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebImage++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebImage < 3) { |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.url!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebImage--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebLabel = 0; |
| api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel |
| buildGoogleCloudVisionV1p1beta1WebDetectionWebLabel() { |
| var o = api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel(); |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebLabel++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebLabel < 3) { |
| o.label = 'foo'; |
| o.languageCode = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebLabel--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1WebDetectionWebLabel( |
| api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel o) { |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebLabel++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebLabel < 3) { |
| unittest.expect( |
| o.label!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebLabel--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> |
| buildUnnamed4205() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4205( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> |
| buildUnnamed4206() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4206( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage = 0; |
| api.GoogleCloudVisionV1p1beta1WebDetectionWebPage |
| buildGoogleCloudVisionV1p1beta1WebDetectionWebPage() { |
| var o = api.GoogleCloudVisionV1p1beta1WebDetectionWebPage(); |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage < 3) { |
| o.fullMatchingImages = buildUnnamed4205(); |
| o.pageTitle = 'foo'; |
| o.partialMatchingImages = buildUnnamed4206(); |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1WebDetectionWebPage( |
| api.GoogleCloudVisionV1p1beta1WebDetectionWebPage o) { |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage < 3) { |
| checkUnnamed4205(o.fullMatchingImages!); |
| unittest.expect( |
| o.pageTitle!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4206(o.partialMatchingImages!); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.url!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Symbol> buildUnnamed4207() { |
| var o = <api.GoogleCloudVisionV1p1beta1Symbol>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Symbol()); |
| o.add(buildGoogleCloudVisionV1p1beta1Symbol()); |
| return o; |
| } |
| |
| void checkUnnamed4207(core.List<api.GoogleCloudVisionV1p1beta1Symbol> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Symbol( |
| o[0] as api.GoogleCloudVisionV1p1beta1Symbol); |
| checkGoogleCloudVisionV1p1beta1Symbol( |
| o[1] as api.GoogleCloudVisionV1p1beta1Symbol); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1Word = 0; |
| api.GoogleCloudVisionV1p1beta1Word buildGoogleCloudVisionV1p1beta1Word() { |
| var o = api.GoogleCloudVisionV1p1beta1Word(); |
| buildCounterGoogleCloudVisionV1p1beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Word < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); |
| o.symbols = buildUnnamed4207(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Word--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Word(api.GoogleCloudVisionV1p1beta1Word o) { |
| buildCounterGoogleCloudVisionV1p1beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Word < 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty); |
| checkUnnamed4207(o.symbols!); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Word--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1AnnotateImageResponse> |
| buildUnnamed4208() { |
| var o = <api.GoogleCloudVisionV1p2beta1AnnotateImageResponse>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1AnnotateImageResponse()); |
| o.add(buildGoogleCloudVisionV1p2beta1AnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4208( |
| core.List<api.GoogleCloudVisionV1p2beta1AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1AnnotateImageResponse( |
| o[0] as api.GoogleCloudVisionV1p2beta1AnnotateImageResponse); |
| checkGoogleCloudVisionV1p2beta1AnnotateImageResponse( |
| o[1] as api.GoogleCloudVisionV1p2beta1AnnotateImageResponse); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p2beta1AnnotateFileResponse |
| buildGoogleCloudVisionV1p2beta1AnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p2beta1AnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse < 3) { |
| o.error = buildStatus(); |
| o.inputConfig = buildGoogleCloudVisionV1p2beta1InputConfig(); |
| o.responses = buildUnnamed4208(); |
| o.totalPages = 42; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1AnnotateFileResponse( |
| api.GoogleCloudVisionV1p2beta1AnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse < 3) { |
| checkStatus(o.error! as api.Status); |
| checkGoogleCloudVisionV1p2beta1InputConfig( |
| o.inputConfig! as api.GoogleCloudVisionV1p2beta1InputConfig); |
| checkUnnamed4208(o.responses!); |
| unittest.expect( |
| o.totalPages!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotation> buildUnnamed4209() { |
| var o = <api.GoogleCloudVisionV1p2beta1FaceAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4209( |
| core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotation( |
| o[0] as api.GoogleCloudVisionV1p2beta1FaceAnnotation); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotation( |
| o[1] as api.GoogleCloudVisionV1p2beta1FaceAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> buildUnnamed4210() { |
| var o = <api.GoogleCloudVisionV1p2beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4210( |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p2beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p2beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> buildUnnamed4211() { |
| var o = <api.GoogleCloudVisionV1p2beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4211( |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p2beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p2beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation> |
| buildUnnamed4212() { |
| var o = <api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4212( |
| core.List<api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation( |
| o[0] as api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation); |
| checkGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation( |
| o[1] as api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> buildUnnamed4213() { |
| var o = <api.GoogleCloudVisionV1p2beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4213( |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p2beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p2beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> buildUnnamed4214() { |
| var o = <api.GoogleCloudVisionV1p2beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4214( |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p2beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p2beta1EntityAnnotation); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse = 0; |
| api.GoogleCloudVisionV1p2beta1AnnotateImageResponse |
| buildGoogleCloudVisionV1p2beta1AnnotateImageResponse() { |
| var o = api.GoogleCloudVisionV1p2beta1AnnotateImageResponse(); |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse < 3) { |
| o.context = buildGoogleCloudVisionV1p2beta1ImageAnnotationContext(); |
| o.cropHintsAnnotation = |
| buildGoogleCloudVisionV1p2beta1CropHintsAnnotation(); |
| o.error = buildStatus(); |
| o.faceAnnotations = buildUnnamed4209(); |
| o.fullTextAnnotation = buildGoogleCloudVisionV1p2beta1TextAnnotation(); |
| o.imagePropertiesAnnotation = |
| buildGoogleCloudVisionV1p2beta1ImageProperties(); |
| o.labelAnnotations = buildUnnamed4210(); |
| o.landmarkAnnotations = buildUnnamed4211(); |
| o.localizedObjectAnnotations = buildUnnamed4212(); |
| o.logoAnnotations = buildUnnamed4213(); |
| o.productSearchResults = |
| buildGoogleCloudVisionV1p2beta1ProductSearchResults(); |
| o.safeSearchAnnotation = |
| buildGoogleCloudVisionV1p2beta1SafeSearchAnnotation(); |
| o.textAnnotations = buildUnnamed4214(); |
| o.webDetection = buildGoogleCloudVisionV1p2beta1WebDetection(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1AnnotateImageResponse( |
| api.GoogleCloudVisionV1p2beta1AnnotateImageResponse o) { |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse < 3) { |
| checkGoogleCloudVisionV1p2beta1ImageAnnotationContext( |
| o.context! as api.GoogleCloudVisionV1p2beta1ImageAnnotationContext); |
| checkGoogleCloudVisionV1p2beta1CropHintsAnnotation(o.cropHintsAnnotation! |
| as api.GoogleCloudVisionV1p2beta1CropHintsAnnotation); |
| checkStatus(o.error! as api.Status); |
| checkUnnamed4209(o.faceAnnotations!); |
| checkGoogleCloudVisionV1p2beta1TextAnnotation( |
| o.fullTextAnnotation! as api.GoogleCloudVisionV1p2beta1TextAnnotation); |
| checkGoogleCloudVisionV1p2beta1ImageProperties(o.imagePropertiesAnnotation! |
| as api.GoogleCloudVisionV1p2beta1ImageProperties); |
| checkUnnamed4210(o.labelAnnotations!); |
| checkUnnamed4211(o.landmarkAnnotations!); |
| checkUnnamed4212(o.localizedObjectAnnotations!); |
| checkUnnamed4213(o.logoAnnotations!); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResults(o.productSearchResults! |
| as api.GoogleCloudVisionV1p2beta1ProductSearchResults); |
| checkGoogleCloudVisionV1p2beta1SafeSearchAnnotation(o.safeSearchAnnotation! |
| as api.GoogleCloudVisionV1p2beta1SafeSearchAnnotation); |
| checkUnnamed4214(o.textAnnotations!); |
| checkGoogleCloudVisionV1p2beta1WebDetection( |
| o.webDetection! as api.GoogleCloudVisionV1p2beta1WebDetection); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse |
| buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse < 3) { |
| o.outputConfig = buildGoogleCloudVisionV1p2beta1OutputConfig(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse( |
| api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse < 3) { |
| checkGoogleCloudVisionV1p2beta1OutputConfig( |
| o.outputConfig! as api.GoogleCloudVisionV1p2beta1OutputConfig); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse> |
| buildUnnamed4215() { |
| var o = <api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse()); |
| o.add(buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4215( |
| core.List<api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse( |
| o[0] as api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse); |
| checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse( |
| o[1] as api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse = |
| 0; |
| api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse |
| buildGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse() { |
| var o = api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse(); |
| buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| o.responses = buildUnnamed4215(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse( |
| api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse o) { |
| buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| checkUnnamed4215(o.responses!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Paragraph> buildUnnamed4216() { |
| var o = <api.GoogleCloudVisionV1p2beta1Paragraph>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Paragraph()); |
| o.add(buildGoogleCloudVisionV1p2beta1Paragraph()); |
| return o; |
| } |
| |
| void checkUnnamed4216(core.List<api.GoogleCloudVisionV1p2beta1Paragraph> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Paragraph( |
| o[0] as api.GoogleCloudVisionV1p2beta1Paragraph); |
| checkGoogleCloudVisionV1p2beta1Paragraph( |
| o[1] as api.GoogleCloudVisionV1p2beta1Paragraph); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1Block = 0; |
| api.GoogleCloudVisionV1p2beta1Block buildGoogleCloudVisionV1p2beta1Block() { |
| var o = api.GoogleCloudVisionV1p2beta1Block(); |
| buildCounterGoogleCloudVisionV1p2beta1Block++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Block < 3) { |
| o.blockType = 'foo'; |
| o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.paragraphs = buildUnnamed4216(); |
| o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Block--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Block( |
| api.GoogleCloudVisionV1p2beta1Block o) { |
| buildCounterGoogleCloudVisionV1p2beta1Block++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Block < 3) { |
| unittest.expect( |
| o.blockType!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4216(o.paragraphs!); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Block--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1NormalizedVertex> buildUnnamed4217() { |
| var o = <api.GoogleCloudVisionV1p2beta1NormalizedVertex>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1NormalizedVertex()); |
| o.add(buildGoogleCloudVisionV1p2beta1NormalizedVertex()); |
| return o; |
| } |
| |
| void checkUnnamed4217( |
| core.List<api.GoogleCloudVisionV1p2beta1NormalizedVertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1NormalizedVertex( |
| o[0] as api.GoogleCloudVisionV1p2beta1NormalizedVertex); |
| checkGoogleCloudVisionV1p2beta1NormalizedVertex( |
| o[1] as api.GoogleCloudVisionV1p2beta1NormalizedVertex); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Vertex> buildUnnamed4218() { |
| var o = <api.GoogleCloudVisionV1p2beta1Vertex>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Vertex()); |
| o.add(buildGoogleCloudVisionV1p2beta1Vertex()); |
| return o; |
| } |
| |
| void checkUnnamed4218(core.List<api.GoogleCloudVisionV1p2beta1Vertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Vertex( |
| o[0] as api.GoogleCloudVisionV1p2beta1Vertex); |
| checkGoogleCloudVisionV1p2beta1Vertex( |
| o[1] as api.GoogleCloudVisionV1p2beta1Vertex); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1BoundingPoly = 0; |
| api.GoogleCloudVisionV1p2beta1BoundingPoly |
| buildGoogleCloudVisionV1p2beta1BoundingPoly() { |
| var o = api.GoogleCloudVisionV1p2beta1BoundingPoly(); |
| buildCounterGoogleCloudVisionV1p2beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p2beta1BoundingPoly < 3) { |
| o.normalizedVertices = buildUnnamed4217(); |
| o.vertices = buildUnnamed4218(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1BoundingPoly--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| api.GoogleCloudVisionV1p2beta1BoundingPoly o) { |
| buildCounterGoogleCloudVisionV1p2beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p2beta1BoundingPoly < 3) { |
| checkUnnamed4217(o.normalizedVertices!); |
| checkUnnamed4218(o.vertices!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1BoundingPoly--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1ColorInfo = 0; |
| api.GoogleCloudVisionV1p2beta1ColorInfo |
| buildGoogleCloudVisionV1p2beta1ColorInfo() { |
| var o = api.GoogleCloudVisionV1p2beta1ColorInfo(); |
| buildCounterGoogleCloudVisionV1p2beta1ColorInfo++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ColorInfo < 3) { |
| o.color = buildColor(); |
| o.pixelFraction = 42.0; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ColorInfo--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1ColorInfo( |
| api.GoogleCloudVisionV1p2beta1ColorInfo o) { |
| buildCounterGoogleCloudVisionV1p2beta1ColorInfo++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ColorInfo < 3) { |
| checkColor(o.color! as api.Color); |
| unittest.expect( |
| o.pixelFraction!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ColorInfo--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1CropHint = 0; |
| api.GoogleCloudVisionV1p2beta1CropHint |
| buildGoogleCloudVisionV1p2beta1CropHint() { |
| var o = api.GoogleCloudVisionV1p2beta1CropHint(); |
| buildCounterGoogleCloudVisionV1p2beta1CropHint++; |
| if (buildCounterGoogleCloudVisionV1p2beta1CropHint < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.importanceFraction = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1CropHint--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1CropHint( |
| api.GoogleCloudVisionV1p2beta1CropHint o) { |
| buildCounterGoogleCloudVisionV1p2beta1CropHint++; |
| if (buildCounterGoogleCloudVisionV1p2beta1CropHint < 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.importanceFraction!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1CropHint--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1CropHint> buildUnnamed4219() { |
| var o = <api.GoogleCloudVisionV1p2beta1CropHint>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1CropHint()); |
| o.add(buildGoogleCloudVisionV1p2beta1CropHint()); |
| return o; |
| } |
| |
| void checkUnnamed4219(core.List<api.GoogleCloudVisionV1p2beta1CropHint> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1CropHint( |
| o[0] as api.GoogleCloudVisionV1p2beta1CropHint); |
| checkGoogleCloudVisionV1p2beta1CropHint( |
| o[1] as api.GoogleCloudVisionV1p2beta1CropHint); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation = 0; |
| api.GoogleCloudVisionV1p2beta1CropHintsAnnotation |
| buildGoogleCloudVisionV1p2beta1CropHintsAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1CropHintsAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation < 3) { |
| o.cropHints = buildUnnamed4219(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1CropHintsAnnotation( |
| api.GoogleCloudVisionV1p2beta1CropHintsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation < 3) { |
| checkUnnamed4219(o.cropHints!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1ColorInfo> buildUnnamed4220() { |
| var o = <api.GoogleCloudVisionV1p2beta1ColorInfo>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ColorInfo()); |
| o.add(buildGoogleCloudVisionV1p2beta1ColorInfo()); |
| return o; |
| } |
| |
| void checkUnnamed4220(core.List<api.GoogleCloudVisionV1p2beta1ColorInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ColorInfo( |
| o[0] as api.GoogleCloudVisionV1p2beta1ColorInfo); |
| checkGoogleCloudVisionV1p2beta1ColorInfo( |
| o[1] as api.GoogleCloudVisionV1p2beta1ColorInfo); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation = 0; |
| api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation |
| buildGoogleCloudVisionV1p2beta1DominantColorsAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation < 3) { |
| o.colors = buildUnnamed4220(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1DominantColorsAnnotation( |
| api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation < 3) { |
| checkUnnamed4220(o.colors!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1LocationInfo> buildUnnamed4221() { |
| var o = <api.GoogleCloudVisionV1p2beta1LocationInfo>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1LocationInfo()); |
| o.add(buildGoogleCloudVisionV1p2beta1LocationInfo()); |
| return o; |
| } |
| |
| void checkUnnamed4221(core.List<api.GoogleCloudVisionV1p2beta1LocationInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1LocationInfo( |
| o[0] as api.GoogleCloudVisionV1p2beta1LocationInfo); |
| checkGoogleCloudVisionV1p2beta1LocationInfo( |
| o[1] as api.GoogleCloudVisionV1p2beta1LocationInfo); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Property> buildUnnamed4222() { |
| var o = <api.GoogleCloudVisionV1p2beta1Property>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Property()); |
| o.add(buildGoogleCloudVisionV1p2beta1Property()); |
| return o; |
| } |
| |
| void checkUnnamed4222(core.List<api.GoogleCloudVisionV1p2beta1Property> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Property( |
| o[0] as api.GoogleCloudVisionV1p2beta1Property); |
| checkGoogleCloudVisionV1p2beta1Property( |
| o[1] as api.GoogleCloudVisionV1p2beta1Property); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation = 0; |
| api.GoogleCloudVisionV1p2beta1EntityAnnotation |
| buildGoogleCloudVisionV1p2beta1EntityAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1EntityAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.description = 'foo'; |
| o.locale = 'foo'; |
| o.locations = buildUnnamed4221(); |
| o.mid = 'foo'; |
| o.properties = buildUnnamed4222(); |
| o.score = 42.0; |
| o.topicality = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| api.GoogleCloudVisionV1p2beta1EntityAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation < 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.locale!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4221(o.locations!); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4222(o.properties!); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.topicality!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark> |
| buildUnnamed4223() { |
| var o = <api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark()); |
| o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark()); |
| return o; |
| } |
| |
| void checkUnnamed4223( |
| core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark( |
| o[0] as api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark( |
| o[1] as api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation = 0; |
| api.GoogleCloudVisionV1p2beta1FaceAnnotation |
| buildGoogleCloudVisionV1p2beta1FaceAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1FaceAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation < 3) { |
| o.angerLikelihood = 'foo'; |
| o.blurredLikelihood = 'foo'; |
| o.boundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.detectionConfidence = 42.0; |
| o.fdBoundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.headwearLikelihood = 'foo'; |
| o.joyLikelihood = 'foo'; |
| o.landmarkingConfidence = 42.0; |
| o.landmarks = buildUnnamed4223(); |
| o.panAngle = 42.0; |
| o.rollAngle = 42.0; |
| o.sorrowLikelihood = 'foo'; |
| o.surpriseLikelihood = 'foo'; |
| o.tiltAngle = 42.0; |
| o.underExposedLikelihood = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1FaceAnnotation( |
| api.GoogleCloudVisionV1p2beta1FaceAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation < 3) { |
| unittest.expect( |
| o.angerLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.blurredLikelihood!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| unittest.expect( |
| o.detectionConfidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| o.fdBoundingPoly! as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| unittest.expect( |
| o.headwearLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.joyLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.landmarkingConfidence!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4223(o.landmarks!); |
| unittest.expect( |
| o.panAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.rollAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.sorrowLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.surpriseLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.tiltAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.underExposedLikelihood!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark = 0; |
| api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark |
| buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark() { |
| var o = api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark(); |
| buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark++; |
| if (buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark < 3) { |
| o.position = buildGoogleCloudVisionV1p2beta1Position(); |
| o.type = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark( |
| api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark o) { |
| buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark++; |
| if (buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark < 3) { |
| checkGoogleCloudVisionV1p2beta1Position( |
| o.position! as api.GoogleCloudVisionV1p2beta1Position); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1GcsDestination = 0; |
| api.GoogleCloudVisionV1p2beta1GcsDestination |
| buildGoogleCloudVisionV1p2beta1GcsDestination() { |
| var o = api.GoogleCloudVisionV1p2beta1GcsDestination(); |
| buildCounterGoogleCloudVisionV1p2beta1GcsDestination++; |
| if (buildCounterGoogleCloudVisionV1p2beta1GcsDestination < 3) { |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1GcsDestination--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1GcsDestination( |
| api.GoogleCloudVisionV1p2beta1GcsDestination o) { |
| buildCounterGoogleCloudVisionV1p2beta1GcsDestination++; |
| if (buildCounterGoogleCloudVisionV1p2beta1GcsDestination < 3) { |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1GcsDestination--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1GcsSource = 0; |
| api.GoogleCloudVisionV1p2beta1GcsSource |
| buildGoogleCloudVisionV1p2beta1GcsSource() { |
| var o = api.GoogleCloudVisionV1p2beta1GcsSource(); |
| buildCounterGoogleCloudVisionV1p2beta1GcsSource++; |
| if (buildCounterGoogleCloudVisionV1p2beta1GcsSource < 3) { |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1GcsSource--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1GcsSource( |
| api.GoogleCloudVisionV1p2beta1GcsSource o) { |
| buildCounterGoogleCloudVisionV1p2beta1GcsSource++; |
| if (buildCounterGoogleCloudVisionV1p2beta1GcsSource < 3) { |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1GcsSource--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext = 0; |
| api.GoogleCloudVisionV1p2beta1ImageAnnotationContext |
| buildGoogleCloudVisionV1p2beta1ImageAnnotationContext() { |
| var o = api.GoogleCloudVisionV1p2beta1ImageAnnotationContext(); |
| buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext < 3) { |
| o.pageNumber = 42; |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1ImageAnnotationContext( |
| api.GoogleCloudVisionV1p2beta1ImageAnnotationContext o) { |
| buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext < 3) { |
| unittest.expect( |
| o.pageNumber!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1ImageProperties = 0; |
| api.GoogleCloudVisionV1p2beta1ImageProperties |
| buildGoogleCloudVisionV1p2beta1ImageProperties() { |
| var o = api.GoogleCloudVisionV1p2beta1ImageProperties(); |
| buildCounterGoogleCloudVisionV1p2beta1ImageProperties++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ImageProperties < 3) { |
| o.dominantColors = |
| buildGoogleCloudVisionV1p2beta1DominantColorsAnnotation(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ImageProperties--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1ImageProperties( |
| api.GoogleCloudVisionV1p2beta1ImageProperties o) { |
| buildCounterGoogleCloudVisionV1p2beta1ImageProperties++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ImageProperties < 3) { |
| checkGoogleCloudVisionV1p2beta1DominantColorsAnnotation(o.dominantColors! |
| as api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ImageProperties--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1InputConfig = 0; |
| api.GoogleCloudVisionV1p2beta1InputConfig |
| buildGoogleCloudVisionV1p2beta1InputConfig() { |
| var o = api.GoogleCloudVisionV1p2beta1InputConfig(); |
| buildCounterGoogleCloudVisionV1p2beta1InputConfig++; |
| if (buildCounterGoogleCloudVisionV1p2beta1InputConfig < 3) { |
| o.content = 'foo'; |
| o.gcsSource = buildGoogleCloudVisionV1p2beta1GcsSource(); |
| o.mimeType = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1InputConfig--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1InputConfig( |
| api.GoogleCloudVisionV1p2beta1InputConfig o) { |
| buildCounterGoogleCloudVisionV1p2beta1InputConfig++; |
| if (buildCounterGoogleCloudVisionV1p2beta1InputConfig < 3) { |
| unittest.expect( |
| o.content!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p2beta1GcsSource( |
| o.gcsSource! as api.GoogleCloudVisionV1p2beta1GcsSource); |
| unittest.expect( |
| o.mimeType!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1InputConfig--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation = 0; |
| api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation |
| buildGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.languageCode = 'foo'; |
| o.mid = 'foo'; |
| o.name = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation( |
| api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation < 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1LocationInfo = 0; |
| api.GoogleCloudVisionV1p2beta1LocationInfo |
| buildGoogleCloudVisionV1p2beta1LocationInfo() { |
| var o = api.GoogleCloudVisionV1p2beta1LocationInfo(); |
| buildCounterGoogleCloudVisionV1p2beta1LocationInfo++; |
| if (buildCounterGoogleCloudVisionV1p2beta1LocationInfo < 3) { |
| o.latLng = buildLatLng(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1LocationInfo--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1LocationInfo( |
| api.GoogleCloudVisionV1p2beta1LocationInfo o) { |
| buildCounterGoogleCloudVisionV1p2beta1LocationInfo++; |
| if (buildCounterGoogleCloudVisionV1p2beta1LocationInfo < 3) { |
| checkLatLng(o.latLng! as api.LatLng); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1LocationInfo--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex = 0; |
| api.GoogleCloudVisionV1p2beta1NormalizedVertex |
| buildGoogleCloudVisionV1p2beta1NormalizedVertex() { |
| var o = api.GoogleCloudVisionV1p2beta1NormalizedVertex(); |
| buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex++; |
| if (buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex < 3) { |
| o.x = 42.0; |
| o.y = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1NormalizedVertex( |
| api.GoogleCloudVisionV1p2beta1NormalizedVertex o) { |
| buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex++; |
| if (buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1OperationMetadata = 0; |
| api.GoogleCloudVisionV1p2beta1OperationMetadata |
| buildGoogleCloudVisionV1p2beta1OperationMetadata() { |
| var o = api.GoogleCloudVisionV1p2beta1OperationMetadata(); |
| buildCounterGoogleCloudVisionV1p2beta1OperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p2beta1OperationMetadata < 3) { |
| o.createTime = 'foo'; |
| o.state = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1OperationMetadata--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1OperationMetadata( |
| api.GoogleCloudVisionV1p2beta1OperationMetadata o) { |
| buildCounterGoogleCloudVisionV1p2beta1OperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p2beta1OperationMetadata < 3) { |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.state!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1OperationMetadata--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1OutputConfig = 0; |
| api.GoogleCloudVisionV1p2beta1OutputConfig |
| buildGoogleCloudVisionV1p2beta1OutputConfig() { |
| var o = api.GoogleCloudVisionV1p2beta1OutputConfig(); |
| buildCounterGoogleCloudVisionV1p2beta1OutputConfig++; |
| if (buildCounterGoogleCloudVisionV1p2beta1OutputConfig < 3) { |
| o.batchSize = 42; |
| o.gcsDestination = buildGoogleCloudVisionV1p2beta1GcsDestination(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1OutputConfig--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1OutputConfig( |
| api.GoogleCloudVisionV1p2beta1OutputConfig o) { |
| buildCounterGoogleCloudVisionV1p2beta1OutputConfig++; |
| if (buildCounterGoogleCloudVisionV1p2beta1OutputConfig < 3) { |
| unittest.expect( |
| o.batchSize!, |
| unittest.equals(42), |
| ); |
| checkGoogleCloudVisionV1p2beta1GcsDestination( |
| o.gcsDestination! as api.GoogleCloudVisionV1p2beta1GcsDestination); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1OutputConfig--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Block> buildUnnamed4224() { |
| var o = <api.GoogleCloudVisionV1p2beta1Block>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Block()); |
| o.add(buildGoogleCloudVisionV1p2beta1Block()); |
| return o; |
| } |
| |
| void checkUnnamed4224(core.List<api.GoogleCloudVisionV1p2beta1Block> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Block( |
| o[0] as api.GoogleCloudVisionV1p2beta1Block); |
| checkGoogleCloudVisionV1p2beta1Block( |
| o[1] as api.GoogleCloudVisionV1p2beta1Block); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1Page = 0; |
| api.GoogleCloudVisionV1p2beta1Page buildGoogleCloudVisionV1p2beta1Page() { |
| var o = api.GoogleCloudVisionV1p2beta1Page(); |
| buildCounterGoogleCloudVisionV1p2beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Page < 3) { |
| o.blocks = buildUnnamed4224(); |
| o.confidence = 42.0; |
| o.height = 42; |
| o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); |
| o.width = 42; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Page--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Page(api.GoogleCloudVisionV1p2beta1Page o) { |
| buildCounterGoogleCloudVisionV1p2beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Page < 3) { |
| checkUnnamed4224(o.blocks!); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.height!, |
| unittest.equals(42), |
| ); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty); |
| unittest.expect( |
| o.width!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Page--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Word> buildUnnamed4225() { |
| var o = <api.GoogleCloudVisionV1p2beta1Word>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Word()); |
| o.add(buildGoogleCloudVisionV1p2beta1Word()); |
| return o; |
| } |
| |
| void checkUnnamed4225(core.List<api.GoogleCloudVisionV1p2beta1Word> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Word( |
| o[0] as api.GoogleCloudVisionV1p2beta1Word); |
| checkGoogleCloudVisionV1p2beta1Word( |
| o[1] as api.GoogleCloudVisionV1p2beta1Word); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1Paragraph = 0; |
| api.GoogleCloudVisionV1p2beta1Paragraph |
| buildGoogleCloudVisionV1p2beta1Paragraph() { |
| var o = api.GoogleCloudVisionV1p2beta1Paragraph(); |
| buildCounterGoogleCloudVisionV1p2beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Paragraph < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); |
| o.words = buildUnnamed4225(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Paragraph--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Paragraph( |
| api.GoogleCloudVisionV1p2beta1Paragraph o) { |
| buildCounterGoogleCloudVisionV1p2beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Paragraph < 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty); |
| checkUnnamed4225(o.words!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Paragraph--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1Position = 0; |
| api.GoogleCloudVisionV1p2beta1Position |
| buildGoogleCloudVisionV1p2beta1Position() { |
| var o = api.GoogleCloudVisionV1p2beta1Position(); |
| buildCounterGoogleCloudVisionV1p2beta1Position++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Position < 3) { |
| o.x = 42.0; |
| o.y = 42.0; |
| o.z = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Position--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Position( |
| api.GoogleCloudVisionV1p2beta1Position o) { |
| buildCounterGoogleCloudVisionV1p2beta1Position++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Position < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.z!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Position--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1ProductKeyValue> buildUnnamed4226() { |
| var o = <api.GoogleCloudVisionV1p2beta1ProductKeyValue>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ProductKeyValue()); |
| o.add(buildGoogleCloudVisionV1p2beta1ProductKeyValue()); |
| return o; |
| } |
| |
| void checkUnnamed4226( |
| core.List<api.GoogleCloudVisionV1p2beta1ProductKeyValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ProductKeyValue( |
| o[0] as api.GoogleCloudVisionV1p2beta1ProductKeyValue); |
| checkGoogleCloudVisionV1p2beta1ProductKeyValue( |
| o[1] as api.GoogleCloudVisionV1p2beta1ProductKeyValue); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1Product = 0; |
| api.GoogleCloudVisionV1p2beta1Product buildGoogleCloudVisionV1p2beta1Product() { |
| var o = api.GoogleCloudVisionV1p2beta1Product(); |
| buildCounterGoogleCloudVisionV1p2beta1Product++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Product < 3) { |
| o.description = 'foo'; |
| o.displayName = 'foo'; |
| o.name = 'foo'; |
| o.productCategory = 'foo'; |
| o.productLabels = buildUnnamed4226(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Product--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Product( |
| api.GoogleCloudVisionV1p2beta1Product o) { |
| buildCounterGoogleCloudVisionV1p2beta1Product++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Product < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.productCategory!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4226(o.productLabels!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Product--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1ProductKeyValue = 0; |
| api.GoogleCloudVisionV1p2beta1ProductKeyValue |
| buildGoogleCloudVisionV1p2beta1ProductKeyValue() { |
| var o = api.GoogleCloudVisionV1p2beta1ProductKeyValue(); |
| buildCounterGoogleCloudVisionV1p2beta1ProductKeyValue++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductKeyValue < 3) { |
| o.key = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductKeyValue--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1ProductKeyValue( |
| api.GoogleCloudVisionV1p2beta1ProductKeyValue o) { |
| buildCounterGoogleCloudVisionV1p2beta1ProductKeyValue++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductKeyValue < 3) { |
| unittest.expect( |
| o.key!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductKeyValue--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult> |
| buildUnnamed4227() { |
| var o = <api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult()); |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult()); |
| return o; |
| } |
| |
| void checkUnnamed4227( |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult( |
| o[0] as api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult( |
| o[1] as api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult> |
| buildUnnamed4228() { |
| var o = <api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed4228( |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult( |
| o[0] as api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult( |
| o[1] as api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults = 0; |
| api.GoogleCloudVisionV1p2beta1ProductSearchResults |
| buildGoogleCloudVisionV1p2beta1ProductSearchResults() { |
| var o = api.GoogleCloudVisionV1p2beta1ProductSearchResults(); |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults < 3) { |
| o.indexTime = 'foo'; |
| o.productGroupedResults = buildUnnamed4227(); |
| o.results = buildUnnamed4228(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1ProductSearchResults( |
| api.GoogleCloudVisionV1p2beta1ProductSearchResults o) { |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults < 3) { |
| unittest.expect( |
| o.indexTime!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4227(o.productGroupedResults!); |
| checkUnnamed4228(o.results!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation> |
| buildUnnamed4229() { |
| var o = |
| <api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4229( |
| core.List< |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation(o[0] |
| as api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation(o[1] |
| as api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult> |
| buildUnnamed4230() { |
| var o = <api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed4230( |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult( |
| o[0] as api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult( |
| o[1] as api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult); |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult = 0; |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult |
| buildGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult() { |
| var o = api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult(); |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult < |
| 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.objectAnnotations = buildUnnamed4229(); |
| o.results = buildUnnamed4230(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult( |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult o) { |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult < |
| 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| checkUnnamed4229(o.objectAnnotations!); |
| checkUnnamed4230(o.results!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult--; |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation = |
| 0; |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation |
| buildGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation < |
| 3) { |
| o.languageCode = 'foo'; |
| o.mid = 'foo'; |
| o.name = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation( |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation < |
| 3) { |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsResult = 0; |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult |
| buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult() { |
| var o = api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult(); |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsResult++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsResult < 3) { |
| o.image = 'foo'; |
| o.product = buildGoogleCloudVisionV1p2beta1Product(); |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult( |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult o) { |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsResult++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsResult < 3) { |
| unittest.expect( |
| o.image!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p2beta1Product( |
| o.product! as api.GoogleCloudVisionV1p2beta1Product); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsResult--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1Property = 0; |
| api.GoogleCloudVisionV1p2beta1Property |
| buildGoogleCloudVisionV1p2beta1Property() { |
| var o = api.GoogleCloudVisionV1p2beta1Property(); |
| buildCounterGoogleCloudVisionV1p2beta1Property++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Property < 3) { |
| o.name = 'foo'; |
| o.uint64Value = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Property--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Property( |
| api.GoogleCloudVisionV1p2beta1Property o) { |
| buildCounterGoogleCloudVisionV1p2beta1Property++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Property < 3) { |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.uint64Value!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Property--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation = 0; |
| api.GoogleCloudVisionV1p2beta1SafeSearchAnnotation |
| buildGoogleCloudVisionV1p2beta1SafeSearchAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1SafeSearchAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation < 3) { |
| o.adult = 'foo'; |
| o.medical = 'foo'; |
| o.racy = 'foo'; |
| o.spoof = 'foo'; |
| o.violence = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1SafeSearchAnnotation( |
| api.GoogleCloudVisionV1p2beta1SafeSearchAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation < 3) { |
| unittest.expect( |
| o.adult!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.medical!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.racy!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.spoof!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.violence!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1Symbol = 0; |
| api.GoogleCloudVisionV1p2beta1Symbol buildGoogleCloudVisionV1p2beta1Symbol() { |
| var o = api.GoogleCloudVisionV1p2beta1Symbol(); |
| buildCounterGoogleCloudVisionV1p2beta1Symbol++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Symbol < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Symbol--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Symbol( |
| api.GoogleCloudVisionV1p2beta1Symbol o) { |
| buildCounterGoogleCloudVisionV1p2beta1Symbol++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Symbol < 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty); |
| unittest.expect( |
| o.text!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Symbol--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Page> buildUnnamed4231() { |
| var o = <api.GoogleCloudVisionV1p2beta1Page>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Page()); |
| o.add(buildGoogleCloudVisionV1p2beta1Page()); |
| return o; |
| } |
| |
| void checkUnnamed4231(core.List<api.GoogleCloudVisionV1p2beta1Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Page( |
| o[0] as api.GoogleCloudVisionV1p2beta1Page); |
| checkGoogleCloudVisionV1p2beta1Page( |
| o[1] as api.GoogleCloudVisionV1p2beta1Page); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1TextAnnotation = 0; |
| api.GoogleCloudVisionV1p2beta1TextAnnotation |
| buildGoogleCloudVisionV1p2beta1TextAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1TextAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotation < 3) { |
| o.pages = buildUnnamed4231(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1TextAnnotation( |
| api.GoogleCloudVisionV1p2beta1TextAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotation < 3) { |
| checkUnnamed4231(o.pages!); |
| unittest.expect( |
| o.text!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak = 0; |
| api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak |
| buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak() { |
| var o = api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(); |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak < 3) { |
| o.isPrefix = true; |
| o.type = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak( |
| api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak o) { |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak < 3) { |
| unittest.expect(o.isPrefix!, unittest.isTrue); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage = |
| 0; |
| api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage |
| buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage() { |
| var o = api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(); |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage < |
| 3) { |
| o.confidence = 42.0; |
| o.languageCode = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage( |
| api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage o) { |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage < |
| 3) { |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage> |
| buildUnnamed4232() { |
| var o = <api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage()); |
| o.add(buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage()); |
| return o; |
| } |
| |
| void checkUnnamed4232( |
| core.List<api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage( |
| o[0] as api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage( |
| o[1] as api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty = 0; |
| api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty |
| buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty() { |
| var o = api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty < 3) { |
| o.detectedBreak = |
| buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(); |
| o.detectedLanguages = buildUnnamed4232(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty( |
| api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty o) { |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty < 3) { |
| checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(o.detectedBreak! |
| as api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak); |
| checkUnnamed4232(o.detectedLanguages!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1Vertex = 0; |
| api.GoogleCloudVisionV1p2beta1Vertex buildGoogleCloudVisionV1p2beta1Vertex() { |
| var o = api.GoogleCloudVisionV1p2beta1Vertex(); |
| buildCounterGoogleCloudVisionV1p2beta1Vertex++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Vertex < 3) { |
| o.x = 42; |
| o.y = 42; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Vertex--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Vertex( |
| api.GoogleCloudVisionV1p2beta1Vertex o) { |
| buildCounterGoogleCloudVisionV1p2beta1Vertex++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Vertex < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Vertex--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel> |
| buildUnnamed4233() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel()); |
| return o; |
| } |
| |
| void checkUnnamed4233( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel( |
| o[0] as api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel( |
| o[1] as api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> |
| buildUnnamed4234() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4234( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebPage> |
| buildUnnamed4235() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebPage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebPage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebPage()); |
| return o; |
| } |
| |
| void checkUnnamed4235( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebPage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebPage( |
| o[0] as api.GoogleCloudVisionV1p2beta1WebDetectionWebPage); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebPage( |
| o[1] as api.GoogleCloudVisionV1p2beta1WebDetectionWebPage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> |
| buildUnnamed4236() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4236( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> |
| buildUnnamed4237() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4237( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity> |
| buildUnnamed4238() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity()); |
| return o; |
| } |
| |
| void checkUnnamed4238( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity( |
| o[0] as api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity( |
| o[1] as api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1WebDetection = 0; |
| api.GoogleCloudVisionV1p2beta1WebDetection |
| buildGoogleCloudVisionV1p2beta1WebDetection() { |
| var o = api.GoogleCloudVisionV1p2beta1WebDetection(); |
| buildCounterGoogleCloudVisionV1p2beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetection < 3) { |
| o.bestGuessLabels = buildUnnamed4233(); |
| o.fullMatchingImages = buildUnnamed4234(); |
| o.pagesWithMatchingImages = buildUnnamed4235(); |
| o.partialMatchingImages = buildUnnamed4236(); |
| o.visuallySimilarImages = buildUnnamed4237(); |
| o.webEntities = buildUnnamed4238(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetection--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1WebDetection( |
| api.GoogleCloudVisionV1p2beta1WebDetection o) { |
| buildCounterGoogleCloudVisionV1p2beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetection < 3) { |
| checkUnnamed4233(o.bestGuessLabels!); |
| checkUnnamed4234(o.fullMatchingImages!); |
| checkUnnamed4235(o.pagesWithMatchingImages!); |
| checkUnnamed4236(o.partialMatchingImages!); |
| checkUnnamed4237(o.visuallySimilarImages!); |
| checkUnnamed4238(o.webEntities!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetection--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity = 0; |
| api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity |
| buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity() { |
| var o = api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity(); |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity < 3) { |
| o.description = 'foo'; |
| o.entityId = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity( |
| api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity o) { |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.entityId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage = 0; |
| api.GoogleCloudVisionV1p2beta1WebDetectionWebImage |
| buildGoogleCloudVisionV1p2beta1WebDetectionWebImage() { |
| var o = api.GoogleCloudVisionV1p2beta1WebDetectionWebImage(); |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage < 3) { |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| api.GoogleCloudVisionV1p2beta1WebDetectionWebImage o) { |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage < 3) { |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.url!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel = 0; |
| api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel |
| buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel() { |
| var o = api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel(); |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel < 3) { |
| o.label = 'foo'; |
| o.languageCode = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel( |
| api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel o) { |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel < 3) { |
| unittest.expect( |
| o.label!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> |
| buildUnnamed4239() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4239( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> |
| buildUnnamed4240() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4240( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage = 0; |
| api.GoogleCloudVisionV1p2beta1WebDetectionWebPage |
| buildGoogleCloudVisionV1p2beta1WebDetectionWebPage() { |
| var o = api.GoogleCloudVisionV1p2beta1WebDetectionWebPage(); |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage < 3) { |
| o.fullMatchingImages = buildUnnamed4239(); |
| o.pageTitle = 'foo'; |
| o.partialMatchingImages = buildUnnamed4240(); |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1WebDetectionWebPage( |
| api.GoogleCloudVisionV1p2beta1WebDetectionWebPage o) { |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage < 3) { |
| checkUnnamed4239(o.fullMatchingImages!); |
| unittest.expect( |
| o.pageTitle!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4240(o.partialMatchingImages!); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.url!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Symbol> buildUnnamed4241() { |
| var o = <api.GoogleCloudVisionV1p2beta1Symbol>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Symbol()); |
| o.add(buildGoogleCloudVisionV1p2beta1Symbol()); |
| return o; |
| } |
| |
| void checkUnnamed4241(core.List<api.GoogleCloudVisionV1p2beta1Symbol> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Symbol( |
| o[0] as api.GoogleCloudVisionV1p2beta1Symbol); |
| checkGoogleCloudVisionV1p2beta1Symbol( |
| o[1] as api.GoogleCloudVisionV1p2beta1Symbol); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1Word = 0; |
| api.GoogleCloudVisionV1p2beta1Word buildGoogleCloudVisionV1p2beta1Word() { |
| var o = api.GoogleCloudVisionV1p2beta1Word(); |
| buildCounterGoogleCloudVisionV1p2beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Word < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); |
| o.symbols = buildUnnamed4241(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Word--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Word(api.GoogleCloudVisionV1p2beta1Word o) { |
| buildCounterGoogleCloudVisionV1p2beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Word < 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty); |
| checkUnnamed4241(o.symbols!); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Word--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1AnnotateImageResponse> |
| buildUnnamed4242() { |
| var o = <api.GoogleCloudVisionV1p3beta1AnnotateImageResponse>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1AnnotateImageResponse()); |
| o.add(buildGoogleCloudVisionV1p3beta1AnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4242( |
| core.List<api.GoogleCloudVisionV1p3beta1AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1AnnotateImageResponse( |
| o[0] as api.GoogleCloudVisionV1p3beta1AnnotateImageResponse); |
| checkGoogleCloudVisionV1p3beta1AnnotateImageResponse( |
| o[1] as api.GoogleCloudVisionV1p3beta1AnnotateImageResponse); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p3beta1AnnotateFileResponse |
| buildGoogleCloudVisionV1p3beta1AnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p3beta1AnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse < 3) { |
| o.error = buildStatus(); |
| o.inputConfig = buildGoogleCloudVisionV1p3beta1InputConfig(); |
| o.responses = buildUnnamed4242(); |
| o.totalPages = 42; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1AnnotateFileResponse( |
| api.GoogleCloudVisionV1p3beta1AnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse < 3) { |
| checkStatus(o.error! as api.Status); |
| checkGoogleCloudVisionV1p3beta1InputConfig( |
| o.inputConfig! as api.GoogleCloudVisionV1p3beta1InputConfig); |
| checkUnnamed4242(o.responses!); |
| unittest.expect( |
| o.totalPages!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotation> buildUnnamed4243() { |
| var o = <api.GoogleCloudVisionV1p3beta1FaceAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4243( |
| core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotation( |
| o[0] as api.GoogleCloudVisionV1p3beta1FaceAnnotation); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotation( |
| o[1] as api.GoogleCloudVisionV1p3beta1FaceAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> buildUnnamed4244() { |
| var o = <api.GoogleCloudVisionV1p3beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4244( |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p3beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p3beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> buildUnnamed4245() { |
| var o = <api.GoogleCloudVisionV1p3beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4245( |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p3beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p3beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation> |
| buildUnnamed4246() { |
| var o = <api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4246( |
| core.List<api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation( |
| o[0] as api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation); |
| checkGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation( |
| o[1] as api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> buildUnnamed4247() { |
| var o = <api.GoogleCloudVisionV1p3beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4247( |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p3beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p3beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> buildUnnamed4248() { |
| var o = <api.GoogleCloudVisionV1p3beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4248( |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p3beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p3beta1EntityAnnotation); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse = 0; |
| api.GoogleCloudVisionV1p3beta1AnnotateImageResponse |
| buildGoogleCloudVisionV1p3beta1AnnotateImageResponse() { |
| var o = api.GoogleCloudVisionV1p3beta1AnnotateImageResponse(); |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse < 3) { |
| o.context = buildGoogleCloudVisionV1p3beta1ImageAnnotationContext(); |
| o.cropHintsAnnotation = |
| buildGoogleCloudVisionV1p3beta1CropHintsAnnotation(); |
| o.error = buildStatus(); |
| o.faceAnnotations = buildUnnamed4243(); |
| o.fullTextAnnotation = buildGoogleCloudVisionV1p3beta1TextAnnotation(); |
| o.imagePropertiesAnnotation = |
| buildGoogleCloudVisionV1p3beta1ImageProperties(); |
| o.labelAnnotations = buildUnnamed4244(); |
| o.landmarkAnnotations = buildUnnamed4245(); |
| o.localizedObjectAnnotations = buildUnnamed4246(); |
| o.logoAnnotations = buildUnnamed4247(); |
| o.productSearchResults = |
| buildGoogleCloudVisionV1p3beta1ProductSearchResults(); |
| o.safeSearchAnnotation = |
| buildGoogleCloudVisionV1p3beta1SafeSearchAnnotation(); |
| o.textAnnotations = buildUnnamed4248(); |
| o.webDetection = buildGoogleCloudVisionV1p3beta1WebDetection(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1AnnotateImageResponse( |
| api.GoogleCloudVisionV1p3beta1AnnotateImageResponse o) { |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse < 3) { |
| checkGoogleCloudVisionV1p3beta1ImageAnnotationContext( |
| o.context! as api.GoogleCloudVisionV1p3beta1ImageAnnotationContext); |
| checkGoogleCloudVisionV1p3beta1CropHintsAnnotation(o.cropHintsAnnotation! |
| as api.GoogleCloudVisionV1p3beta1CropHintsAnnotation); |
| checkStatus(o.error! as api.Status); |
| checkUnnamed4243(o.faceAnnotations!); |
| checkGoogleCloudVisionV1p3beta1TextAnnotation( |
| o.fullTextAnnotation! as api.GoogleCloudVisionV1p3beta1TextAnnotation); |
| checkGoogleCloudVisionV1p3beta1ImageProperties(o.imagePropertiesAnnotation! |
| as api.GoogleCloudVisionV1p3beta1ImageProperties); |
| checkUnnamed4244(o.labelAnnotations!); |
| checkUnnamed4245(o.landmarkAnnotations!); |
| checkUnnamed4246(o.localizedObjectAnnotations!); |
| checkUnnamed4247(o.logoAnnotations!); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResults(o.productSearchResults! |
| as api.GoogleCloudVisionV1p3beta1ProductSearchResults); |
| checkGoogleCloudVisionV1p3beta1SafeSearchAnnotation(o.safeSearchAnnotation! |
| as api.GoogleCloudVisionV1p3beta1SafeSearchAnnotation); |
| checkUnnamed4248(o.textAnnotations!); |
| checkGoogleCloudVisionV1p3beta1WebDetection( |
| o.webDetection! as api.GoogleCloudVisionV1p3beta1WebDetection); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse |
| buildGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse < 3) { |
| o.outputConfig = buildGoogleCloudVisionV1p3beta1OutputConfig(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse( |
| api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse < 3) { |
| checkGoogleCloudVisionV1p3beta1OutputConfig( |
| o.outputConfig! as api.GoogleCloudVisionV1p3beta1OutputConfig); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse> |
| buildUnnamed4249() { |
| var o = <api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse()); |
| o.add(buildGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4249( |
| core.List<api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse( |
| o[0] as api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse); |
| checkGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse( |
| o[1] as api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse = |
| 0; |
| api.GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse |
| buildGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse() { |
| var o = api.GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse(); |
| buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| o.responses = buildUnnamed4249(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse( |
| api.GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse o) { |
| buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| checkUnnamed4249(o.responses!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata = 0; |
| api.GoogleCloudVisionV1p3beta1BatchOperationMetadata |
| buildGoogleCloudVisionV1p3beta1BatchOperationMetadata() { |
| var o = api.GoogleCloudVisionV1p3beta1BatchOperationMetadata(); |
| buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata < 3) { |
| o.endTime = 'foo'; |
| o.state = 'foo'; |
| o.submitTime = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1BatchOperationMetadata( |
| api.GoogleCloudVisionV1p3beta1BatchOperationMetadata o) { |
| buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata < 3) { |
| unittest.expect( |
| o.endTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.state!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.submitTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Paragraph> buildUnnamed4250() { |
| var o = <api.GoogleCloudVisionV1p3beta1Paragraph>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Paragraph()); |
| o.add(buildGoogleCloudVisionV1p3beta1Paragraph()); |
| return o; |
| } |
| |
| void checkUnnamed4250(core.List<api.GoogleCloudVisionV1p3beta1Paragraph> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Paragraph( |
| o[0] as api.GoogleCloudVisionV1p3beta1Paragraph); |
| checkGoogleCloudVisionV1p3beta1Paragraph( |
| o[1] as api.GoogleCloudVisionV1p3beta1Paragraph); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1Block = 0; |
| api.GoogleCloudVisionV1p3beta1Block buildGoogleCloudVisionV1p3beta1Block() { |
| var o = api.GoogleCloudVisionV1p3beta1Block(); |
| buildCounterGoogleCloudVisionV1p3beta1Block++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Block < 3) { |
| o.blockType = 'foo'; |
| o.boundingBox = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.paragraphs = buildUnnamed4250(); |
| o.property = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Block--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Block( |
| api.GoogleCloudVisionV1p3beta1Block o) { |
| buildCounterGoogleCloudVisionV1p3beta1Block++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Block < 3) { |
| unittest.expect( |
| o.blockType!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4250(o.paragraphs!); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Block--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1NormalizedVertex> buildUnnamed4251() { |
| var o = <api.GoogleCloudVisionV1p3beta1NormalizedVertex>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1NormalizedVertex()); |
| o.add(buildGoogleCloudVisionV1p3beta1NormalizedVertex()); |
| return o; |
| } |
| |
| void checkUnnamed4251( |
| core.List<api.GoogleCloudVisionV1p3beta1NormalizedVertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1NormalizedVertex( |
| o[0] as api.GoogleCloudVisionV1p3beta1NormalizedVertex); |
| checkGoogleCloudVisionV1p3beta1NormalizedVertex( |
| o[1] as api.GoogleCloudVisionV1p3beta1NormalizedVertex); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Vertex> buildUnnamed4252() { |
| var o = <api.GoogleCloudVisionV1p3beta1Vertex>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Vertex()); |
| o.add(buildGoogleCloudVisionV1p3beta1Vertex()); |
| return o; |
| } |
| |
| void checkUnnamed4252(core.List<api.GoogleCloudVisionV1p3beta1Vertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Vertex( |
| o[0] as api.GoogleCloudVisionV1p3beta1Vertex); |
| checkGoogleCloudVisionV1p3beta1Vertex( |
| o[1] as api.GoogleCloudVisionV1p3beta1Vertex); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1BoundingPoly = 0; |
| api.GoogleCloudVisionV1p3beta1BoundingPoly |
| buildGoogleCloudVisionV1p3beta1BoundingPoly() { |
| var o = api.GoogleCloudVisionV1p3beta1BoundingPoly(); |
| buildCounterGoogleCloudVisionV1p3beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p3beta1BoundingPoly < 3) { |
| o.normalizedVertices = buildUnnamed4251(); |
| o.vertices = buildUnnamed4252(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1BoundingPoly--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| api.GoogleCloudVisionV1p3beta1BoundingPoly o) { |
| buildCounterGoogleCloudVisionV1p3beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p3beta1BoundingPoly < 3) { |
| checkUnnamed4251(o.normalizedVertices!); |
| checkUnnamed4252(o.vertices!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1BoundingPoly--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ColorInfo = 0; |
| api.GoogleCloudVisionV1p3beta1ColorInfo |
| buildGoogleCloudVisionV1p3beta1ColorInfo() { |
| var o = api.GoogleCloudVisionV1p3beta1ColorInfo(); |
| buildCounterGoogleCloudVisionV1p3beta1ColorInfo++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ColorInfo < 3) { |
| o.color = buildColor(); |
| o.pixelFraction = 42.0; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ColorInfo--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ColorInfo( |
| api.GoogleCloudVisionV1p3beta1ColorInfo o) { |
| buildCounterGoogleCloudVisionV1p3beta1ColorInfo++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ColorInfo < 3) { |
| checkColor(o.color! as api.Color); |
| unittest.expect( |
| o.pixelFraction!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ColorInfo--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1CropHint = 0; |
| api.GoogleCloudVisionV1p3beta1CropHint |
| buildGoogleCloudVisionV1p3beta1CropHint() { |
| var o = api.GoogleCloudVisionV1p3beta1CropHint(); |
| buildCounterGoogleCloudVisionV1p3beta1CropHint++; |
| if (buildCounterGoogleCloudVisionV1p3beta1CropHint < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.importanceFraction = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1CropHint--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1CropHint( |
| api.GoogleCloudVisionV1p3beta1CropHint o) { |
| buildCounterGoogleCloudVisionV1p3beta1CropHint++; |
| if (buildCounterGoogleCloudVisionV1p3beta1CropHint < 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.importanceFraction!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1CropHint--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1CropHint> buildUnnamed4253() { |
| var o = <api.GoogleCloudVisionV1p3beta1CropHint>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1CropHint()); |
| o.add(buildGoogleCloudVisionV1p3beta1CropHint()); |
| return o; |
| } |
| |
| void checkUnnamed4253(core.List<api.GoogleCloudVisionV1p3beta1CropHint> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1CropHint( |
| o[0] as api.GoogleCloudVisionV1p3beta1CropHint); |
| checkGoogleCloudVisionV1p3beta1CropHint( |
| o[1] as api.GoogleCloudVisionV1p3beta1CropHint); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation = 0; |
| api.GoogleCloudVisionV1p3beta1CropHintsAnnotation |
| buildGoogleCloudVisionV1p3beta1CropHintsAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1CropHintsAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation < 3) { |
| o.cropHints = buildUnnamed4253(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1CropHintsAnnotation( |
| api.GoogleCloudVisionV1p3beta1CropHintsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation < 3) { |
| checkUnnamed4253(o.cropHints!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ColorInfo> buildUnnamed4254() { |
| var o = <api.GoogleCloudVisionV1p3beta1ColorInfo>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ColorInfo()); |
| o.add(buildGoogleCloudVisionV1p3beta1ColorInfo()); |
| return o; |
| } |
| |
| void checkUnnamed4254(core.List<api.GoogleCloudVisionV1p3beta1ColorInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ColorInfo( |
| o[0] as api.GoogleCloudVisionV1p3beta1ColorInfo); |
| checkGoogleCloudVisionV1p3beta1ColorInfo( |
| o[1] as api.GoogleCloudVisionV1p3beta1ColorInfo); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation = 0; |
| api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation |
| buildGoogleCloudVisionV1p3beta1DominantColorsAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation < 3) { |
| o.colors = buildUnnamed4254(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1DominantColorsAnnotation( |
| api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation < 3) { |
| checkUnnamed4254(o.colors!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1LocationInfo> buildUnnamed4255() { |
| var o = <api.GoogleCloudVisionV1p3beta1LocationInfo>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1LocationInfo()); |
| o.add(buildGoogleCloudVisionV1p3beta1LocationInfo()); |
| return o; |
| } |
| |
| void checkUnnamed4255(core.List<api.GoogleCloudVisionV1p3beta1LocationInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1LocationInfo( |
| o[0] as api.GoogleCloudVisionV1p3beta1LocationInfo); |
| checkGoogleCloudVisionV1p3beta1LocationInfo( |
| o[1] as api.GoogleCloudVisionV1p3beta1LocationInfo); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Property> buildUnnamed4256() { |
| var o = <api.GoogleCloudVisionV1p3beta1Property>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Property()); |
| o.add(buildGoogleCloudVisionV1p3beta1Property()); |
| return o; |
| } |
| |
| void checkUnnamed4256(core.List<api.GoogleCloudVisionV1p3beta1Property> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Property( |
| o[0] as api.GoogleCloudVisionV1p3beta1Property); |
| checkGoogleCloudVisionV1p3beta1Property( |
| o[1] as api.GoogleCloudVisionV1p3beta1Property); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation = 0; |
| api.GoogleCloudVisionV1p3beta1EntityAnnotation |
| buildGoogleCloudVisionV1p3beta1EntityAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1EntityAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.description = 'foo'; |
| o.locale = 'foo'; |
| o.locations = buildUnnamed4255(); |
| o.mid = 'foo'; |
| o.properties = buildUnnamed4256(); |
| o.score = 42.0; |
| o.topicality = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| api.GoogleCloudVisionV1p3beta1EntityAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation < 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.locale!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4255(o.locations!); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4256(o.properties!); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.topicality!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark> |
| buildUnnamed4257() { |
| var o = <api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotationLandmark()); |
| o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotationLandmark()); |
| return o; |
| } |
| |
| void checkUnnamed4257( |
| core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotationLandmark( |
| o[0] as api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotationLandmark( |
| o[1] as api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1FaceAnnotation = 0; |
| api.GoogleCloudVisionV1p3beta1FaceAnnotation |
| buildGoogleCloudVisionV1p3beta1FaceAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1FaceAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1FaceAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1FaceAnnotation < 3) { |
| o.angerLikelihood = 'foo'; |
| o.blurredLikelihood = 'foo'; |
| o.boundingPoly = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.detectionConfidence = 42.0; |
| o.fdBoundingPoly = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.headwearLikelihood = 'foo'; |
| o.joyLikelihood = 'foo'; |
| o.landmarkingConfidence = 42.0; |
| o.landmarks = buildUnnamed4257(); |
| o.panAngle = 42.0; |
| o.rollAngle = 42.0; |
| o.sorrowLikelihood = 'foo'; |
| o.surpriseLikelihood = 'foo'; |
| o.tiltAngle = 42.0; |
| o.underExposedLikelihood = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1FaceAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1FaceAnnotation( |
| api.GoogleCloudVisionV1p3beta1FaceAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1FaceAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1FaceAnnotation < 3) { |
| unittest.expect( |
| o.angerLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.blurredLikelihood!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| unittest.expect( |
| o.detectionConfidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o.fdBoundingPoly! as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| unittest.expect( |
| o.headwearLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.joyLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.landmarkingConfidence!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4257(o.landmarks!); |
| unittest.expect( |
| o.panAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.rollAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.sorrowLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.surpriseLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.tiltAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.underExposedLikelihood!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1FaceAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1FaceAnnotationLandmark = 0; |
| api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark |
| buildGoogleCloudVisionV1p3beta1FaceAnnotationLandmark() { |
| var o = api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark(); |
| buildCounterGoogleCloudVisionV1p3beta1FaceAnnotationLandmark++; |
| if (buildCounterGoogleCloudVisionV1p3beta1FaceAnnotationLandmark < 3) { |
| o.position = buildGoogleCloudVisionV1p3beta1Position(); |
| o.type = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1FaceAnnotationLandmark--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1FaceAnnotationLandmark( |
| api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark o) { |
| buildCounterGoogleCloudVisionV1p3beta1FaceAnnotationLandmark++; |
| if (buildCounterGoogleCloudVisionV1p3beta1FaceAnnotationLandmark < 3) { |
| checkGoogleCloudVisionV1p3beta1Position( |
| o.position! as api.GoogleCloudVisionV1p3beta1Position); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1FaceAnnotationLandmark--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1GcsDestination = 0; |
| api.GoogleCloudVisionV1p3beta1GcsDestination |
| buildGoogleCloudVisionV1p3beta1GcsDestination() { |
| var o = api.GoogleCloudVisionV1p3beta1GcsDestination(); |
| buildCounterGoogleCloudVisionV1p3beta1GcsDestination++; |
| if (buildCounterGoogleCloudVisionV1p3beta1GcsDestination < 3) { |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1GcsDestination--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1GcsDestination( |
| api.GoogleCloudVisionV1p3beta1GcsDestination o) { |
| buildCounterGoogleCloudVisionV1p3beta1GcsDestination++; |
| if (buildCounterGoogleCloudVisionV1p3beta1GcsDestination < 3) { |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1GcsDestination--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1GcsSource = 0; |
| api.GoogleCloudVisionV1p3beta1GcsSource |
| buildGoogleCloudVisionV1p3beta1GcsSource() { |
| var o = api.GoogleCloudVisionV1p3beta1GcsSource(); |
| buildCounterGoogleCloudVisionV1p3beta1GcsSource++; |
| if (buildCounterGoogleCloudVisionV1p3beta1GcsSource < 3) { |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1GcsSource--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1GcsSource( |
| api.GoogleCloudVisionV1p3beta1GcsSource o) { |
| buildCounterGoogleCloudVisionV1p3beta1GcsSource++; |
| if (buildCounterGoogleCloudVisionV1p3beta1GcsSource < 3) { |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1GcsSource--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ImageAnnotationContext = 0; |
| api.GoogleCloudVisionV1p3beta1ImageAnnotationContext |
| buildGoogleCloudVisionV1p3beta1ImageAnnotationContext() { |
| var o = api.GoogleCloudVisionV1p3beta1ImageAnnotationContext(); |
| buildCounterGoogleCloudVisionV1p3beta1ImageAnnotationContext++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ImageAnnotationContext < 3) { |
| o.pageNumber = 42; |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ImageAnnotationContext--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ImageAnnotationContext( |
| api.GoogleCloudVisionV1p3beta1ImageAnnotationContext o) { |
| buildCounterGoogleCloudVisionV1p3beta1ImageAnnotationContext++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ImageAnnotationContext < 3) { |
| unittest.expect( |
| o.pageNumber!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ImageAnnotationContext--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ImageProperties = 0; |
| api.GoogleCloudVisionV1p3beta1ImageProperties |
| buildGoogleCloudVisionV1p3beta1ImageProperties() { |
| var o = api.GoogleCloudVisionV1p3beta1ImageProperties(); |
| buildCounterGoogleCloudVisionV1p3beta1ImageProperties++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ImageProperties < 3) { |
| o.dominantColors = |
| buildGoogleCloudVisionV1p3beta1DominantColorsAnnotation(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ImageProperties--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ImageProperties( |
| api.GoogleCloudVisionV1p3beta1ImageProperties o) { |
| buildCounterGoogleCloudVisionV1p3beta1ImageProperties++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ImageProperties < 3) { |
| checkGoogleCloudVisionV1p3beta1DominantColorsAnnotation(o.dominantColors! |
| as api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ImageProperties--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ReferenceImage> buildUnnamed4258() { |
| var o = <api.GoogleCloudVisionV1p3beta1ReferenceImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ReferenceImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1ReferenceImage()); |
| return o; |
| } |
| |
| void checkUnnamed4258( |
| core.List<api.GoogleCloudVisionV1p3beta1ReferenceImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ReferenceImage( |
| o[0] as api.GoogleCloudVisionV1p3beta1ReferenceImage); |
| checkGoogleCloudVisionV1p3beta1ReferenceImage( |
| o[1] as api.GoogleCloudVisionV1p3beta1ReferenceImage); |
| } |
| |
| core.List<api.Status> buildUnnamed4259() { |
| var o = <api.Status>[]; |
| o.add(buildStatus()); |
| o.add(buildStatus()); |
| return o; |
| } |
| |
| void checkUnnamed4259(core.List<api.Status> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkStatus(o[0] as api.Status); |
| checkStatus(o[1] as api.Status); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse = 0; |
| api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse |
| buildGoogleCloudVisionV1p3beta1ImportProductSetsResponse() { |
| var o = api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse(); |
| buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse < 3) { |
| o.referenceImages = buildUnnamed4258(); |
| o.statuses = buildUnnamed4259(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ImportProductSetsResponse( |
| api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse o) { |
| buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse < 3) { |
| checkUnnamed4258(o.referenceImages!); |
| checkUnnamed4259(o.statuses!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1InputConfig = 0; |
| api.GoogleCloudVisionV1p3beta1InputConfig |
| buildGoogleCloudVisionV1p3beta1InputConfig() { |
| var o = api.GoogleCloudVisionV1p3beta1InputConfig(); |
| buildCounterGoogleCloudVisionV1p3beta1InputConfig++; |
| if (buildCounterGoogleCloudVisionV1p3beta1InputConfig < 3) { |
| o.content = 'foo'; |
| o.gcsSource = buildGoogleCloudVisionV1p3beta1GcsSource(); |
| o.mimeType = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1InputConfig--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1InputConfig( |
| api.GoogleCloudVisionV1p3beta1InputConfig o) { |
| buildCounterGoogleCloudVisionV1p3beta1InputConfig++; |
| if (buildCounterGoogleCloudVisionV1p3beta1InputConfig < 3) { |
| unittest.expect( |
| o.content!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p3beta1GcsSource( |
| o.gcsSource! as api.GoogleCloudVisionV1p3beta1GcsSource); |
| unittest.expect( |
| o.mimeType!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1InputConfig--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation = 0; |
| api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation |
| buildGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.languageCode = 'foo'; |
| o.mid = 'foo'; |
| o.name = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation( |
| api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation < 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1LocationInfo = 0; |
| api.GoogleCloudVisionV1p3beta1LocationInfo |
| buildGoogleCloudVisionV1p3beta1LocationInfo() { |
| var o = api.GoogleCloudVisionV1p3beta1LocationInfo(); |
| buildCounterGoogleCloudVisionV1p3beta1LocationInfo++; |
| if (buildCounterGoogleCloudVisionV1p3beta1LocationInfo < 3) { |
| o.latLng = buildLatLng(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1LocationInfo--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1LocationInfo( |
| api.GoogleCloudVisionV1p3beta1LocationInfo o) { |
| buildCounterGoogleCloudVisionV1p3beta1LocationInfo++; |
| if (buildCounterGoogleCloudVisionV1p3beta1LocationInfo < 3) { |
| checkLatLng(o.latLng! as api.LatLng); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1LocationInfo--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex = 0; |
| api.GoogleCloudVisionV1p3beta1NormalizedVertex |
| buildGoogleCloudVisionV1p3beta1NormalizedVertex() { |
| var o = api.GoogleCloudVisionV1p3beta1NormalizedVertex(); |
| buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex++; |
| if (buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex < 3) { |
| o.x = 42.0; |
| o.y = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1NormalizedVertex( |
| api.GoogleCloudVisionV1p3beta1NormalizedVertex o) { |
| buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex++; |
| if (buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1OperationMetadata = 0; |
| api.GoogleCloudVisionV1p3beta1OperationMetadata |
| buildGoogleCloudVisionV1p3beta1OperationMetadata() { |
| var o = api.GoogleCloudVisionV1p3beta1OperationMetadata(); |
| buildCounterGoogleCloudVisionV1p3beta1OperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p3beta1OperationMetadata < 3) { |
| o.createTime = 'foo'; |
| o.state = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1OperationMetadata--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1OperationMetadata( |
| api.GoogleCloudVisionV1p3beta1OperationMetadata o) { |
| buildCounterGoogleCloudVisionV1p3beta1OperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p3beta1OperationMetadata < 3) { |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.state!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1OperationMetadata--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1OutputConfig = 0; |
| api.GoogleCloudVisionV1p3beta1OutputConfig |
| buildGoogleCloudVisionV1p3beta1OutputConfig() { |
| var o = api.GoogleCloudVisionV1p3beta1OutputConfig(); |
| buildCounterGoogleCloudVisionV1p3beta1OutputConfig++; |
| if (buildCounterGoogleCloudVisionV1p3beta1OutputConfig < 3) { |
| o.batchSize = 42; |
| o.gcsDestination = buildGoogleCloudVisionV1p3beta1GcsDestination(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1OutputConfig--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1OutputConfig( |
| api.GoogleCloudVisionV1p3beta1OutputConfig o) { |
| buildCounterGoogleCloudVisionV1p3beta1OutputConfig++; |
| if (buildCounterGoogleCloudVisionV1p3beta1OutputConfig < 3) { |
| unittest.expect( |
| o.batchSize!, |
| unittest.equals(42), |
| ); |
| checkGoogleCloudVisionV1p3beta1GcsDestination( |
| o.gcsDestination! as api.GoogleCloudVisionV1p3beta1GcsDestination); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1OutputConfig--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Block> buildUnnamed4260() { |
| var o = <api.GoogleCloudVisionV1p3beta1Block>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Block()); |
| o.add(buildGoogleCloudVisionV1p3beta1Block()); |
| return o; |
| } |
| |
| void checkUnnamed4260(core.List<api.GoogleCloudVisionV1p3beta1Block> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Block( |
| o[0] as api.GoogleCloudVisionV1p3beta1Block); |
| checkGoogleCloudVisionV1p3beta1Block( |
| o[1] as api.GoogleCloudVisionV1p3beta1Block); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1Page = 0; |
| api.GoogleCloudVisionV1p3beta1Page buildGoogleCloudVisionV1p3beta1Page() { |
| var o = api.GoogleCloudVisionV1p3beta1Page(); |
| buildCounterGoogleCloudVisionV1p3beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Page < 3) { |
| o.blocks = buildUnnamed4260(); |
| o.confidence = 42.0; |
| o.height = 42; |
| o.property = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); |
| o.width = 42; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Page--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Page(api.GoogleCloudVisionV1p3beta1Page o) { |
| buildCounterGoogleCloudVisionV1p3beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Page < 3) { |
| checkUnnamed4260(o.blocks!); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.height!, |
| unittest.equals(42), |
| ); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty); |
| unittest.expect( |
| o.width!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Page--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Word> buildUnnamed4261() { |
| var o = <api.GoogleCloudVisionV1p3beta1Word>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Word()); |
| o.add(buildGoogleCloudVisionV1p3beta1Word()); |
| return o; |
| } |
| |
| void checkUnnamed4261(core.List<api.GoogleCloudVisionV1p3beta1Word> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Word( |
| o[0] as api.GoogleCloudVisionV1p3beta1Word); |
| checkGoogleCloudVisionV1p3beta1Word( |
| o[1] as api.GoogleCloudVisionV1p3beta1Word); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1Paragraph = 0; |
| api.GoogleCloudVisionV1p3beta1Paragraph |
| buildGoogleCloudVisionV1p3beta1Paragraph() { |
| var o = api.GoogleCloudVisionV1p3beta1Paragraph(); |
| buildCounterGoogleCloudVisionV1p3beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Paragraph < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); |
| o.words = buildUnnamed4261(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Paragraph--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Paragraph( |
| api.GoogleCloudVisionV1p3beta1Paragraph o) { |
| buildCounterGoogleCloudVisionV1p3beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Paragraph < 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty); |
| checkUnnamed4261(o.words!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Paragraph--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1Position = 0; |
| api.GoogleCloudVisionV1p3beta1Position |
| buildGoogleCloudVisionV1p3beta1Position() { |
| var o = api.GoogleCloudVisionV1p3beta1Position(); |
| buildCounterGoogleCloudVisionV1p3beta1Position++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Position < 3) { |
| o.x = 42.0; |
| o.y = 42.0; |
| o.z = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Position--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Position( |
| api.GoogleCloudVisionV1p3beta1Position o) { |
| buildCounterGoogleCloudVisionV1p3beta1Position++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Position < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.z!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Position--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ProductKeyValue> buildUnnamed4262() { |
| var o = <api.GoogleCloudVisionV1p3beta1ProductKeyValue>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ProductKeyValue()); |
| o.add(buildGoogleCloudVisionV1p3beta1ProductKeyValue()); |
| return o; |
| } |
| |
| void checkUnnamed4262( |
| core.List<api.GoogleCloudVisionV1p3beta1ProductKeyValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ProductKeyValue( |
| o[0] as api.GoogleCloudVisionV1p3beta1ProductKeyValue); |
| checkGoogleCloudVisionV1p3beta1ProductKeyValue( |
| o[1] as api.GoogleCloudVisionV1p3beta1ProductKeyValue); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1Product = 0; |
| api.GoogleCloudVisionV1p3beta1Product buildGoogleCloudVisionV1p3beta1Product() { |
| var o = api.GoogleCloudVisionV1p3beta1Product(); |
| buildCounterGoogleCloudVisionV1p3beta1Product++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Product < 3) { |
| o.description = 'foo'; |
| o.displayName = 'foo'; |
| o.name = 'foo'; |
| o.productCategory = 'foo'; |
| o.productLabels = buildUnnamed4262(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Product--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Product( |
| api.GoogleCloudVisionV1p3beta1Product o) { |
| buildCounterGoogleCloudVisionV1p3beta1Product++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Product < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.productCategory!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4262(o.productLabels!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Product--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ProductKeyValue = 0; |
| api.GoogleCloudVisionV1p3beta1ProductKeyValue |
| buildGoogleCloudVisionV1p3beta1ProductKeyValue() { |
| var o = api.GoogleCloudVisionV1p3beta1ProductKeyValue(); |
| buildCounterGoogleCloudVisionV1p3beta1ProductKeyValue++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductKeyValue < 3) { |
| o.key = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductKeyValue--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ProductKeyValue( |
| api.GoogleCloudVisionV1p3beta1ProductKeyValue o) { |
| buildCounterGoogleCloudVisionV1p3beta1ProductKeyValue++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductKeyValue < 3) { |
| unittest.expect( |
| o.key!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductKeyValue--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult> |
| buildUnnamed4263() { |
| var o = <api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult()); |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult()); |
| return o; |
| } |
| |
| void checkUnnamed4263( |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult( |
| o[0] as api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult( |
| o[1] as api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult> |
| buildUnnamed4264() { |
| var o = <api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed4264( |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult( |
| o[0] as api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult( |
| o[1] as api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults = 0; |
| api.GoogleCloudVisionV1p3beta1ProductSearchResults |
| buildGoogleCloudVisionV1p3beta1ProductSearchResults() { |
| var o = api.GoogleCloudVisionV1p3beta1ProductSearchResults(); |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults < 3) { |
| o.indexTime = 'foo'; |
| o.productGroupedResults = buildUnnamed4263(); |
| o.results = buildUnnamed4264(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ProductSearchResults( |
| api.GoogleCloudVisionV1p3beta1ProductSearchResults o) { |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults < 3) { |
| unittest.expect( |
| o.indexTime!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4263(o.productGroupedResults!); |
| checkUnnamed4264(o.results!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation> |
| buildUnnamed4265() { |
| var o = |
| <api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4265( |
| core.List< |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation(o[0] |
| as api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation(o[1] |
| as api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult> |
| buildUnnamed4266() { |
| var o = <api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed4266( |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult( |
| o[0] as api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult( |
| o[1] as api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult); |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult = 0; |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult |
| buildGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult() { |
| var o = api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult(); |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult < |
| 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.objectAnnotations = buildUnnamed4265(); |
| o.results = buildUnnamed4266(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult( |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult o) { |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult < |
| 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| checkUnnamed4265(o.objectAnnotations!); |
| checkUnnamed4266(o.results!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult--; |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation = |
| 0; |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation |
| buildGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation < |
| 3) { |
| o.languageCode = 'foo'; |
| o.mid = 'foo'; |
| o.name = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation( |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation < |
| 3) { |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsResult = 0; |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult |
| buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult() { |
| var o = api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult(); |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsResult++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsResult < 3) { |
| o.image = 'foo'; |
| o.product = buildGoogleCloudVisionV1p3beta1Product(); |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult( |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult o) { |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsResult++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsResult < 3) { |
| unittest.expect( |
| o.image!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p3beta1Product( |
| o.product! as api.GoogleCloudVisionV1p3beta1Product); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsResult--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1Property = 0; |
| api.GoogleCloudVisionV1p3beta1Property |
| buildGoogleCloudVisionV1p3beta1Property() { |
| var o = api.GoogleCloudVisionV1p3beta1Property(); |
| buildCounterGoogleCloudVisionV1p3beta1Property++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Property < 3) { |
| o.name = 'foo'; |
| o.uint64Value = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Property--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Property( |
| api.GoogleCloudVisionV1p3beta1Property o) { |
| buildCounterGoogleCloudVisionV1p3beta1Property++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Property < 3) { |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.uint64Value!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Property--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1BoundingPoly> buildUnnamed4267() { |
| var o = <api.GoogleCloudVisionV1p3beta1BoundingPoly>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1BoundingPoly()); |
| o.add(buildGoogleCloudVisionV1p3beta1BoundingPoly()); |
| return o; |
| } |
| |
| void checkUnnamed4267(core.List<api.GoogleCloudVisionV1p3beta1BoundingPoly> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o[0] as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o[1] as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ReferenceImage = 0; |
| api.GoogleCloudVisionV1p3beta1ReferenceImage |
| buildGoogleCloudVisionV1p3beta1ReferenceImage() { |
| var o = api.GoogleCloudVisionV1p3beta1ReferenceImage(); |
| buildCounterGoogleCloudVisionV1p3beta1ReferenceImage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ReferenceImage < 3) { |
| o.boundingPolys = buildUnnamed4267(); |
| o.name = 'foo'; |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ReferenceImage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ReferenceImage( |
| api.GoogleCloudVisionV1p3beta1ReferenceImage o) { |
| buildCounterGoogleCloudVisionV1p3beta1ReferenceImage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ReferenceImage < 3) { |
| checkUnnamed4267(o.boundingPolys!); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ReferenceImage--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1SafeSearchAnnotation = 0; |
| api.GoogleCloudVisionV1p3beta1SafeSearchAnnotation |
| buildGoogleCloudVisionV1p3beta1SafeSearchAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1SafeSearchAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1SafeSearchAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1SafeSearchAnnotation < 3) { |
| o.adult = 'foo'; |
| o.medical = 'foo'; |
| o.racy = 'foo'; |
| o.spoof = 'foo'; |
| o.violence = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1SafeSearchAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1SafeSearchAnnotation( |
| api.GoogleCloudVisionV1p3beta1SafeSearchAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1SafeSearchAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1SafeSearchAnnotation < 3) { |
| unittest.expect( |
| o.adult!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.medical!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.racy!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.spoof!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.violence!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1SafeSearchAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1Symbol = 0; |
| api.GoogleCloudVisionV1p3beta1Symbol buildGoogleCloudVisionV1p3beta1Symbol() { |
| var o = api.GoogleCloudVisionV1p3beta1Symbol(); |
| buildCounterGoogleCloudVisionV1p3beta1Symbol++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Symbol < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Symbol--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Symbol( |
| api.GoogleCloudVisionV1p3beta1Symbol o) { |
| buildCounterGoogleCloudVisionV1p3beta1Symbol++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Symbol < 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty); |
| unittest.expect( |
| o.text!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Symbol--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Page> buildUnnamed4268() { |
| var o = <api.GoogleCloudVisionV1p3beta1Page>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Page()); |
| o.add(buildGoogleCloudVisionV1p3beta1Page()); |
| return o; |
| } |
| |
| void checkUnnamed4268(core.List<api.GoogleCloudVisionV1p3beta1Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Page( |
| o[0] as api.GoogleCloudVisionV1p3beta1Page); |
| checkGoogleCloudVisionV1p3beta1Page( |
| o[1] as api.GoogleCloudVisionV1p3beta1Page); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1TextAnnotation = 0; |
| api.GoogleCloudVisionV1p3beta1TextAnnotation |
| buildGoogleCloudVisionV1p3beta1TextAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1TextAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotation < 3) { |
| o.pages = buildUnnamed4268(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1TextAnnotation( |
| api.GoogleCloudVisionV1p3beta1TextAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotation < 3) { |
| checkUnnamed4268(o.pages!); |
| unittest.expect( |
| o.text!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak = 0; |
| api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak |
| buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak() { |
| var o = api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak(); |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak < 3) { |
| o.isPrefix = true; |
| o.type = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak( |
| api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak o) { |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak < 3) { |
| unittest.expect(o.isPrefix!, unittest.isTrue); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage = |
| 0; |
| api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage |
| buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage() { |
| var o = api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage(); |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage < |
| 3) { |
| o.confidence = 42.0; |
| o.languageCode = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage( |
| api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage o) { |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage < |
| 3) { |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage> |
| buildUnnamed4269() { |
| var o = <api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage()); |
| o.add(buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage()); |
| return o; |
| } |
| |
| void checkUnnamed4269( |
| core.List<api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage( |
| o[0] as api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage( |
| o[1] as api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty = 0; |
| api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty |
| buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty() { |
| var o = api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty < 3) { |
| o.detectedBreak = |
| buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak(); |
| o.detectedLanguages = buildUnnamed4269(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty( |
| api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty o) { |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty < 3) { |
| checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak(o.detectedBreak! |
| as api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak); |
| checkUnnamed4269(o.detectedLanguages!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1Vertex = 0; |
| api.GoogleCloudVisionV1p3beta1Vertex buildGoogleCloudVisionV1p3beta1Vertex() { |
| var o = api.GoogleCloudVisionV1p3beta1Vertex(); |
| buildCounterGoogleCloudVisionV1p3beta1Vertex++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Vertex < 3) { |
| o.x = 42; |
| o.y = 42; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Vertex--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Vertex( |
| api.GoogleCloudVisionV1p3beta1Vertex o) { |
| buildCounterGoogleCloudVisionV1p3beta1Vertex++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Vertex < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Vertex--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel> |
| buildUnnamed4270() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebLabel()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebLabel()); |
| return o; |
| } |
| |
| void checkUnnamed4270( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebLabel( |
| o[0] as api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebLabel( |
| o[1] as api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> |
| buildUnnamed4271() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4271( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebPage> |
| buildUnnamed4272() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebPage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebPage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebPage()); |
| return o; |
| } |
| |
| void checkUnnamed4272( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebPage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebPage( |
| o[0] as api.GoogleCloudVisionV1p3beta1WebDetectionWebPage); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebPage( |
| o[1] as api.GoogleCloudVisionV1p3beta1WebDetectionWebPage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> |
| buildUnnamed4273() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4273( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> |
| buildUnnamed4274() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4274( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity> |
| buildUnnamed4275() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebEntity()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebEntity()); |
| return o; |
| } |
| |
| void checkUnnamed4275( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebEntity( |
| o[0] as api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebEntity( |
| o[1] as api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1WebDetection = 0; |
| api.GoogleCloudVisionV1p3beta1WebDetection |
| buildGoogleCloudVisionV1p3beta1WebDetection() { |
| var o = api.GoogleCloudVisionV1p3beta1WebDetection(); |
| buildCounterGoogleCloudVisionV1p3beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetection < 3) { |
| o.bestGuessLabels = buildUnnamed4270(); |
| o.fullMatchingImages = buildUnnamed4271(); |
| o.pagesWithMatchingImages = buildUnnamed4272(); |
| o.partialMatchingImages = buildUnnamed4273(); |
| o.visuallySimilarImages = buildUnnamed4274(); |
| o.webEntities = buildUnnamed4275(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetection--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1WebDetection( |
| api.GoogleCloudVisionV1p3beta1WebDetection o) { |
| buildCounterGoogleCloudVisionV1p3beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetection < 3) { |
| checkUnnamed4270(o.bestGuessLabels!); |
| checkUnnamed4271(o.fullMatchingImages!); |
| checkUnnamed4272(o.pagesWithMatchingImages!); |
| checkUnnamed4273(o.partialMatchingImages!); |
| checkUnnamed4274(o.visuallySimilarImages!); |
| checkUnnamed4275(o.webEntities!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetection--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebEntity = 0; |
| api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity |
| buildGoogleCloudVisionV1p3beta1WebDetectionWebEntity() { |
| var o = api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity(); |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebEntity++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebEntity < 3) { |
| o.description = 'foo'; |
| o.entityId = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebEntity--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1WebDetectionWebEntity( |
| api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity o) { |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebEntity++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebEntity < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.entityId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebEntity--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebImage = 0; |
| api.GoogleCloudVisionV1p3beta1WebDetectionWebImage |
| buildGoogleCloudVisionV1p3beta1WebDetectionWebImage() { |
| var o = api.GoogleCloudVisionV1p3beta1WebDetectionWebImage(); |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebImage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebImage < 3) { |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebImage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| api.GoogleCloudVisionV1p3beta1WebDetectionWebImage o) { |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebImage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebImage < 3) { |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.url!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebImage--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebLabel = 0; |
| api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel |
| buildGoogleCloudVisionV1p3beta1WebDetectionWebLabel() { |
| var o = api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel(); |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebLabel++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebLabel < 3) { |
| o.label = 'foo'; |
| o.languageCode = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebLabel--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1WebDetectionWebLabel( |
| api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel o) { |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebLabel++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebLabel < 3) { |
| unittest.expect( |
| o.label!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebLabel--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> |
| buildUnnamed4276() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4276( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> |
| buildUnnamed4277() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4277( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage = 0; |
| api.GoogleCloudVisionV1p3beta1WebDetectionWebPage |
| buildGoogleCloudVisionV1p3beta1WebDetectionWebPage() { |
| var o = api.GoogleCloudVisionV1p3beta1WebDetectionWebPage(); |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage < 3) { |
| o.fullMatchingImages = buildUnnamed4276(); |
| o.pageTitle = 'foo'; |
| o.partialMatchingImages = buildUnnamed4277(); |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1WebDetectionWebPage( |
| api.GoogleCloudVisionV1p3beta1WebDetectionWebPage o) { |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage < 3) { |
| checkUnnamed4276(o.fullMatchingImages!); |
| unittest.expect( |
| o.pageTitle!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4277(o.partialMatchingImages!); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.url!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Symbol> buildUnnamed4278() { |
| var o = <api.GoogleCloudVisionV1p3beta1Symbol>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Symbol()); |
| o.add(buildGoogleCloudVisionV1p3beta1Symbol()); |
| return o; |
| } |
| |
| void checkUnnamed4278(core.List<api.GoogleCloudVisionV1p3beta1Symbol> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Symbol( |
| o[0] as api.GoogleCloudVisionV1p3beta1Symbol); |
| checkGoogleCloudVisionV1p3beta1Symbol( |
| o[1] as api.GoogleCloudVisionV1p3beta1Symbol); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1Word = 0; |
| api.GoogleCloudVisionV1p3beta1Word buildGoogleCloudVisionV1p3beta1Word() { |
| var o = api.GoogleCloudVisionV1p3beta1Word(); |
| buildCounterGoogleCloudVisionV1p3beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Word < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); |
| o.symbols = buildUnnamed4278(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Word--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Word(api.GoogleCloudVisionV1p3beta1Word o) { |
| buildCounterGoogleCloudVisionV1p3beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Word < 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty); |
| checkUnnamed4278(o.symbols!); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Word--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1AnnotateImageResponse> |
| buildUnnamed4279() { |
| var o = <api.GoogleCloudVisionV1p4beta1AnnotateImageResponse>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1AnnotateImageResponse()); |
| o.add(buildGoogleCloudVisionV1p4beta1AnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4279( |
| core.List<api.GoogleCloudVisionV1p4beta1AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1AnnotateImageResponse( |
| o[0] as api.GoogleCloudVisionV1p4beta1AnnotateImageResponse); |
| checkGoogleCloudVisionV1p4beta1AnnotateImageResponse( |
| o[1] as api.GoogleCloudVisionV1p4beta1AnnotateImageResponse); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p4beta1AnnotateFileResponse |
| buildGoogleCloudVisionV1p4beta1AnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1AnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse < 3) { |
| o.error = buildStatus(); |
| o.inputConfig = buildGoogleCloudVisionV1p4beta1InputConfig(); |
| o.responses = buildUnnamed4279(); |
| o.totalPages = 42; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1AnnotateFileResponse( |
| api.GoogleCloudVisionV1p4beta1AnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse < 3) { |
| checkStatus(o.error! as api.Status); |
| checkGoogleCloudVisionV1p4beta1InputConfig( |
| o.inputConfig! as api.GoogleCloudVisionV1p4beta1InputConfig); |
| checkUnnamed4279(o.responses!); |
| unittest.expect( |
| o.totalPages!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotation> buildUnnamed4280() { |
| var o = <api.GoogleCloudVisionV1p4beta1FaceAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4280( |
| core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotation( |
| o[0] as api.GoogleCloudVisionV1p4beta1FaceAnnotation); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotation( |
| o[1] as api.GoogleCloudVisionV1p4beta1FaceAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> buildUnnamed4281() { |
| var o = <api.GoogleCloudVisionV1p4beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4281( |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p4beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p4beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> buildUnnamed4282() { |
| var o = <api.GoogleCloudVisionV1p4beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4282( |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p4beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p4beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation> |
| buildUnnamed4283() { |
| var o = <api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4283( |
| core.List<api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation( |
| o[0] as api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation); |
| checkGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation( |
| o[1] as api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> buildUnnamed4284() { |
| var o = <api.GoogleCloudVisionV1p4beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4284( |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p4beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p4beta1EntityAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> buildUnnamed4285() { |
| var o = <api.GoogleCloudVisionV1p4beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4285( |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| o[0] as api.GoogleCloudVisionV1p4beta1EntityAnnotation); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| o[1] as api.GoogleCloudVisionV1p4beta1EntityAnnotation); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse = 0; |
| api.GoogleCloudVisionV1p4beta1AnnotateImageResponse |
| buildGoogleCloudVisionV1p4beta1AnnotateImageResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1AnnotateImageResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse < 3) { |
| o.context = buildGoogleCloudVisionV1p4beta1ImageAnnotationContext(); |
| o.cropHintsAnnotation = |
| buildGoogleCloudVisionV1p4beta1CropHintsAnnotation(); |
| o.error = buildStatus(); |
| o.faceAnnotations = buildUnnamed4280(); |
| o.fullTextAnnotation = buildGoogleCloudVisionV1p4beta1TextAnnotation(); |
| o.imagePropertiesAnnotation = |
| buildGoogleCloudVisionV1p4beta1ImageProperties(); |
| o.labelAnnotations = buildUnnamed4281(); |
| o.landmarkAnnotations = buildUnnamed4282(); |
| o.localizedObjectAnnotations = buildUnnamed4283(); |
| o.logoAnnotations = buildUnnamed4284(); |
| o.productSearchResults = |
| buildGoogleCloudVisionV1p4beta1ProductSearchResults(); |
| o.safeSearchAnnotation = |
| buildGoogleCloudVisionV1p4beta1SafeSearchAnnotation(); |
| o.textAnnotations = buildUnnamed4285(); |
| o.webDetection = buildGoogleCloudVisionV1p4beta1WebDetection(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1AnnotateImageResponse( |
| api.GoogleCloudVisionV1p4beta1AnnotateImageResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse < 3) { |
| checkGoogleCloudVisionV1p4beta1ImageAnnotationContext( |
| o.context! as api.GoogleCloudVisionV1p4beta1ImageAnnotationContext); |
| checkGoogleCloudVisionV1p4beta1CropHintsAnnotation(o.cropHintsAnnotation! |
| as api.GoogleCloudVisionV1p4beta1CropHintsAnnotation); |
| checkStatus(o.error! as api.Status); |
| checkUnnamed4280(o.faceAnnotations!); |
| checkGoogleCloudVisionV1p4beta1TextAnnotation( |
| o.fullTextAnnotation! as api.GoogleCloudVisionV1p4beta1TextAnnotation); |
| checkGoogleCloudVisionV1p4beta1ImageProperties(o.imagePropertiesAnnotation! |
| as api.GoogleCloudVisionV1p4beta1ImageProperties); |
| checkUnnamed4281(o.labelAnnotations!); |
| checkUnnamed4282(o.landmarkAnnotations!); |
| checkUnnamed4283(o.localizedObjectAnnotations!); |
| checkUnnamed4284(o.logoAnnotations!); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResults(o.productSearchResults! |
| as api.GoogleCloudVisionV1p4beta1ProductSearchResults); |
| checkGoogleCloudVisionV1p4beta1SafeSearchAnnotation(o.safeSearchAnnotation! |
| as api.GoogleCloudVisionV1p4beta1SafeSearchAnnotation); |
| checkUnnamed4285(o.textAnnotations!); |
| checkGoogleCloudVisionV1p4beta1WebDetection( |
| o.webDetection! as api.GoogleCloudVisionV1p4beta1WebDetection); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse |
| buildGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse < 3) { |
| o.outputConfig = buildGoogleCloudVisionV1p4beta1OutputConfig(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse( |
| api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse < 3) { |
| checkGoogleCloudVisionV1p4beta1OutputConfig( |
| o.outputConfig! as api.GoogleCloudVisionV1p4beta1OutputConfig); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse> |
| buildUnnamed4286() { |
| var o = <api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse()); |
| o.add(buildGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4286( |
| core.List<api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse( |
| o[0] as api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse); |
| checkGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse( |
| o[1] as api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse = |
| 0; |
| api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse |
| buildGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| o.responses = buildUnnamed4286(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse( |
| api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| checkUnnamed4286(o.responses!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse--; |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse = 0; |
| api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse |
| buildGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse < |
| 3) { |
| o.outputConfig = buildGoogleCloudVisionV1p4beta1OutputConfig(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse( |
| api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse < |
| 3) { |
| checkGoogleCloudVisionV1p4beta1OutputConfig( |
| o.outputConfig! as api.GoogleCloudVisionV1p4beta1OutputConfig); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1AnnotateFileResponse> |
| buildUnnamed4287() { |
| var o = <api.GoogleCloudVisionV1p4beta1AnnotateFileResponse>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1AnnotateFileResponse()); |
| o.add(buildGoogleCloudVisionV1p4beta1AnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed4287( |
| core.List<api.GoogleCloudVisionV1p4beta1AnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1AnnotateFileResponse( |
| o[0] as api.GoogleCloudVisionV1p4beta1AnnotateFileResponse); |
| checkGoogleCloudVisionV1p4beta1AnnotateFileResponse( |
| o[1] as api.GoogleCloudVisionV1p4beta1AnnotateFileResponse); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse = 0; |
| api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse |
| buildGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse < 3) { |
| o.responses = buildUnnamed4287(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse( |
| api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse < 3) { |
| checkUnnamed4287(o.responses!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1BatchOperationMetadata = 0; |
| api.GoogleCloudVisionV1p4beta1BatchOperationMetadata |
| buildGoogleCloudVisionV1p4beta1BatchOperationMetadata() { |
| var o = api.GoogleCloudVisionV1p4beta1BatchOperationMetadata(); |
| buildCounterGoogleCloudVisionV1p4beta1BatchOperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p4beta1BatchOperationMetadata < 3) { |
| o.endTime = 'foo'; |
| o.state = 'foo'; |
| o.submitTime = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1BatchOperationMetadata--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1BatchOperationMetadata( |
| api.GoogleCloudVisionV1p4beta1BatchOperationMetadata o) { |
| buildCounterGoogleCloudVisionV1p4beta1BatchOperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p4beta1BatchOperationMetadata < 3) { |
| unittest.expect( |
| o.endTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.state!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.submitTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1BatchOperationMetadata--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Paragraph> buildUnnamed4288() { |
| var o = <api.GoogleCloudVisionV1p4beta1Paragraph>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Paragraph()); |
| o.add(buildGoogleCloudVisionV1p4beta1Paragraph()); |
| return o; |
| } |
| |
| void checkUnnamed4288(core.List<api.GoogleCloudVisionV1p4beta1Paragraph> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Paragraph( |
| o[0] as api.GoogleCloudVisionV1p4beta1Paragraph); |
| checkGoogleCloudVisionV1p4beta1Paragraph( |
| o[1] as api.GoogleCloudVisionV1p4beta1Paragraph); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Block = 0; |
| api.GoogleCloudVisionV1p4beta1Block buildGoogleCloudVisionV1p4beta1Block() { |
| var o = api.GoogleCloudVisionV1p4beta1Block(); |
| buildCounterGoogleCloudVisionV1p4beta1Block++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Block < 3) { |
| o.blockType = 'foo'; |
| o.boundingBox = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.paragraphs = buildUnnamed4288(); |
| o.property = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Block--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Block( |
| api.GoogleCloudVisionV1p4beta1Block o) { |
| buildCounterGoogleCloudVisionV1p4beta1Block++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Block < 3) { |
| unittest.expect( |
| o.blockType!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4288(o.paragraphs!); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Block--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1NormalizedVertex> buildUnnamed4289() { |
| var o = <api.GoogleCloudVisionV1p4beta1NormalizedVertex>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1NormalizedVertex()); |
| o.add(buildGoogleCloudVisionV1p4beta1NormalizedVertex()); |
| return o; |
| } |
| |
| void checkUnnamed4289( |
| core.List<api.GoogleCloudVisionV1p4beta1NormalizedVertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1NormalizedVertex( |
| o[0] as api.GoogleCloudVisionV1p4beta1NormalizedVertex); |
| checkGoogleCloudVisionV1p4beta1NormalizedVertex( |
| o[1] as api.GoogleCloudVisionV1p4beta1NormalizedVertex); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Vertex> buildUnnamed4290() { |
| var o = <api.GoogleCloudVisionV1p4beta1Vertex>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Vertex()); |
| o.add(buildGoogleCloudVisionV1p4beta1Vertex()); |
| return o; |
| } |
| |
| void checkUnnamed4290(core.List<api.GoogleCloudVisionV1p4beta1Vertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Vertex( |
| o[0] as api.GoogleCloudVisionV1p4beta1Vertex); |
| checkGoogleCloudVisionV1p4beta1Vertex( |
| o[1] as api.GoogleCloudVisionV1p4beta1Vertex); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1BoundingPoly = 0; |
| api.GoogleCloudVisionV1p4beta1BoundingPoly |
| buildGoogleCloudVisionV1p4beta1BoundingPoly() { |
| var o = api.GoogleCloudVisionV1p4beta1BoundingPoly(); |
| buildCounterGoogleCloudVisionV1p4beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p4beta1BoundingPoly < 3) { |
| o.normalizedVertices = buildUnnamed4289(); |
| o.vertices = buildUnnamed4290(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1BoundingPoly--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| api.GoogleCloudVisionV1p4beta1BoundingPoly o) { |
| buildCounterGoogleCloudVisionV1p4beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p4beta1BoundingPoly < 3) { |
| checkUnnamed4289(o.normalizedVertices!); |
| checkUnnamed4290(o.vertices!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1BoundingPoly--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Celebrity = 0; |
| api.GoogleCloudVisionV1p4beta1Celebrity |
| buildGoogleCloudVisionV1p4beta1Celebrity() { |
| var o = api.GoogleCloudVisionV1p4beta1Celebrity(); |
| buildCounterGoogleCloudVisionV1p4beta1Celebrity++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Celebrity < 3) { |
| o.description = 'foo'; |
| o.displayName = 'foo'; |
| o.name = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Celebrity--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Celebrity( |
| api.GoogleCloudVisionV1p4beta1Celebrity o) { |
| buildCounterGoogleCloudVisionV1p4beta1Celebrity++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Celebrity < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Celebrity--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ColorInfo = 0; |
| api.GoogleCloudVisionV1p4beta1ColorInfo |
| buildGoogleCloudVisionV1p4beta1ColorInfo() { |
| var o = api.GoogleCloudVisionV1p4beta1ColorInfo(); |
| buildCounterGoogleCloudVisionV1p4beta1ColorInfo++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ColorInfo < 3) { |
| o.color = buildColor(); |
| o.pixelFraction = 42.0; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ColorInfo--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ColorInfo( |
| api.GoogleCloudVisionV1p4beta1ColorInfo o) { |
| buildCounterGoogleCloudVisionV1p4beta1ColorInfo++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ColorInfo < 3) { |
| checkColor(o.color! as api.Color); |
| unittest.expect( |
| o.pixelFraction!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ColorInfo--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1CropHint = 0; |
| api.GoogleCloudVisionV1p4beta1CropHint |
| buildGoogleCloudVisionV1p4beta1CropHint() { |
| var o = api.GoogleCloudVisionV1p4beta1CropHint(); |
| buildCounterGoogleCloudVisionV1p4beta1CropHint++; |
| if (buildCounterGoogleCloudVisionV1p4beta1CropHint < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.importanceFraction = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1CropHint--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1CropHint( |
| api.GoogleCloudVisionV1p4beta1CropHint o) { |
| buildCounterGoogleCloudVisionV1p4beta1CropHint++; |
| if (buildCounterGoogleCloudVisionV1p4beta1CropHint < 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.importanceFraction!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1CropHint--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1CropHint> buildUnnamed4291() { |
| var o = <api.GoogleCloudVisionV1p4beta1CropHint>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1CropHint()); |
| o.add(buildGoogleCloudVisionV1p4beta1CropHint()); |
| return o; |
| } |
| |
| void checkUnnamed4291(core.List<api.GoogleCloudVisionV1p4beta1CropHint> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1CropHint( |
| o[0] as api.GoogleCloudVisionV1p4beta1CropHint); |
| checkGoogleCloudVisionV1p4beta1CropHint( |
| o[1] as api.GoogleCloudVisionV1p4beta1CropHint); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation = 0; |
| api.GoogleCloudVisionV1p4beta1CropHintsAnnotation |
| buildGoogleCloudVisionV1p4beta1CropHintsAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1CropHintsAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation < 3) { |
| o.cropHints = buildUnnamed4291(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1CropHintsAnnotation( |
| api.GoogleCloudVisionV1p4beta1CropHintsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation < 3) { |
| checkUnnamed4291(o.cropHints!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ColorInfo> buildUnnamed4292() { |
| var o = <api.GoogleCloudVisionV1p4beta1ColorInfo>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ColorInfo()); |
| o.add(buildGoogleCloudVisionV1p4beta1ColorInfo()); |
| return o; |
| } |
| |
| void checkUnnamed4292(core.List<api.GoogleCloudVisionV1p4beta1ColorInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ColorInfo( |
| o[0] as api.GoogleCloudVisionV1p4beta1ColorInfo); |
| checkGoogleCloudVisionV1p4beta1ColorInfo( |
| o[1] as api.GoogleCloudVisionV1p4beta1ColorInfo); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation = 0; |
| api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation |
| buildGoogleCloudVisionV1p4beta1DominantColorsAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation < 3) { |
| o.colors = buildUnnamed4292(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1DominantColorsAnnotation( |
| api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation < 3) { |
| checkUnnamed4292(o.colors!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1LocationInfo> buildUnnamed4293() { |
| var o = <api.GoogleCloudVisionV1p4beta1LocationInfo>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1LocationInfo()); |
| o.add(buildGoogleCloudVisionV1p4beta1LocationInfo()); |
| return o; |
| } |
| |
| void checkUnnamed4293(core.List<api.GoogleCloudVisionV1p4beta1LocationInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1LocationInfo( |
| o[0] as api.GoogleCloudVisionV1p4beta1LocationInfo); |
| checkGoogleCloudVisionV1p4beta1LocationInfo( |
| o[1] as api.GoogleCloudVisionV1p4beta1LocationInfo); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Property> buildUnnamed4294() { |
| var o = <api.GoogleCloudVisionV1p4beta1Property>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Property()); |
| o.add(buildGoogleCloudVisionV1p4beta1Property()); |
| return o; |
| } |
| |
| void checkUnnamed4294(core.List<api.GoogleCloudVisionV1p4beta1Property> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Property( |
| o[0] as api.GoogleCloudVisionV1p4beta1Property); |
| checkGoogleCloudVisionV1p4beta1Property( |
| o[1] as api.GoogleCloudVisionV1p4beta1Property); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation = 0; |
| api.GoogleCloudVisionV1p4beta1EntityAnnotation |
| buildGoogleCloudVisionV1p4beta1EntityAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1EntityAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.description = 'foo'; |
| o.locale = 'foo'; |
| o.locations = buildUnnamed4293(); |
| o.mid = 'foo'; |
| o.properties = buildUnnamed4294(); |
| o.score = 42.0; |
| o.topicality = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| api.GoogleCloudVisionV1p4beta1EntityAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation < 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.locale!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4293(o.locations!); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4294(o.properties!); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.topicality!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark> |
| buildUnnamed4295() { |
| var o = <api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotationLandmark()); |
| o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotationLandmark()); |
| return o; |
| } |
| |
| void checkUnnamed4295( |
| core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotationLandmark( |
| o[0] as api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotationLandmark( |
| o[1] as api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1FaceRecognitionResult> |
| buildUnnamed4296() { |
| var o = <api.GoogleCloudVisionV1p4beta1FaceRecognitionResult>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1FaceRecognitionResult()); |
| o.add(buildGoogleCloudVisionV1p4beta1FaceRecognitionResult()); |
| return o; |
| } |
| |
| void checkUnnamed4296( |
| core.List<api.GoogleCloudVisionV1p4beta1FaceRecognitionResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1FaceRecognitionResult( |
| o[0] as api.GoogleCloudVisionV1p4beta1FaceRecognitionResult); |
| checkGoogleCloudVisionV1p4beta1FaceRecognitionResult( |
| o[1] as api.GoogleCloudVisionV1p4beta1FaceRecognitionResult); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1FaceAnnotation = 0; |
| api.GoogleCloudVisionV1p4beta1FaceAnnotation |
| buildGoogleCloudVisionV1p4beta1FaceAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1FaceAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1FaceAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1FaceAnnotation < 3) { |
| o.angerLikelihood = 'foo'; |
| o.blurredLikelihood = 'foo'; |
| o.boundingPoly = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.detectionConfidence = 42.0; |
| o.fdBoundingPoly = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.headwearLikelihood = 'foo'; |
| o.joyLikelihood = 'foo'; |
| o.landmarkingConfidence = 42.0; |
| o.landmarks = buildUnnamed4295(); |
| o.panAngle = 42.0; |
| o.recognitionResult = buildUnnamed4296(); |
| o.rollAngle = 42.0; |
| o.sorrowLikelihood = 'foo'; |
| o.surpriseLikelihood = 'foo'; |
| o.tiltAngle = 42.0; |
| o.underExposedLikelihood = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1FaceAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1FaceAnnotation( |
| api.GoogleCloudVisionV1p4beta1FaceAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1FaceAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1FaceAnnotation < 3) { |
| unittest.expect( |
| o.angerLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.blurredLikelihood!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| unittest.expect( |
| o.detectionConfidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o.fdBoundingPoly! as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| unittest.expect( |
| o.headwearLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.joyLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.landmarkingConfidence!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4295(o.landmarks!); |
| unittest.expect( |
| o.panAngle!, |
| unittest.equals(42.0), |
| ); |
| checkUnnamed4296(o.recognitionResult!); |
| unittest.expect( |
| o.rollAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.sorrowLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.surpriseLikelihood!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.tiltAngle!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.underExposedLikelihood!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1FaceAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1FaceAnnotationLandmark = 0; |
| api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark |
| buildGoogleCloudVisionV1p4beta1FaceAnnotationLandmark() { |
| var o = api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark(); |
| buildCounterGoogleCloudVisionV1p4beta1FaceAnnotationLandmark++; |
| if (buildCounterGoogleCloudVisionV1p4beta1FaceAnnotationLandmark < 3) { |
| o.position = buildGoogleCloudVisionV1p4beta1Position(); |
| o.type = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1FaceAnnotationLandmark--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1FaceAnnotationLandmark( |
| api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark o) { |
| buildCounterGoogleCloudVisionV1p4beta1FaceAnnotationLandmark++; |
| if (buildCounterGoogleCloudVisionV1p4beta1FaceAnnotationLandmark < 3) { |
| checkGoogleCloudVisionV1p4beta1Position( |
| o.position! as api.GoogleCloudVisionV1p4beta1Position); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1FaceAnnotationLandmark--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1FaceRecognitionResult = 0; |
| api.GoogleCloudVisionV1p4beta1FaceRecognitionResult |
| buildGoogleCloudVisionV1p4beta1FaceRecognitionResult() { |
| var o = api.GoogleCloudVisionV1p4beta1FaceRecognitionResult(); |
| buildCounterGoogleCloudVisionV1p4beta1FaceRecognitionResult++; |
| if (buildCounterGoogleCloudVisionV1p4beta1FaceRecognitionResult < 3) { |
| o.celebrity = buildGoogleCloudVisionV1p4beta1Celebrity(); |
| o.confidence = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1FaceRecognitionResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1FaceRecognitionResult( |
| api.GoogleCloudVisionV1p4beta1FaceRecognitionResult o) { |
| buildCounterGoogleCloudVisionV1p4beta1FaceRecognitionResult++; |
| if (buildCounterGoogleCloudVisionV1p4beta1FaceRecognitionResult < 3) { |
| checkGoogleCloudVisionV1p4beta1Celebrity( |
| o.celebrity! as api.GoogleCloudVisionV1p4beta1Celebrity); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1FaceRecognitionResult--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1GcsDestination = 0; |
| api.GoogleCloudVisionV1p4beta1GcsDestination |
| buildGoogleCloudVisionV1p4beta1GcsDestination() { |
| var o = api.GoogleCloudVisionV1p4beta1GcsDestination(); |
| buildCounterGoogleCloudVisionV1p4beta1GcsDestination++; |
| if (buildCounterGoogleCloudVisionV1p4beta1GcsDestination < 3) { |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1GcsDestination--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1GcsDestination( |
| api.GoogleCloudVisionV1p4beta1GcsDestination o) { |
| buildCounterGoogleCloudVisionV1p4beta1GcsDestination++; |
| if (buildCounterGoogleCloudVisionV1p4beta1GcsDestination < 3) { |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1GcsDestination--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1GcsSource = 0; |
| api.GoogleCloudVisionV1p4beta1GcsSource |
| buildGoogleCloudVisionV1p4beta1GcsSource() { |
| var o = api.GoogleCloudVisionV1p4beta1GcsSource(); |
| buildCounterGoogleCloudVisionV1p4beta1GcsSource++; |
| if (buildCounterGoogleCloudVisionV1p4beta1GcsSource < 3) { |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1GcsSource--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1GcsSource( |
| api.GoogleCloudVisionV1p4beta1GcsSource o) { |
| buildCounterGoogleCloudVisionV1p4beta1GcsSource++; |
| if (buildCounterGoogleCloudVisionV1p4beta1GcsSource < 3) { |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1GcsSource--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ImageAnnotationContext = 0; |
| api.GoogleCloudVisionV1p4beta1ImageAnnotationContext |
| buildGoogleCloudVisionV1p4beta1ImageAnnotationContext() { |
| var o = api.GoogleCloudVisionV1p4beta1ImageAnnotationContext(); |
| buildCounterGoogleCloudVisionV1p4beta1ImageAnnotationContext++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ImageAnnotationContext < 3) { |
| o.pageNumber = 42; |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ImageAnnotationContext--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ImageAnnotationContext( |
| api.GoogleCloudVisionV1p4beta1ImageAnnotationContext o) { |
| buildCounterGoogleCloudVisionV1p4beta1ImageAnnotationContext++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ImageAnnotationContext < 3) { |
| unittest.expect( |
| o.pageNumber!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ImageAnnotationContext--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ImageProperties = 0; |
| api.GoogleCloudVisionV1p4beta1ImageProperties |
| buildGoogleCloudVisionV1p4beta1ImageProperties() { |
| var o = api.GoogleCloudVisionV1p4beta1ImageProperties(); |
| buildCounterGoogleCloudVisionV1p4beta1ImageProperties++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ImageProperties < 3) { |
| o.dominantColors = |
| buildGoogleCloudVisionV1p4beta1DominantColorsAnnotation(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ImageProperties--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ImageProperties( |
| api.GoogleCloudVisionV1p4beta1ImageProperties o) { |
| buildCounterGoogleCloudVisionV1p4beta1ImageProperties++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ImageProperties < 3) { |
| checkGoogleCloudVisionV1p4beta1DominantColorsAnnotation(o.dominantColors! |
| as api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ImageProperties--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ReferenceImage> buildUnnamed4297() { |
| var o = <api.GoogleCloudVisionV1p4beta1ReferenceImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ReferenceImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1ReferenceImage()); |
| return o; |
| } |
| |
| void checkUnnamed4297( |
| core.List<api.GoogleCloudVisionV1p4beta1ReferenceImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ReferenceImage( |
| o[0] as api.GoogleCloudVisionV1p4beta1ReferenceImage); |
| checkGoogleCloudVisionV1p4beta1ReferenceImage( |
| o[1] as api.GoogleCloudVisionV1p4beta1ReferenceImage); |
| } |
| |
| core.List<api.Status> buildUnnamed4298() { |
| var o = <api.Status>[]; |
| o.add(buildStatus()); |
| o.add(buildStatus()); |
| return o; |
| } |
| |
| void checkUnnamed4298(core.List<api.Status> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkStatus(o[0] as api.Status); |
| checkStatus(o[1] as api.Status); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse = 0; |
| api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse |
| buildGoogleCloudVisionV1p4beta1ImportProductSetsResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse < 3) { |
| o.referenceImages = buildUnnamed4297(); |
| o.statuses = buildUnnamed4298(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ImportProductSetsResponse( |
| api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse < 3) { |
| checkUnnamed4297(o.referenceImages!); |
| checkUnnamed4298(o.statuses!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1InputConfig = 0; |
| api.GoogleCloudVisionV1p4beta1InputConfig |
| buildGoogleCloudVisionV1p4beta1InputConfig() { |
| var o = api.GoogleCloudVisionV1p4beta1InputConfig(); |
| buildCounterGoogleCloudVisionV1p4beta1InputConfig++; |
| if (buildCounterGoogleCloudVisionV1p4beta1InputConfig < 3) { |
| o.content = 'foo'; |
| o.gcsSource = buildGoogleCloudVisionV1p4beta1GcsSource(); |
| o.mimeType = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1InputConfig--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1InputConfig( |
| api.GoogleCloudVisionV1p4beta1InputConfig o) { |
| buildCounterGoogleCloudVisionV1p4beta1InputConfig++; |
| if (buildCounterGoogleCloudVisionV1p4beta1InputConfig < 3) { |
| unittest.expect( |
| o.content!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p4beta1GcsSource( |
| o.gcsSource! as api.GoogleCloudVisionV1p4beta1GcsSource); |
| unittest.expect( |
| o.mimeType!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1InputConfig--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation = 0; |
| api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation |
| buildGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation < 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.languageCode = 'foo'; |
| o.mid = 'foo'; |
| o.name = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation( |
| api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation < 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1LocationInfo = 0; |
| api.GoogleCloudVisionV1p4beta1LocationInfo |
| buildGoogleCloudVisionV1p4beta1LocationInfo() { |
| var o = api.GoogleCloudVisionV1p4beta1LocationInfo(); |
| buildCounterGoogleCloudVisionV1p4beta1LocationInfo++; |
| if (buildCounterGoogleCloudVisionV1p4beta1LocationInfo < 3) { |
| o.latLng = buildLatLng(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1LocationInfo--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1LocationInfo( |
| api.GoogleCloudVisionV1p4beta1LocationInfo o) { |
| buildCounterGoogleCloudVisionV1p4beta1LocationInfo++; |
| if (buildCounterGoogleCloudVisionV1p4beta1LocationInfo < 3) { |
| checkLatLng(o.latLng! as api.LatLng); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1LocationInfo--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1NormalizedVertex = 0; |
| api.GoogleCloudVisionV1p4beta1NormalizedVertex |
| buildGoogleCloudVisionV1p4beta1NormalizedVertex() { |
| var o = api.GoogleCloudVisionV1p4beta1NormalizedVertex(); |
| buildCounterGoogleCloudVisionV1p4beta1NormalizedVertex++; |
| if (buildCounterGoogleCloudVisionV1p4beta1NormalizedVertex < 3) { |
| o.x = 42.0; |
| o.y = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1NormalizedVertex--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1NormalizedVertex( |
| api.GoogleCloudVisionV1p4beta1NormalizedVertex o) { |
| buildCounterGoogleCloudVisionV1p4beta1NormalizedVertex++; |
| if (buildCounterGoogleCloudVisionV1p4beta1NormalizedVertex < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1NormalizedVertex--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1OperationMetadata = 0; |
| api.GoogleCloudVisionV1p4beta1OperationMetadata |
| buildGoogleCloudVisionV1p4beta1OperationMetadata() { |
| var o = api.GoogleCloudVisionV1p4beta1OperationMetadata(); |
| buildCounterGoogleCloudVisionV1p4beta1OperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p4beta1OperationMetadata < 3) { |
| o.createTime = 'foo'; |
| o.state = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1OperationMetadata--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1OperationMetadata( |
| api.GoogleCloudVisionV1p4beta1OperationMetadata o) { |
| buildCounterGoogleCloudVisionV1p4beta1OperationMetadata++; |
| if (buildCounterGoogleCloudVisionV1p4beta1OperationMetadata < 3) { |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.state!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1OperationMetadata--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1OutputConfig = 0; |
| api.GoogleCloudVisionV1p4beta1OutputConfig |
| buildGoogleCloudVisionV1p4beta1OutputConfig() { |
| var o = api.GoogleCloudVisionV1p4beta1OutputConfig(); |
| buildCounterGoogleCloudVisionV1p4beta1OutputConfig++; |
| if (buildCounterGoogleCloudVisionV1p4beta1OutputConfig < 3) { |
| o.batchSize = 42; |
| o.gcsDestination = buildGoogleCloudVisionV1p4beta1GcsDestination(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1OutputConfig--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1OutputConfig( |
| api.GoogleCloudVisionV1p4beta1OutputConfig o) { |
| buildCounterGoogleCloudVisionV1p4beta1OutputConfig++; |
| if (buildCounterGoogleCloudVisionV1p4beta1OutputConfig < 3) { |
| unittest.expect( |
| o.batchSize!, |
| unittest.equals(42), |
| ); |
| checkGoogleCloudVisionV1p4beta1GcsDestination( |
| o.gcsDestination! as api.GoogleCloudVisionV1p4beta1GcsDestination); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1OutputConfig--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Block> buildUnnamed4299() { |
| var o = <api.GoogleCloudVisionV1p4beta1Block>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Block()); |
| o.add(buildGoogleCloudVisionV1p4beta1Block()); |
| return o; |
| } |
| |
| void checkUnnamed4299(core.List<api.GoogleCloudVisionV1p4beta1Block> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Block( |
| o[0] as api.GoogleCloudVisionV1p4beta1Block); |
| checkGoogleCloudVisionV1p4beta1Block( |
| o[1] as api.GoogleCloudVisionV1p4beta1Block); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Page = 0; |
| api.GoogleCloudVisionV1p4beta1Page buildGoogleCloudVisionV1p4beta1Page() { |
| var o = api.GoogleCloudVisionV1p4beta1Page(); |
| buildCounterGoogleCloudVisionV1p4beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Page < 3) { |
| o.blocks = buildUnnamed4299(); |
| o.confidence = 42.0; |
| o.height = 42; |
| o.property = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); |
| o.width = 42; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Page--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Page(api.GoogleCloudVisionV1p4beta1Page o) { |
| buildCounterGoogleCloudVisionV1p4beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Page < 3) { |
| checkUnnamed4299(o.blocks!); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.height!, |
| unittest.equals(42), |
| ); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty); |
| unittest.expect( |
| o.width!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Page--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Word> buildUnnamed4300() { |
| var o = <api.GoogleCloudVisionV1p4beta1Word>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Word()); |
| o.add(buildGoogleCloudVisionV1p4beta1Word()); |
| return o; |
| } |
| |
| void checkUnnamed4300(core.List<api.GoogleCloudVisionV1p4beta1Word> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Word( |
| o[0] as api.GoogleCloudVisionV1p4beta1Word); |
| checkGoogleCloudVisionV1p4beta1Word( |
| o[1] as api.GoogleCloudVisionV1p4beta1Word); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Paragraph = 0; |
| api.GoogleCloudVisionV1p4beta1Paragraph |
| buildGoogleCloudVisionV1p4beta1Paragraph() { |
| var o = api.GoogleCloudVisionV1p4beta1Paragraph(); |
| buildCounterGoogleCloudVisionV1p4beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Paragraph < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); |
| o.words = buildUnnamed4300(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Paragraph--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Paragraph( |
| api.GoogleCloudVisionV1p4beta1Paragraph o) { |
| buildCounterGoogleCloudVisionV1p4beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Paragraph < 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty); |
| checkUnnamed4300(o.words!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Paragraph--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Position = 0; |
| api.GoogleCloudVisionV1p4beta1Position |
| buildGoogleCloudVisionV1p4beta1Position() { |
| var o = api.GoogleCloudVisionV1p4beta1Position(); |
| buildCounterGoogleCloudVisionV1p4beta1Position++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Position < 3) { |
| o.x = 42.0; |
| o.y = 42.0; |
| o.z = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Position--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Position( |
| api.GoogleCloudVisionV1p4beta1Position o) { |
| buildCounterGoogleCloudVisionV1p4beta1Position++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Position < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.z!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Position--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ProductKeyValue> buildUnnamed4301() { |
| var o = <api.GoogleCloudVisionV1p4beta1ProductKeyValue>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ProductKeyValue()); |
| o.add(buildGoogleCloudVisionV1p4beta1ProductKeyValue()); |
| return o; |
| } |
| |
| void checkUnnamed4301( |
| core.List<api.GoogleCloudVisionV1p4beta1ProductKeyValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ProductKeyValue( |
| o[0] as api.GoogleCloudVisionV1p4beta1ProductKeyValue); |
| checkGoogleCloudVisionV1p4beta1ProductKeyValue( |
| o[1] as api.GoogleCloudVisionV1p4beta1ProductKeyValue); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Product = 0; |
| api.GoogleCloudVisionV1p4beta1Product buildGoogleCloudVisionV1p4beta1Product() { |
| var o = api.GoogleCloudVisionV1p4beta1Product(); |
| buildCounterGoogleCloudVisionV1p4beta1Product++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Product < 3) { |
| o.description = 'foo'; |
| o.displayName = 'foo'; |
| o.name = 'foo'; |
| o.productCategory = 'foo'; |
| o.productLabels = buildUnnamed4301(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Product--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Product( |
| api.GoogleCloudVisionV1p4beta1Product o) { |
| buildCounterGoogleCloudVisionV1p4beta1Product++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Product < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.productCategory!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4301(o.productLabels!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Product--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ProductKeyValue = 0; |
| api.GoogleCloudVisionV1p4beta1ProductKeyValue |
| buildGoogleCloudVisionV1p4beta1ProductKeyValue() { |
| var o = api.GoogleCloudVisionV1p4beta1ProductKeyValue(); |
| buildCounterGoogleCloudVisionV1p4beta1ProductKeyValue++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductKeyValue < 3) { |
| o.key = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductKeyValue--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ProductKeyValue( |
| api.GoogleCloudVisionV1p4beta1ProductKeyValue o) { |
| buildCounterGoogleCloudVisionV1p4beta1ProductKeyValue++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductKeyValue < 3) { |
| unittest.expect( |
| o.key!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductKeyValue--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult> |
| buildUnnamed4302() { |
| var o = <api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult()); |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult()); |
| return o; |
| } |
| |
| void checkUnnamed4302( |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult( |
| o[0] as api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult( |
| o[1] as api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult> |
| buildUnnamed4303() { |
| var o = <api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed4303( |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult( |
| o[0] as api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult( |
| o[1] as api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults = 0; |
| api.GoogleCloudVisionV1p4beta1ProductSearchResults |
| buildGoogleCloudVisionV1p4beta1ProductSearchResults() { |
| var o = api.GoogleCloudVisionV1p4beta1ProductSearchResults(); |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults < 3) { |
| o.indexTime = 'foo'; |
| o.productGroupedResults = buildUnnamed4302(); |
| o.results = buildUnnamed4303(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ProductSearchResults( |
| api.GoogleCloudVisionV1p4beta1ProductSearchResults o) { |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults < 3) { |
| unittest.expect( |
| o.indexTime!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4302(o.productGroupedResults!); |
| checkUnnamed4303(o.results!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation> |
| buildUnnamed4304() { |
| var o = |
| <api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4304( |
| core.List< |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation(o[0] |
| as api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation(o[1] |
| as api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult> |
| buildUnnamed4305() { |
| var o = <api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed4305( |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult( |
| o[0] as api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult( |
| o[1] as api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult); |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult = 0; |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult |
| buildGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult() { |
| var o = api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult(); |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult < |
| 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.objectAnnotations = buildUnnamed4304(); |
| o.results = buildUnnamed4305(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult( |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult o) { |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult < |
| 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o.boundingPoly! as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| checkUnnamed4304(o.objectAnnotations!); |
| checkUnnamed4305(o.results!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult--; |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation = |
| 0; |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation |
| buildGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation < |
| 3) { |
| o.languageCode = 'foo'; |
| o.mid = 'foo'; |
| o.name = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation( |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation < |
| 3) { |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsResult = 0; |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult |
| buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult() { |
| var o = api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult(); |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsResult++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsResult < 3) { |
| o.image = 'foo'; |
| o.product = buildGoogleCloudVisionV1p4beta1Product(); |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult( |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult o) { |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsResult++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsResult < 3) { |
| unittest.expect( |
| o.image!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleCloudVisionV1p4beta1Product( |
| o.product! as api.GoogleCloudVisionV1p4beta1Product); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsResult--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Property = 0; |
| api.GoogleCloudVisionV1p4beta1Property |
| buildGoogleCloudVisionV1p4beta1Property() { |
| var o = api.GoogleCloudVisionV1p4beta1Property(); |
| buildCounterGoogleCloudVisionV1p4beta1Property++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Property < 3) { |
| o.name = 'foo'; |
| o.uint64Value = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Property--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Property( |
| api.GoogleCloudVisionV1p4beta1Property o) { |
| buildCounterGoogleCloudVisionV1p4beta1Property++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Property < 3) { |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.uint64Value!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Property--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1BoundingPoly> buildUnnamed4306() { |
| var o = <api.GoogleCloudVisionV1p4beta1BoundingPoly>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1BoundingPoly()); |
| o.add(buildGoogleCloudVisionV1p4beta1BoundingPoly()); |
| return o; |
| } |
| |
| void checkUnnamed4306(core.List<api.GoogleCloudVisionV1p4beta1BoundingPoly> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o[0] as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o[1] as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ReferenceImage = 0; |
| api.GoogleCloudVisionV1p4beta1ReferenceImage |
| buildGoogleCloudVisionV1p4beta1ReferenceImage() { |
| var o = api.GoogleCloudVisionV1p4beta1ReferenceImage(); |
| buildCounterGoogleCloudVisionV1p4beta1ReferenceImage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ReferenceImage < 3) { |
| o.boundingPolys = buildUnnamed4306(); |
| o.name = 'foo'; |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ReferenceImage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ReferenceImage( |
| api.GoogleCloudVisionV1p4beta1ReferenceImage o) { |
| buildCounterGoogleCloudVisionV1p4beta1ReferenceImage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ReferenceImage < 3) { |
| checkUnnamed4306(o.boundingPolys!); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ReferenceImage--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1SafeSearchAnnotation = 0; |
| api.GoogleCloudVisionV1p4beta1SafeSearchAnnotation |
| buildGoogleCloudVisionV1p4beta1SafeSearchAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1SafeSearchAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1SafeSearchAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1SafeSearchAnnotation < 3) { |
| o.adult = 'foo'; |
| o.medical = 'foo'; |
| o.racy = 'foo'; |
| o.spoof = 'foo'; |
| o.violence = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1SafeSearchAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1SafeSearchAnnotation( |
| api.GoogleCloudVisionV1p4beta1SafeSearchAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1SafeSearchAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1SafeSearchAnnotation < 3) { |
| unittest.expect( |
| o.adult!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.medical!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.racy!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.spoof!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.violence!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1SafeSearchAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Symbol = 0; |
| api.GoogleCloudVisionV1p4beta1Symbol buildGoogleCloudVisionV1p4beta1Symbol() { |
| var o = api.GoogleCloudVisionV1p4beta1Symbol(); |
| buildCounterGoogleCloudVisionV1p4beta1Symbol++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Symbol < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Symbol--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Symbol( |
| api.GoogleCloudVisionV1p4beta1Symbol o) { |
| buildCounterGoogleCloudVisionV1p4beta1Symbol++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Symbol < 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty); |
| unittest.expect( |
| o.text!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Symbol--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Page> buildUnnamed4307() { |
| var o = <api.GoogleCloudVisionV1p4beta1Page>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Page()); |
| o.add(buildGoogleCloudVisionV1p4beta1Page()); |
| return o; |
| } |
| |
| void checkUnnamed4307(core.List<api.GoogleCloudVisionV1p4beta1Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Page( |
| o[0] as api.GoogleCloudVisionV1p4beta1Page); |
| checkGoogleCloudVisionV1p4beta1Page( |
| o[1] as api.GoogleCloudVisionV1p4beta1Page); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1TextAnnotation = 0; |
| api.GoogleCloudVisionV1p4beta1TextAnnotation |
| buildGoogleCloudVisionV1p4beta1TextAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1TextAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotation < 3) { |
| o.pages = buildUnnamed4307(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1TextAnnotation( |
| api.GoogleCloudVisionV1p4beta1TextAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotation < 3) { |
| checkUnnamed4307(o.pages!); |
| unittest.expect( |
| o.text!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotation--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak = 0; |
| api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak |
| buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak() { |
| var o = api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak(); |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak < 3) { |
| o.isPrefix = true; |
| o.type = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak( |
| api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak o) { |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak < 3) { |
| unittest.expect(o.isPrefix!, unittest.isTrue); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage = |
| 0; |
| api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage |
| buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage() { |
| var o = api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage(); |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage < |
| 3) { |
| o.confidence = 42.0; |
| o.languageCode = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage( |
| api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage o) { |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage < |
| 3) { |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage> |
| buildUnnamed4308() { |
| var o = <api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage()); |
| o.add(buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage()); |
| return o; |
| } |
| |
| void checkUnnamed4308( |
| core.List<api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage( |
| o[0] as api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage( |
| o[1] as api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty = 0; |
| api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty |
| buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty() { |
| var o = api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty < 3) { |
| o.detectedBreak = |
| buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak(); |
| o.detectedLanguages = buildUnnamed4308(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty( |
| api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty o) { |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty < 3) { |
| checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak(o.detectedBreak! |
| as api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak); |
| checkUnnamed4308(o.detectedLanguages!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Vertex = 0; |
| api.GoogleCloudVisionV1p4beta1Vertex buildGoogleCloudVisionV1p4beta1Vertex() { |
| var o = api.GoogleCloudVisionV1p4beta1Vertex(); |
| buildCounterGoogleCloudVisionV1p4beta1Vertex++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Vertex < 3) { |
| o.x = 42; |
| o.y = 42; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Vertex--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Vertex( |
| api.GoogleCloudVisionV1p4beta1Vertex o) { |
| buildCounterGoogleCloudVisionV1p4beta1Vertex++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Vertex < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Vertex--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel> |
| buildUnnamed4309() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebLabel()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebLabel()); |
| return o; |
| } |
| |
| void checkUnnamed4309( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebLabel( |
| o[0] as api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebLabel( |
| o[1] as api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> |
| buildUnnamed4310() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4310( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebPage> |
| buildUnnamed4311() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebPage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebPage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebPage()); |
| return o; |
| } |
| |
| void checkUnnamed4311( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebPage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebPage( |
| o[0] as api.GoogleCloudVisionV1p4beta1WebDetectionWebPage); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebPage( |
| o[1] as api.GoogleCloudVisionV1p4beta1WebDetectionWebPage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> |
| buildUnnamed4312() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4312( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> |
| buildUnnamed4313() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4313( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity> |
| buildUnnamed4314() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebEntity()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebEntity()); |
| return o; |
| } |
| |
| void checkUnnamed4314( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebEntity( |
| o[0] as api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebEntity( |
| o[1] as api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1WebDetection = 0; |
| api.GoogleCloudVisionV1p4beta1WebDetection |
| buildGoogleCloudVisionV1p4beta1WebDetection() { |
| var o = api.GoogleCloudVisionV1p4beta1WebDetection(); |
| buildCounterGoogleCloudVisionV1p4beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetection < 3) { |
| o.bestGuessLabels = buildUnnamed4309(); |
| o.fullMatchingImages = buildUnnamed4310(); |
| o.pagesWithMatchingImages = buildUnnamed4311(); |
| o.partialMatchingImages = buildUnnamed4312(); |
| o.visuallySimilarImages = buildUnnamed4313(); |
| o.webEntities = buildUnnamed4314(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetection--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1WebDetection( |
| api.GoogleCloudVisionV1p4beta1WebDetection o) { |
| buildCounterGoogleCloudVisionV1p4beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetection < 3) { |
| checkUnnamed4309(o.bestGuessLabels!); |
| checkUnnamed4310(o.fullMatchingImages!); |
| checkUnnamed4311(o.pagesWithMatchingImages!); |
| checkUnnamed4312(o.partialMatchingImages!); |
| checkUnnamed4313(o.visuallySimilarImages!); |
| checkUnnamed4314(o.webEntities!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetection--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebEntity = 0; |
| api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity |
| buildGoogleCloudVisionV1p4beta1WebDetectionWebEntity() { |
| var o = api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity(); |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebEntity++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebEntity < 3) { |
| o.description = 'foo'; |
| o.entityId = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebEntity--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1WebDetectionWebEntity( |
| api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity o) { |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebEntity++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebEntity < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.entityId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebEntity--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebImage = 0; |
| api.GoogleCloudVisionV1p4beta1WebDetectionWebImage |
| buildGoogleCloudVisionV1p4beta1WebDetectionWebImage() { |
| var o = api.GoogleCloudVisionV1p4beta1WebDetectionWebImage(); |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebImage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebImage < 3) { |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebImage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| api.GoogleCloudVisionV1p4beta1WebDetectionWebImage o) { |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebImage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebImage < 3) { |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.url!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebImage--; |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebLabel = 0; |
| api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel |
| buildGoogleCloudVisionV1p4beta1WebDetectionWebLabel() { |
| var o = api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel(); |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebLabel++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebLabel < 3) { |
| o.label = 'foo'; |
| o.languageCode = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebLabel--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1WebDetectionWebLabel( |
| api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel o) { |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebLabel++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebLabel < 3) { |
| unittest.expect( |
| o.label!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebLabel--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> |
| buildUnnamed4315() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4315( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> |
| buildUnnamed4316() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4316( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| o[0] as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| o[1] as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage = 0; |
| api.GoogleCloudVisionV1p4beta1WebDetectionWebPage |
| buildGoogleCloudVisionV1p4beta1WebDetectionWebPage() { |
| var o = api.GoogleCloudVisionV1p4beta1WebDetectionWebPage(); |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage < 3) { |
| o.fullMatchingImages = buildUnnamed4315(); |
| o.pageTitle = 'foo'; |
| o.partialMatchingImages = buildUnnamed4316(); |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1WebDetectionWebPage( |
| api.GoogleCloudVisionV1p4beta1WebDetectionWebPage o) { |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage < 3) { |
| checkUnnamed4315(o.fullMatchingImages!); |
| unittest.expect( |
| o.pageTitle!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4316(o.partialMatchingImages!); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.url!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Symbol> buildUnnamed4317() { |
| var o = <api.GoogleCloudVisionV1p4beta1Symbol>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Symbol()); |
| o.add(buildGoogleCloudVisionV1p4beta1Symbol()); |
| return o; |
| } |
| |
| void checkUnnamed4317(core.List<api.GoogleCloudVisionV1p4beta1Symbol> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Symbol( |
| o[0] as api.GoogleCloudVisionV1p4beta1Symbol); |
| checkGoogleCloudVisionV1p4beta1Symbol( |
| o[1] as api.GoogleCloudVisionV1p4beta1Symbol); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Word = 0; |
| api.GoogleCloudVisionV1p4beta1Word buildGoogleCloudVisionV1p4beta1Word() { |
| var o = api.GoogleCloudVisionV1p4beta1Word(); |
| buildCounterGoogleCloudVisionV1p4beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Word < 3) { |
| o.boundingBox = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); |
| o.symbols = buildUnnamed4317(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Word--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Word(api.GoogleCloudVisionV1p4beta1Word o) { |
| buildCounterGoogleCloudVisionV1p4beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Word < 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| o.boundingBox! as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property! |
| as api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty); |
| checkUnnamed4317(o.symbols!); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Word--; |
| } |
| |
| core.List<api.ObjectAnnotation> buildUnnamed4318() { |
| var o = <api.ObjectAnnotation>[]; |
| o.add(buildObjectAnnotation()); |
| o.add(buildObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed4318(core.List<api.ObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkObjectAnnotation(o[0] as api.ObjectAnnotation); |
| checkObjectAnnotation(o[1] as api.ObjectAnnotation); |
| } |
| |
| core.List<api.Result> buildUnnamed4319() { |
| var o = <api.Result>[]; |
| o.add(buildResult()); |
| o.add(buildResult()); |
| return o; |
| } |
| |
| void checkUnnamed4319(core.List<api.Result> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkResult(o[0] as api.Result); |
| checkResult(o[1] as api.Result); |
| } |
| |
| core.int buildCounterGroupedResult = 0; |
| api.GroupedResult buildGroupedResult() { |
| var o = api.GroupedResult(); |
| buildCounterGroupedResult++; |
| if (buildCounterGroupedResult < 3) { |
| o.boundingPoly = buildBoundingPoly(); |
| o.objectAnnotations = buildUnnamed4318(); |
| o.results = buildUnnamed4319(); |
| } |
| buildCounterGroupedResult--; |
| return o; |
| } |
| |
| void checkGroupedResult(api.GroupedResult o) { |
| buildCounterGroupedResult++; |
| if (buildCounterGroupedResult < 3) { |
| checkBoundingPoly(o.boundingPoly! as api.BoundingPoly); |
| checkUnnamed4318(o.objectAnnotations!); |
| checkUnnamed4319(o.results!); |
| } |
| buildCounterGroupedResult--; |
| } |
| |
| core.int buildCounterImage = 0; |
| api.Image buildImage() { |
| var o = api.Image(); |
| buildCounterImage++; |
| if (buildCounterImage < 3) { |
| o.content = 'foo'; |
| o.source = buildImageSource(); |
| } |
| buildCounterImage--; |
| return o; |
| } |
| |
| void checkImage(api.Image o) { |
| buildCounterImage++; |
| if (buildCounterImage < 3) { |
| unittest.expect( |
| o.content!, |
| unittest.equals('foo'), |
| ); |
| checkImageSource(o.source! as api.ImageSource); |
| } |
| buildCounterImage--; |
| } |
| |
| core.int buildCounterImageAnnotationContext = 0; |
| api.ImageAnnotationContext buildImageAnnotationContext() { |
| var o = api.ImageAnnotationContext(); |
| buildCounterImageAnnotationContext++; |
| if (buildCounterImageAnnotationContext < 3) { |
| o.pageNumber = 42; |
| o.uri = 'foo'; |
| } |
| buildCounterImageAnnotationContext--; |
| return o; |
| } |
| |
| void checkImageAnnotationContext(api.ImageAnnotationContext o) { |
| buildCounterImageAnnotationContext++; |
| if (buildCounterImageAnnotationContext < 3) { |
| unittest.expect( |
| o.pageNumber!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterImageAnnotationContext--; |
| } |
| |
| core.List<core.String> buildUnnamed4320() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed4320(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.int buildCounterImageContext = 0; |
| api.ImageContext buildImageContext() { |
| var o = api.ImageContext(); |
| buildCounterImageContext++; |
| if (buildCounterImageContext < 3) { |
| o.cropHintsParams = buildCropHintsParams(); |
| o.languageHints = buildUnnamed4320(); |
| o.latLongRect = buildLatLongRect(); |
| o.productSearchParams = buildProductSearchParams(); |
| o.textDetectionParams = buildTextDetectionParams(); |
| o.webDetectionParams = buildWebDetectionParams(); |
| } |
| buildCounterImageContext--; |
| return o; |
| } |
| |
| void checkImageContext(api.ImageContext o) { |
| buildCounterImageContext++; |
| if (buildCounterImageContext < 3) { |
| checkCropHintsParams(o.cropHintsParams! as api.CropHintsParams); |
| checkUnnamed4320(o.languageHints!); |
| checkLatLongRect(o.latLongRect! as api.LatLongRect); |
| checkProductSearchParams(o.productSearchParams! as api.ProductSearchParams); |
| checkTextDetectionParams(o.textDetectionParams! as api.TextDetectionParams); |
| checkWebDetectionParams(o.webDetectionParams! as api.WebDetectionParams); |
| } |
| buildCounterImageContext--; |
| } |
| |
| core.int buildCounterImageProperties = 0; |
| api.ImageProperties buildImageProperties() { |
| var o = api.ImageProperties(); |
| buildCounterImageProperties++; |
| if (buildCounterImageProperties < 3) { |
| o.dominantColors = buildDominantColorsAnnotation(); |
| } |
| buildCounterImageProperties--; |
| return o; |
| } |
| |
| void checkImageProperties(api.ImageProperties o) { |
| buildCounterImageProperties++; |
| if (buildCounterImageProperties < 3) { |
| checkDominantColorsAnnotation( |
| o.dominantColors! as api.DominantColorsAnnotation); |
| } |
| buildCounterImageProperties--; |
| } |
| |
| core.int buildCounterImageSource = 0; |
| api.ImageSource buildImageSource() { |
| var o = api.ImageSource(); |
| buildCounterImageSource++; |
| if (buildCounterImageSource < 3) { |
| o.gcsImageUri = 'foo'; |
| o.imageUri = 'foo'; |
| } |
| buildCounterImageSource--; |
| return o; |
| } |
| |
| void checkImageSource(api.ImageSource o) { |
| buildCounterImageSource++; |
| if (buildCounterImageSource < 3) { |
| unittest.expect( |
| o.gcsImageUri!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.imageUri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterImageSource--; |
| } |
| |
| core.int buildCounterImportProductSetsGcsSource = 0; |
| api.ImportProductSetsGcsSource buildImportProductSetsGcsSource() { |
| var o = api.ImportProductSetsGcsSource(); |
| buildCounterImportProductSetsGcsSource++; |
| if (buildCounterImportProductSetsGcsSource < 3) { |
| o.csvFileUri = 'foo'; |
| } |
| buildCounterImportProductSetsGcsSource--; |
| return o; |
| } |
| |
| void checkImportProductSetsGcsSource(api.ImportProductSetsGcsSource o) { |
| buildCounterImportProductSetsGcsSource++; |
| if (buildCounterImportProductSetsGcsSource < 3) { |
| unittest.expect( |
| o.csvFileUri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterImportProductSetsGcsSource--; |
| } |
| |
| core.int buildCounterImportProductSetsInputConfig = 0; |
| api.ImportProductSetsInputConfig buildImportProductSetsInputConfig() { |
| var o = api.ImportProductSetsInputConfig(); |
| buildCounterImportProductSetsInputConfig++; |
| if (buildCounterImportProductSetsInputConfig < 3) { |
| o.gcsSource = buildImportProductSetsGcsSource(); |
| } |
| buildCounterImportProductSetsInputConfig--; |
| return o; |
| } |
| |
| void checkImportProductSetsInputConfig(api.ImportProductSetsInputConfig o) { |
| buildCounterImportProductSetsInputConfig++; |
| if (buildCounterImportProductSetsInputConfig < 3) { |
| checkImportProductSetsGcsSource( |
| o.gcsSource! as api.ImportProductSetsGcsSource); |
| } |
| buildCounterImportProductSetsInputConfig--; |
| } |
| |
| core.int buildCounterImportProductSetsRequest = 0; |
| api.ImportProductSetsRequest buildImportProductSetsRequest() { |
| var o = api.ImportProductSetsRequest(); |
| buildCounterImportProductSetsRequest++; |
| if (buildCounterImportProductSetsRequest < 3) { |
| o.inputConfig = buildImportProductSetsInputConfig(); |
| } |
| buildCounterImportProductSetsRequest--; |
| return o; |
| } |
| |
| void checkImportProductSetsRequest(api.ImportProductSetsRequest o) { |
| buildCounterImportProductSetsRequest++; |
| if (buildCounterImportProductSetsRequest < 3) { |
| checkImportProductSetsInputConfig( |
| o.inputConfig! as api.ImportProductSetsInputConfig); |
| } |
| buildCounterImportProductSetsRequest--; |
| } |
| |
| core.List<api.ReferenceImage> buildUnnamed4321() { |
| var o = <api.ReferenceImage>[]; |
| o.add(buildReferenceImage()); |
| o.add(buildReferenceImage()); |
| return o; |
| } |
| |
| void checkUnnamed4321(core.List<api.ReferenceImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkReferenceImage(o[0] as api.ReferenceImage); |
| checkReferenceImage(o[1] as api.ReferenceImage); |
| } |
| |
| core.List<api.Status> buildUnnamed4322() { |
| var o = <api.Status>[]; |
| o.add(buildStatus()); |
| o.add(buildStatus()); |
| return o; |
| } |
| |
| void checkUnnamed4322(core.List<api.Status> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkStatus(o[0] as api.Status); |
| checkStatus(o[1] as api.Status); |
| } |
| |
| core.int buildCounterImportProductSetsResponse = 0; |
| api.ImportProductSetsResponse buildImportProductSetsResponse() { |
| var o = api.ImportProductSetsResponse(); |
| buildCounterImportProductSetsResponse++; |
| if (buildCounterImportProductSetsResponse < 3) { |
| o.referenceImages = buildUnnamed4321(); |
| o.statuses = buildUnnamed4322(); |
| } |
| buildCounterImportProductSetsResponse--; |
| return o; |
| } |
| |
| void checkImportProductSetsResponse(api.ImportProductSetsResponse o) { |
| buildCounterImportProductSetsResponse++; |
| if (buildCounterImportProductSetsResponse < 3) { |
| checkUnnamed4321(o.referenceImages!); |
| checkUnnamed4322(o.statuses!); |
| } |
| buildCounterImportProductSetsResponse--; |
| } |
| |
| core.int buildCounterInputConfig = 0; |
| api.InputConfig buildInputConfig() { |
| var o = api.InputConfig(); |
| buildCounterInputConfig++; |
| if (buildCounterInputConfig < 3) { |
| o.content = 'foo'; |
| o.gcsSource = buildGcsSource(); |
| o.mimeType = 'foo'; |
| } |
| buildCounterInputConfig--; |
| return o; |
| } |
| |
| void checkInputConfig(api.InputConfig o) { |
| buildCounterInputConfig++; |
| if (buildCounterInputConfig < 3) { |
| unittest.expect( |
| o.content!, |
| unittest.equals('foo'), |
| ); |
| checkGcsSource(o.gcsSource! as api.GcsSource); |
| unittest.expect( |
| o.mimeType!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterInputConfig--; |
| } |
| |
| core.int buildCounterKeyValue = 0; |
| api.KeyValue buildKeyValue() { |
| var o = api.KeyValue(); |
| buildCounterKeyValue++; |
| if (buildCounterKeyValue < 3) { |
| o.key = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterKeyValue--; |
| return o; |
| } |
| |
| void checkKeyValue(api.KeyValue o) { |
| buildCounterKeyValue++; |
| if (buildCounterKeyValue < 3) { |
| unittest.expect( |
| o.key!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterKeyValue--; |
| } |
| |
| core.int buildCounterLandmark = 0; |
| api.Landmark buildLandmark() { |
| var o = api.Landmark(); |
| buildCounterLandmark++; |
| if (buildCounterLandmark < 3) { |
| o.position = buildPosition(); |
| o.type = 'foo'; |
| } |
| buildCounterLandmark--; |
| return o; |
| } |
| |
| void checkLandmark(api.Landmark o) { |
| buildCounterLandmark++; |
| if (buildCounterLandmark < 3) { |
| checkPosition(o.position! as api.Position); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterLandmark--; |
| } |
| |
| core.int buildCounterLatLng = 0; |
| api.LatLng buildLatLng() { |
| var o = api.LatLng(); |
| buildCounterLatLng++; |
| if (buildCounterLatLng < 3) { |
| o.latitude = 42.0; |
| o.longitude = 42.0; |
| } |
| buildCounterLatLng--; |
| return o; |
| } |
| |
| void checkLatLng(api.LatLng o) { |
| buildCounterLatLng++; |
| if (buildCounterLatLng < 3) { |
| unittest.expect( |
| o.latitude!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.longitude!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterLatLng--; |
| } |
| |
| core.int buildCounterLatLongRect = 0; |
| api.LatLongRect buildLatLongRect() { |
| var o = api.LatLongRect(); |
| buildCounterLatLongRect++; |
| if (buildCounterLatLongRect < 3) { |
| o.maxLatLng = buildLatLng(); |
| o.minLatLng = buildLatLng(); |
| } |
| buildCounterLatLongRect--; |
| return o; |
| } |
| |
| void checkLatLongRect(api.LatLongRect o) { |
| buildCounterLatLongRect++; |
| if (buildCounterLatLongRect < 3) { |
| checkLatLng(o.maxLatLng! as api.LatLng); |
| checkLatLng(o.minLatLng! as api.LatLng); |
| } |
| buildCounterLatLongRect--; |
| } |
| |
| core.List<api.Operation> buildUnnamed4323() { |
| var o = <api.Operation>[]; |
| o.add(buildOperation()); |
| o.add(buildOperation()); |
| return o; |
| } |
| |
| void checkUnnamed4323(core.List<api.Operation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkOperation(o[0] as api.Operation); |
| checkOperation(o[1] as api.Operation); |
| } |
| |
| core.int buildCounterListOperationsResponse = 0; |
| api.ListOperationsResponse buildListOperationsResponse() { |
| var o = api.ListOperationsResponse(); |
| buildCounterListOperationsResponse++; |
| if (buildCounterListOperationsResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.operations = buildUnnamed4323(); |
| } |
| buildCounterListOperationsResponse--; |
| return o; |
| } |
| |
| void checkListOperationsResponse(api.ListOperationsResponse o) { |
| buildCounterListOperationsResponse++; |
| if (buildCounterListOperationsResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4323(o.operations!); |
| } |
| buildCounterListOperationsResponse--; |
| } |
| |
| core.List<api.ProductSet> buildUnnamed4324() { |
| var o = <api.ProductSet>[]; |
| o.add(buildProductSet()); |
| o.add(buildProductSet()); |
| return o; |
| } |
| |
| void checkUnnamed4324(core.List<api.ProductSet> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkProductSet(o[0] as api.ProductSet); |
| checkProductSet(o[1] as api.ProductSet); |
| } |
| |
| core.int buildCounterListProductSetsResponse = 0; |
| api.ListProductSetsResponse buildListProductSetsResponse() { |
| var o = api.ListProductSetsResponse(); |
| buildCounterListProductSetsResponse++; |
| if (buildCounterListProductSetsResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.productSets = buildUnnamed4324(); |
| } |
| buildCounterListProductSetsResponse--; |
| return o; |
| } |
| |
| void checkListProductSetsResponse(api.ListProductSetsResponse o) { |
| buildCounterListProductSetsResponse++; |
| if (buildCounterListProductSetsResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4324(o.productSets!); |
| } |
| buildCounterListProductSetsResponse--; |
| } |
| |
| core.List<api.Product> buildUnnamed4325() { |
| var o = <api.Product>[]; |
| o.add(buildProduct()); |
| o.add(buildProduct()); |
| return o; |
| } |
| |
| void checkUnnamed4325(core.List<api.Product> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkProduct(o[0] as api.Product); |
| checkProduct(o[1] as api.Product); |
| } |
| |
| core.int buildCounterListProductsInProductSetResponse = 0; |
| api.ListProductsInProductSetResponse buildListProductsInProductSetResponse() { |
| var o = api.ListProductsInProductSetResponse(); |
| buildCounterListProductsInProductSetResponse++; |
| if (buildCounterListProductsInProductSetResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.products = buildUnnamed4325(); |
| } |
| buildCounterListProductsInProductSetResponse--; |
| return o; |
| } |
| |
| void checkListProductsInProductSetResponse( |
| api.ListProductsInProductSetResponse o) { |
| buildCounterListProductsInProductSetResponse++; |
| if (buildCounterListProductsInProductSetResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4325(o.products!); |
| } |
| buildCounterListProductsInProductSetResponse--; |
| } |
| |
| core.List<api.Product> buildUnnamed4326() { |
| var o = <api.Product>[]; |
| o.add(buildProduct()); |
| o.add(buildProduct()); |
| return o; |
| } |
| |
| void checkUnnamed4326(core.List<api.Product> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkProduct(o[0] as api.Product); |
| checkProduct(o[1] as api.Product); |
| } |
| |
| core.int buildCounterListProductsResponse = 0; |
| api.ListProductsResponse buildListProductsResponse() { |
| var o = api.ListProductsResponse(); |
| buildCounterListProductsResponse++; |
| if (buildCounterListProductsResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.products = buildUnnamed4326(); |
| } |
| buildCounterListProductsResponse--; |
| return o; |
| } |
| |
| void checkListProductsResponse(api.ListProductsResponse o) { |
| buildCounterListProductsResponse++; |
| if (buildCounterListProductsResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4326(o.products!); |
| } |
| buildCounterListProductsResponse--; |
| } |
| |
| core.List<api.ReferenceImage> buildUnnamed4327() { |
| var o = <api.ReferenceImage>[]; |
| o.add(buildReferenceImage()); |
| o.add(buildReferenceImage()); |
| return o; |
| } |
| |
| void checkUnnamed4327(core.List<api.ReferenceImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkReferenceImage(o[0] as api.ReferenceImage); |
| checkReferenceImage(o[1] as api.ReferenceImage); |
| } |
| |
| core.int buildCounterListReferenceImagesResponse = 0; |
| api.ListReferenceImagesResponse buildListReferenceImagesResponse() { |
| var o = api.ListReferenceImagesResponse(); |
| buildCounterListReferenceImagesResponse++; |
| if (buildCounterListReferenceImagesResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.pageSize = 42; |
| o.referenceImages = buildUnnamed4327(); |
| } |
| buildCounterListReferenceImagesResponse--; |
| return o; |
| } |
| |
| void checkListReferenceImagesResponse(api.ListReferenceImagesResponse o) { |
| buildCounterListReferenceImagesResponse++; |
| if (buildCounterListReferenceImagesResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.pageSize!, |
| unittest.equals(42), |
| ); |
| checkUnnamed4327(o.referenceImages!); |
| } |
| buildCounterListReferenceImagesResponse--; |
| } |
| |
| core.int buildCounterLocalizedObjectAnnotation = 0; |
| api.LocalizedObjectAnnotation buildLocalizedObjectAnnotation() { |
| var o = api.LocalizedObjectAnnotation(); |
| buildCounterLocalizedObjectAnnotation++; |
| if (buildCounterLocalizedObjectAnnotation < 3) { |
| o.boundingPoly = buildBoundingPoly(); |
| o.languageCode = 'foo'; |
| o.mid = 'foo'; |
| o.name = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterLocalizedObjectAnnotation--; |
| return o; |
| } |
| |
| void checkLocalizedObjectAnnotation(api.LocalizedObjectAnnotation o) { |
| buildCounterLocalizedObjectAnnotation++; |
| if (buildCounterLocalizedObjectAnnotation < 3) { |
| checkBoundingPoly(o.boundingPoly! as api.BoundingPoly); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterLocalizedObjectAnnotation--; |
| } |
| |
| core.int buildCounterLocationInfo = 0; |
| api.LocationInfo buildLocationInfo() { |
| var o = api.LocationInfo(); |
| buildCounterLocationInfo++; |
| if (buildCounterLocationInfo < 3) { |
| o.latLng = buildLatLng(); |
| } |
| buildCounterLocationInfo--; |
| return o; |
| } |
| |
| void checkLocationInfo(api.LocationInfo o) { |
| buildCounterLocationInfo++; |
| if (buildCounterLocationInfo < 3) { |
| checkLatLng(o.latLng! as api.LatLng); |
| } |
| buildCounterLocationInfo--; |
| } |
| |
| core.int buildCounterNormalizedVertex = 0; |
| api.NormalizedVertex buildNormalizedVertex() { |
| var o = api.NormalizedVertex(); |
| buildCounterNormalizedVertex++; |
| if (buildCounterNormalizedVertex < 3) { |
| o.x = 42.0; |
| o.y = 42.0; |
| } |
| buildCounterNormalizedVertex--; |
| return o; |
| } |
| |
| void checkNormalizedVertex(api.NormalizedVertex o) { |
| buildCounterNormalizedVertex++; |
| if (buildCounterNormalizedVertex < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterNormalizedVertex--; |
| } |
| |
| core.int buildCounterObjectAnnotation = 0; |
| api.ObjectAnnotation buildObjectAnnotation() { |
| var o = api.ObjectAnnotation(); |
| buildCounterObjectAnnotation++; |
| if (buildCounterObjectAnnotation < 3) { |
| o.languageCode = 'foo'; |
| o.mid = 'foo'; |
| o.name = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterObjectAnnotation--; |
| return o; |
| } |
| |
| void checkObjectAnnotation(api.ObjectAnnotation o) { |
| buildCounterObjectAnnotation++; |
| if (buildCounterObjectAnnotation < 3) { |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.mid!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterObjectAnnotation--; |
| } |
| |
| core.Map<core.String, core.Object> buildUnnamed4328() { |
| var o = <core.String, core.Object>{}; |
| o['x'] = { |
| 'list': [1, 2, 3], |
| 'bool': true, |
| 'string': 'foo' |
| }; |
| o['y'] = { |
| 'list': [1, 2, 3], |
| 'bool': true, |
| 'string': 'foo' |
| }; |
| return o; |
| } |
| |
| void checkUnnamed4328(core.Map<core.String, core.Object> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| var casted1 = (o['x']!) as core.Map; |
| unittest.expect(casted1, unittest.hasLength(3)); |
| unittest.expect( |
| casted1['list'], |
| unittest.equals([1, 2, 3]), |
| ); |
| unittest.expect( |
| casted1['bool'], |
| unittest.equals(true), |
| ); |
| unittest.expect( |
| casted1['string'], |
| unittest.equals('foo'), |
| ); |
| var casted2 = (o['y']!) as core.Map; |
| unittest.expect(casted2, unittest.hasLength(3)); |
| unittest.expect( |
| casted2['list'], |
| unittest.equals([1, 2, 3]), |
| ); |
| unittest.expect( |
| casted2['bool'], |
| unittest.equals(true), |
| ); |
| unittest.expect( |
| casted2['string'], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.Map<core.String, core.Object> buildUnnamed4329() { |
| var o = <core.String, core.Object>{}; |
| o['x'] = { |
| 'list': [1, 2, 3], |
| 'bool': true, |
| 'string': 'foo' |
| }; |
| o['y'] = { |
| 'list': [1, 2, 3], |
| 'bool': true, |
| 'string': 'foo' |
| }; |
| return o; |
| } |
| |
| void checkUnnamed4329(core.Map<core.String, core.Object> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| var casted3 = (o['x']!) as core.Map; |
| unittest.expect(casted3, unittest.hasLength(3)); |
| unittest.expect( |
| casted3['list'], |
| unittest.equals([1, 2, 3]), |
| ); |
| unittest.expect( |
| casted3['bool'], |
| unittest.equals(true), |
| ); |
| unittest.expect( |
| casted3['string'], |
| unittest.equals('foo'), |
| ); |
| var casted4 = (o['y']!) as core.Map; |
| unittest.expect(casted4, unittest.hasLength(3)); |
| unittest.expect( |
| casted4['list'], |
| unittest.equals([1, 2, 3]), |
| ); |
| unittest.expect( |
| casted4['bool'], |
| unittest.equals(true), |
| ); |
| unittest.expect( |
| casted4['string'], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.int buildCounterOperation = 0; |
| api.Operation buildOperation() { |
| var o = api.Operation(); |
| buildCounterOperation++; |
| if (buildCounterOperation < 3) { |
| o.done = true; |
| o.error = buildStatus(); |
| o.metadata = buildUnnamed4328(); |
| o.name = 'foo'; |
| o.response = buildUnnamed4329(); |
| } |
| buildCounterOperation--; |
| return o; |
| } |
| |
| void checkOperation(api.Operation o) { |
| buildCounterOperation++; |
| if (buildCounterOperation < 3) { |
| unittest.expect(o.done!, unittest.isTrue); |
| checkStatus(o.error! as api.Status); |
| checkUnnamed4328(o.metadata!); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4329(o.response!); |
| } |
| buildCounterOperation--; |
| } |
| |
| core.int buildCounterOperationMetadata = 0; |
| api.OperationMetadata buildOperationMetadata() { |
| var o = api.OperationMetadata(); |
| buildCounterOperationMetadata++; |
| if (buildCounterOperationMetadata < 3) { |
| o.createTime = 'foo'; |
| o.state = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterOperationMetadata--; |
| return o; |
| } |
| |
| void checkOperationMetadata(api.OperationMetadata o) { |
| buildCounterOperationMetadata++; |
| if (buildCounterOperationMetadata < 3) { |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.state!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterOperationMetadata--; |
| } |
| |
| core.int buildCounterOutputConfig = 0; |
| api.OutputConfig buildOutputConfig() { |
| var o = api.OutputConfig(); |
| buildCounterOutputConfig++; |
| if (buildCounterOutputConfig < 3) { |
| o.batchSize = 42; |
| o.gcsDestination = buildGcsDestination(); |
| } |
| buildCounterOutputConfig--; |
| return o; |
| } |
| |
| void checkOutputConfig(api.OutputConfig o) { |
| buildCounterOutputConfig++; |
| if (buildCounterOutputConfig < 3) { |
| unittest.expect( |
| o.batchSize!, |
| unittest.equals(42), |
| ); |
| checkGcsDestination(o.gcsDestination! as api.GcsDestination); |
| } |
| buildCounterOutputConfig--; |
| } |
| |
| core.List<api.Block> buildUnnamed4330() { |
| var o = <api.Block>[]; |
| o.add(buildBlock()); |
| o.add(buildBlock()); |
| return o; |
| } |
| |
| void checkUnnamed4330(core.List<api.Block> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkBlock(o[0] as api.Block); |
| checkBlock(o[1] as api.Block); |
| } |
| |
| core.int buildCounterPage = 0; |
| api.Page buildPage() { |
| var o = api.Page(); |
| buildCounterPage++; |
| if (buildCounterPage < 3) { |
| o.blocks = buildUnnamed4330(); |
| o.confidence = 42.0; |
| o.height = 42; |
| o.property = buildTextProperty(); |
| o.width = 42; |
| } |
| buildCounterPage--; |
| return o; |
| } |
| |
| void checkPage(api.Page o) { |
| buildCounterPage++; |
| if (buildCounterPage < 3) { |
| checkUnnamed4330(o.blocks!); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.height!, |
| unittest.equals(42), |
| ); |
| checkTextProperty(o.property! as api.TextProperty); |
| unittest.expect( |
| o.width!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterPage--; |
| } |
| |
| core.List<api.Word> buildUnnamed4331() { |
| var o = <api.Word>[]; |
| o.add(buildWord()); |
| o.add(buildWord()); |
| return o; |
| } |
| |
| void checkUnnamed4331(core.List<api.Word> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWord(o[0] as api.Word); |
| checkWord(o[1] as api.Word); |
| } |
| |
| core.int buildCounterParagraph = 0; |
| api.Paragraph buildParagraph() { |
| var o = api.Paragraph(); |
| buildCounterParagraph++; |
| if (buildCounterParagraph < 3) { |
| o.boundingBox = buildBoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildTextProperty(); |
| o.words = buildUnnamed4331(); |
| } |
| buildCounterParagraph--; |
| return o; |
| } |
| |
| void checkParagraph(api.Paragraph o) { |
| buildCounterParagraph++; |
| if (buildCounterParagraph < 3) { |
| checkBoundingPoly(o.boundingBox! as api.BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkTextProperty(o.property! as api.TextProperty); |
| checkUnnamed4331(o.words!); |
| } |
| buildCounterParagraph--; |
| } |
| |
| core.int buildCounterPosition = 0; |
| api.Position buildPosition() { |
| var o = api.Position(); |
| buildCounterPosition++; |
| if (buildCounterPosition < 3) { |
| o.x = 42.0; |
| o.y = 42.0; |
| o.z = 42.0; |
| } |
| buildCounterPosition--; |
| return o; |
| } |
| |
| void checkPosition(api.Position o) { |
| buildCounterPosition++; |
| if (buildCounterPosition < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.z!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterPosition--; |
| } |
| |
| core.List<api.KeyValue> buildUnnamed4332() { |
| var o = <api.KeyValue>[]; |
| o.add(buildKeyValue()); |
| o.add(buildKeyValue()); |
| return o; |
| } |
| |
| void checkUnnamed4332(core.List<api.KeyValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkKeyValue(o[0] as api.KeyValue); |
| checkKeyValue(o[1] as api.KeyValue); |
| } |
| |
| core.int buildCounterProduct = 0; |
| api.Product buildProduct() { |
| var o = api.Product(); |
| buildCounterProduct++; |
| if (buildCounterProduct < 3) { |
| o.description = 'foo'; |
| o.displayName = 'foo'; |
| o.name = 'foo'; |
| o.productCategory = 'foo'; |
| o.productLabels = buildUnnamed4332(); |
| } |
| buildCounterProduct--; |
| return o; |
| } |
| |
| void checkProduct(api.Product o) { |
| buildCounterProduct++; |
| if (buildCounterProduct < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.productCategory!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4332(o.productLabels!); |
| } |
| buildCounterProduct--; |
| } |
| |
| core.List<core.String> buildUnnamed4333() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed4333(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.int buildCounterProductSearchParams = 0; |
| api.ProductSearchParams buildProductSearchParams() { |
| var o = api.ProductSearchParams(); |
| buildCounterProductSearchParams++; |
| if (buildCounterProductSearchParams < 3) { |
| o.boundingPoly = buildBoundingPoly(); |
| o.filter = 'foo'; |
| o.productCategories = buildUnnamed4333(); |
| o.productSet = 'foo'; |
| } |
| buildCounterProductSearchParams--; |
| return o; |
| } |
| |
| void checkProductSearchParams(api.ProductSearchParams o) { |
| buildCounterProductSearchParams++; |
| if (buildCounterProductSearchParams < 3) { |
| checkBoundingPoly(o.boundingPoly! as api.BoundingPoly); |
| unittest.expect( |
| o.filter!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4333(o.productCategories!); |
| unittest.expect( |
| o.productSet!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterProductSearchParams--; |
| } |
| |
| core.List<api.GroupedResult> buildUnnamed4334() { |
| var o = <api.GroupedResult>[]; |
| o.add(buildGroupedResult()); |
| o.add(buildGroupedResult()); |
| return o; |
| } |
| |
| void checkUnnamed4334(core.List<api.GroupedResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGroupedResult(o[0] as api.GroupedResult); |
| checkGroupedResult(o[1] as api.GroupedResult); |
| } |
| |
| core.List<api.Result> buildUnnamed4335() { |
| var o = <api.Result>[]; |
| o.add(buildResult()); |
| o.add(buildResult()); |
| return o; |
| } |
| |
| void checkUnnamed4335(core.List<api.Result> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkResult(o[0] as api.Result); |
| checkResult(o[1] as api.Result); |
| } |
| |
| core.int buildCounterProductSearchResults = 0; |
| api.ProductSearchResults buildProductSearchResults() { |
| var o = api.ProductSearchResults(); |
| buildCounterProductSearchResults++; |
| if (buildCounterProductSearchResults < 3) { |
| o.indexTime = 'foo'; |
| o.productGroupedResults = buildUnnamed4334(); |
| o.results = buildUnnamed4335(); |
| } |
| buildCounterProductSearchResults--; |
| return o; |
| } |
| |
| void checkProductSearchResults(api.ProductSearchResults o) { |
| buildCounterProductSearchResults++; |
| if (buildCounterProductSearchResults < 3) { |
| unittest.expect( |
| o.indexTime!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4334(o.productGroupedResults!); |
| checkUnnamed4335(o.results!); |
| } |
| buildCounterProductSearchResults--; |
| } |
| |
| core.int buildCounterProductSet = 0; |
| api.ProductSet buildProductSet() { |
| var o = api.ProductSet(); |
| buildCounterProductSet++; |
| if (buildCounterProductSet < 3) { |
| o.displayName = 'foo'; |
| o.indexError = buildStatus(); |
| o.indexTime = 'foo'; |
| o.name = 'foo'; |
| } |
| buildCounterProductSet--; |
| return o; |
| } |
| |
| void checkProductSet(api.ProductSet o) { |
| buildCounterProductSet++; |
| if (buildCounterProductSet < 3) { |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| checkStatus(o.indexError! as api.Status); |
| unittest.expect( |
| o.indexTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterProductSet--; |
| } |
| |
| core.int buildCounterProductSetPurgeConfig = 0; |
| api.ProductSetPurgeConfig buildProductSetPurgeConfig() { |
| var o = api.ProductSetPurgeConfig(); |
| buildCounterProductSetPurgeConfig++; |
| if (buildCounterProductSetPurgeConfig < 3) { |
| o.productSetId = 'foo'; |
| } |
| buildCounterProductSetPurgeConfig--; |
| return o; |
| } |
| |
| void checkProductSetPurgeConfig(api.ProductSetPurgeConfig o) { |
| buildCounterProductSetPurgeConfig++; |
| if (buildCounterProductSetPurgeConfig < 3) { |
| unittest.expect( |
| o.productSetId!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterProductSetPurgeConfig--; |
| } |
| |
| core.int buildCounterProperty = 0; |
| api.Property buildProperty() { |
| var o = api.Property(); |
| buildCounterProperty++; |
| if (buildCounterProperty < 3) { |
| o.name = 'foo'; |
| o.uint64Value = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterProperty--; |
| return o; |
| } |
| |
| void checkProperty(api.Property o) { |
| buildCounterProperty++; |
| if (buildCounterProperty < 3) { |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.uint64Value!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterProperty--; |
| } |
| |
| core.int buildCounterPurgeProductsRequest = 0; |
| api.PurgeProductsRequest buildPurgeProductsRequest() { |
| var o = api.PurgeProductsRequest(); |
| buildCounterPurgeProductsRequest++; |
| if (buildCounterPurgeProductsRequest < 3) { |
| o.deleteOrphanProducts = true; |
| o.force = true; |
| o.productSetPurgeConfig = buildProductSetPurgeConfig(); |
| } |
| buildCounterPurgeProductsRequest--; |
| return o; |
| } |
| |
| void checkPurgeProductsRequest(api.PurgeProductsRequest o) { |
| buildCounterPurgeProductsRequest++; |
| if (buildCounterPurgeProductsRequest < 3) { |
| unittest.expect(o.deleteOrphanProducts!, unittest.isTrue); |
| unittest.expect(o.force!, unittest.isTrue); |
| checkProductSetPurgeConfig( |
| o.productSetPurgeConfig! as api.ProductSetPurgeConfig); |
| } |
| buildCounterPurgeProductsRequest--; |
| } |
| |
| core.List<api.BoundingPoly> buildUnnamed4336() { |
| var o = <api.BoundingPoly>[]; |
| o.add(buildBoundingPoly()); |
| o.add(buildBoundingPoly()); |
| return o; |
| } |
| |
| void checkUnnamed4336(core.List<api.BoundingPoly> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkBoundingPoly(o[0] as api.BoundingPoly); |
| checkBoundingPoly(o[1] as api.BoundingPoly); |
| } |
| |
| core.int buildCounterReferenceImage = 0; |
| api.ReferenceImage buildReferenceImage() { |
| var o = api.ReferenceImage(); |
| buildCounterReferenceImage++; |
| if (buildCounterReferenceImage < 3) { |
| o.boundingPolys = buildUnnamed4336(); |
| o.name = 'foo'; |
| o.uri = 'foo'; |
| } |
| buildCounterReferenceImage--; |
| return o; |
| } |
| |
| void checkReferenceImage(api.ReferenceImage o) { |
| buildCounterReferenceImage++; |
| if (buildCounterReferenceImage < 3) { |
| checkUnnamed4336(o.boundingPolys!); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.uri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterReferenceImage--; |
| } |
| |
| core.int buildCounterRemoveProductFromProductSetRequest = 0; |
| api.RemoveProductFromProductSetRequest |
| buildRemoveProductFromProductSetRequest() { |
| var o = api.RemoveProductFromProductSetRequest(); |
| buildCounterRemoveProductFromProductSetRequest++; |
| if (buildCounterRemoveProductFromProductSetRequest < 3) { |
| o.product = 'foo'; |
| } |
| buildCounterRemoveProductFromProductSetRequest--; |
| return o; |
| } |
| |
| void checkRemoveProductFromProductSetRequest( |
| api.RemoveProductFromProductSetRequest o) { |
| buildCounterRemoveProductFromProductSetRequest++; |
| if (buildCounterRemoveProductFromProductSetRequest < 3) { |
| unittest.expect( |
| o.product!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterRemoveProductFromProductSetRequest--; |
| } |
| |
| core.int buildCounterResult = 0; |
| api.Result buildResult() { |
| var o = api.Result(); |
| buildCounterResult++; |
| if (buildCounterResult < 3) { |
| o.image = 'foo'; |
| o.product = buildProduct(); |
| o.score = 42.0; |
| } |
| buildCounterResult--; |
| return o; |
| } |
| |
| void checkResult(api.Result o) { |
| buildCounterResult++; |
| if (buildCounterResult < 3) { |
| unittest.expect( |
| o.image!, |
| unittest.equals('foo'), |
| ); |
| checkProduct(o.product! as api.Product); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterResult--; |
| } |
| |
| core.int buildCounterSafeSearchAnnotation = 0; |
| api.SafeSearchAnnotation buildSafeSearchAnnotation() { |
| var o = api.SafeSearchAnnotation(); |
| buildCounterSafeSearchAnnotation++; |
| if (buildCounterSafeSearchAnnotation < 3) { |
| o.adult = 'foo'; |
| o.medical = 'foo'; |
| o.racy = 'foo'; |
| o.spoof = 'foo'; |
| o.violence = 'foo'; |
| } |
| buildCounterSafeSearchAnnotation--; |
| return o; |
| } |
| |
| void checkSafeSearchAnnotation(api.SafeSearchAnnotation o) { |
| buildCounterSafeSearchAnnotation++; |
| if (buildCounterSafeSearchAnnotation < 3) { |
| unittest.expect( |
| o.adult!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.medical!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.racy!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.spoof!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.violence!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterSafeSearchAnnotation--; |
| } |
| |
| core.Map<core.String, core.Object> buildUnnamed4337() { |
| var o = <core.String, core.Object>{}; |
| o['x'] = { |
| 'list': [1, 2, 3], |
| 'bool': true, |
| 'string': 'foo' |
| }; |
| o['y'] = { |
| 'list': [1, 2, 3], |
| 'bool': true, |
| 'string': 'foo' |
| }; |
| return o; |
| } |
| |
| void checkUnnamed4337(core.Map<core.String, core.Object> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| var casted5 = (o['x']!) as core.Map; |
| unittest.expect(casted5, unittest.hasLength(3)); |
| unittest.expect( |
| casted5['list'], |
| unittest.equals([1, 2, 3]), |
| ); |
| unittest.expect( |
| casted5['bool'], |
| unittest.equals(true), |
| ); |
| unittest.expect( |
| casted5['string'], |
| unittest.equals('foo'), |
| ); |
| var casted6 = (o['y']!) as core.Map; |
| unittest.expect(casted6, unittest.hasLength(3)); |
| unittest.expect( |
| casted6['list'], |
| unittest.equals([1, 2, 3]), |
| ); |
| unittest.expect( |
| casted6['bool'], |
| unittest.equals(true), |
| ); |
| unittest.expect( |
| casted6['string'], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.List<core.Map<core.String, core.Object>> buildUnnamed4338() { |
| var o = <core.Map<core.String, core.Object>>[]; |
| o.add(buildUnnamed4337()); |
| o.add(buildUnnamed4337()); |
| return o; |
| } |
| |
| void checkUnnamed4338(core.List<core.Map<core.String, core.Object>> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkUnnamed4337(o[0]); |
| checkUnnamed4337(o[1]); |
| } |
| |
| core.int buildCounterStatus = 0; |
| api.Status buildStatus() { |
| var o = api.Status(); |
| buildCounterStatus++; |
| if (buildCounterStatus < 3) { |
| o.code = 42; |
| o.details = buildUnnamed4338(); |
| o.message = 'foo'; |
| } |
| buildCounterStatus--; |
| return o; |
| } |
| |
| void checkStatus(api.Status o) { |
| buildCounterStatus++; |
| if (buildCounterStatus < 3) { |
| unittest.expect( |
| o.code!, |
| unittest.equals(42), |
| ); |
| checkUnnamed4338(o.details!); |
| unittest.expect( |
| o.message!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterStatus--; |
| } |
| |
| core.int buildCounterSymbol = 0; |
| api.Symbol buildSymbol() { |
| var o = api.Symbol(); |
| buildCounterSymbol++; |
| if (buildCounterSymbol < 3) { |
| o.boundingBox = buildBoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildTextProperty(); |
| o.text = 'foo'; |
| } |
| buildCounterSymbol--; |
| return o; |
| } |
| |
| void checkSymbol(api.Symbol o) { |
| buildCounterSymbol++; |
| if (buildCounterSymbol < 3) { |
| checkBoundingPoly(o.boundingBox! as api.BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkTextProperty(o.property! as api.TextProperty); |
| unittest.expect( |
| o.text!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterSymbol--; |
| } |
| |
| core.List<api.Page> buildUnnamed4339() { |
| var o = <api.Page>[]; |
| o.add(buildPage()); |
| o.add(buildPage()); |
| return o; |
| } |
| |
| void checkUnnamed4339(core.List<api.Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkPage(o[0] as api.Page); |
| checkPage(o[1] as api.Page); |
| } |
| |
| core.int buildCounterTextAnnotation = 0; |
| api.TextAnnotation buildTextAnnotation() { |
| var o = api.TextAnnotation(); |
| buildCounterTextAnnotation++; |
| if (buildCounterTextAnnotation < 3) { |
| o.pages = buildUnnamed4339(); |
| o.text = 'foo'; |
| } |
| buildCounterTextAnnotation--; |
| return o; |
| } |
| |
| void checkTextAnnotation(api.TextAnnotation o) { |
| buildCounterTextAnnotation++; |
| if (buildCounterTextAnnotation < 3) { |
| checkUnnamed4339(o.pages!); |
| unittest.expect( |
| o.text!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterTextAnnotation--; |
| } |
| |
| core.int buildCounterTextDetectionParams = 0; |
| api.TextDetectionParams buildTextDetectionParams() { |
| var o = api.TextDetectionParams(); |
| buildCounterTextDetectionParams++; |
| if (buildCounterTextDetectionParams < 3) { |
| o.enableTextDetectionConfidenceScore = true; |
| } |
| buildCounterTextDetectionParams--; |
| return o; |
| } |
| |
| void checkTextDetectionParams(api.TextDetectionParams o) { |
| buildCounterTextDetectionParams++; |
| if (buildCounterTextDetectionParams < 3) { |
| unittest.expect(o.enableTextDetectionConfidenceScore!, unittest.isTrue); |
| } |
| buildCounterTextDetectionParams--; |
| } |
| |
| core.List<api.DetectedLanguage> buildUnnamed4340() { |
| var o = <api.DetectedLanguage>[]; |
| o.add(buildDetectedLanguage()); |
| o.add(buildDetectedLanguage()); |
| return o; |
| } |
| |
| void checkUnnamed4340(core.List<api.DetectedLanguage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkDetectedLanguage(o[0] as api.DetectedLanguage); |
| checkDetectedLanguage(o[1] as api.DetectedLanguage); |
| } |
| |
| core.int buildCounterTextProperty = 0; |
| api.TextProperty buildTextProperty() { |
| var o = api.TextProperty(); |
| buildCounterTextProperty++; |
| if (buildCounterTextProperty < 3) { |
| o.detectedBreak = buildDetectedBreak(); |
| o.detectedLanguages = buildUnnamed4340(); |
| } |
| buildCounterTextProperty--; |
| return o; |
| } |
| |
| void checkTextProperty(api.TextProperty o) { |
| buildCounterTextProperty++; |
| if (buildCounterTextProperty < 3) { |
| checkDetectedBreak(o.detectedBreak! as api.DetectedBreak); |
| checkUnnamed4340(o.detectedLanguages!); |
| } |
| buildCounterTextProperty--; |
| } |
| |
| core.int buildCounterVertex = 0; |
| api.Vertex buildVertex() { |
| var o = api.Vertex(); |
| buildCounterVertex++; |
| if (buildCounterVertex < 3) { |
| o.x = 42; |
| o.y = 42; |
| } |
| buildCounterVertex--; |
| return o; |
| } |
| |
| void checkVertex(api.Vertex o) { |
| buildCounterVertex++; |
| if (buildCounterVertex < 3) { |
| unittest.expect( |
| o.x!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.y!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterVertex--; |
| } |
| |
| core.List<api.WebLabel> buildUnnamed4341() { |
| var o = <api.WebLabel>[]; |
| o.add(buildWebLabel()); |
| o.add(buildWebLabel()); |
| return o; |
| } |
| |
| void checkUnnamed4341(core.List<api.WebLabel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebLabel(o[0] as api.WebLabel); |
| checkWebLabel(o[1] as api.WebLabel); |
| } |
| |
| core.List<api.WebImage> buildUnnamed4342() { |
| var o = <api.WebImage>[]; |
| o.add(buildWebImage()); |
| o.add(buildWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4342(core.List<api.WebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebImage(o[0] as api.WebImage); |
| checkWebImage(o[1] as api.WebImage); |
| } |
| |
| core.List<api.WebPage> buildUnnamed4343() { |
| var o = <api.WebPage>[]; |
| o.add(buildWebPage()); |
| o.add(buildWebPage()); |
| return o; |
| } |
| |
| void checkUnnamed4343(core.List<api.WebPage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebPage(o[0] as api.WebPage); |
| checkWebPage(o[1] as api.WebPage); |
| } |
| |
| core.List<api.WebImage> buildUnnamed4344() { |
| var o = <api.WebImage>[]; |
| o.add(buildWebImage()); |
| o.add(buildWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4344(core.List<api.WebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebImage(o[0] as api.WebImage); |
| checkWebImage(o[1] as api.WebImage); |
| } |
| |
| core.List<api.WebImage> buildUnnamed4345() { |
| var o = <api.WebImage>[]; |
| o.add(buildWebImage()); |
| o.add(buildWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4345(core.List<api.WebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebImage(o[0] as api.WebImage); |
| checkWebImage(o[1] as api.WebImage); |
| } |
| |
| core.List<api.WebEntity> buildUnnamed4346() { |
| var o = <api.WebEntity>[]; |
| o.add(buildWebEntity()); |
| o.add(buildWebEntity()); |
| return o; |
| } |
| |
| void checkUnnamed4346(core.List<api.WebEntity> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebEntity(o[0] as api.WebEntity); |
| checkWebEntity(o[1] as api.WebEntity); |
| } |
| |
| core.int buildCounterWebDetection = 0; |
| api.WebDetection buildWebDetection() { |
| var o = api.WebDetection(); |
| buildCounterWebDetection++; |
| if (buildCounterWebDetection < 3) { |
| o.bestGuessLabels = buildUnnamed4341(); |
| o.fullMatchingImages = buildUnnamed4342(); |
| o.pagesWithMatchingImages = buildUnnamed4343(); |
| o.partialMatchingImages = buildUnnamed4344(); |
| o.visuallySimilarImages = buildUnnamed4345(); |
| o.webEntities = buildUnnamed4346(); |
| } |
| buildCounterWebDetection--; |
| return o; |
| } |
| |
| void checkWebDetection(api.WebDetection o) { |
| buildCounterWebDetection++; |
| if (buildCounterWebDetection < 3) { |
| checkUnnamed4341(o.bestGuessLabels!); |
| checkUnnamed4342(o.fullMatchingImages!); |
| checkUnnamed4343(o.pagesWithMatchingImages!); |
| checkUnnamed4344(o.partialMatchingImages!); |
| checkUnnamed4345(o.visuallySimilarImages!); |
| checkUnnamed4346(o.webEntities!); |
| } |
| buildCounterWebDetection--; |
| } |
| |
| core.int buildCounterWebDetectionParams = 0; |
| api.WebDetectionParams buildWebDetectionParams() { |
| var o = api.WebDetectionParams(); |
| buildCounterWebDetectionParams++; |
| if (buildCounterWebDetectionParams < 3) { |
| o.includeGeoResults = true; |
| } |
| buildCounterWebDetectionParams--; |
| return o; |
| } |
| |
| void checkWebDetectionParams(api.WebDetectionParams o) { |
| buildCounterWebDetectionParams++; |
| if (buildCounterWebDetectionParams < 3) { |
| unittest.expect(o.includeGeoResults!, unittest.isTrue); |
| } |
| buildCounterWebDetectionParams--; |
| } |
| |
| core.int buildCounterWebEntity = 0; |
| api.WebEntity buildWebEntity() { |
| var o = api.WebEntity(); |
| buildCounterWebEntity++; |
| if (buildCounterWebEntity < 3) { |
| o.description = 'foo'; |
| o.entityId = 'foo'; |
| o.score = 42.0; |
| } |
| buildCounterWebEntity--; |
| return o; |
| } |
| |
| void checkWebEntity(api.WebEntity o) { |
| buildCounterWebEntity++; |
| if (buildCounterWebEntity < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.entityId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| } |
| buildCounterWebEntity--; |
| } |
| |
| core.int buildCounterWebImage = 0; |
| api.WebImage buildWebImage() { |
| var o = api.WebImage(); |
| buildCounterWebImage++; |
| if (buildCounterWebImage < 3) { |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterWebImage--; |
| return o; |
| } |
| |
| void checkWebImage(api.WebImage o) { |
| buildCounterWebImage++; |
| if (buildCounterWebImage < 3) { |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.url!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterWebImage--; |
| } |
| |
| core.int buildCounterWebLabel = 0; |
| api.WebLabel buildWebLabel() { |
| var o = api.WebLabel(); |
| buildCounterWebLabel++; |
| if (buildCounterWebLabel < 3) { |
| o.label = 'foo'; |
| o.languageCode = 'foo'; |
| } |
| buildCounterWebLabel--; |
| return o; |
| } |
| |
| void checkWebLabel(api.WebLabel o) { |
| buildCounterWebLabel++; |
| if (buildCounterWebLabel < 3) { |
| unittest.expect( |
| o.label!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.languageCode!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterWebLabel--; |
| } |
| |
| core.List<api.WebImage> buildUnnamed4347() { |
| var o = <api.WebImage>[]; |
| o.add(buildWebImage()); |
| o.add(buildWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4347(core.List<api.WebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebImage(o[0] as api.WebImage); |
| checkWebImage(o[1] as api.WebImage); |
| } |
| |
| core.List<api.WebImage> buildUnnamed4348() { |
| var o = <api.WebImage>[]; |
| o.add(buildWebImage()); |
| o.add(buildWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed4348(core.List<api.WebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebImage(o[0] as api.WebImage); |
| checkWebImage(o[1] as api.WebImage); |
| } |
| |
| core.int buildCounterWebPage = 0; |
| api.WebPage buildWebPage() { |
| var o = api.WebPage(); |
| buildCounterWebPage++; |
| if (buildCounterWebPage < 3) { |
| o.fullMatchingImages = buildUnnamed4347(); |
| o.pageTitle = 'foo'; |
| o.partialMatchingImages = buildUnnamed4348(); |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterWebPage--; |
| return o; |
| } |
| |
| void checkWebPage(api.WebPage o) { |
| buildCounterWebPage++; |
| if (buildCounterWebPage < 3) { |
| checkUnnamed4347(o.fullMatchingImages!); |
| unittest.expect( |
| o.pageTitle!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed4348(o.partialMatchingImages!); |
| unittest.expect( |
| o.score!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.url!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterWebPage--; |
| } |
| |
| core.List<api.Symbol> buildUnnamed4349() { |
| var o = <api.Symbol>[]; |
| o.add(buildSymbol()); |
| o.add(buildSymbol()); |
| return o; |
| } |
| |
| void checkUnnamed4349(core.List<api.Symbol> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkSymbol(o[0] as api.Symbol); |
| checkSymbol(o[1] as api.Symbol); |
| } |
| |
| core.int buildCounterWord = 0; |
| api.Word buildWord() { |
| var o = api.Word(); |
| buildCounterWord++; |
| if (buildCounterWord < 3) { |
| o.boundingBox = buildBoundingPoly(); |
| o.confidence = 42.0; |
| o.property = buildTextProperty(); |
| o.symbols = buildUnnamed4349(); |
| } |
| buildCounterWord--; |
| return o; |
| } |
| |
| void checkWord(api.Word o) { |
| buildCounterWord++; |
| if (buildCounterWord < 3) { |
| checkBoundingPoly(o.boundingBox! as api.BoundingPoly); |
| unittest.expect( |
| o.confidence!, |
| unittest.equals(42.0), |
| ); |
| checkTextProperty(o.property! as api.TextProperty); |
| checkUnnamed4349(o.symbols!); |
| } |
| buildCounterWord--; |
| } |
| |
| void main() { |
| unittest.group('obj-schema-AddProductToProductSetRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAddProductToProductSetRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AddProductToProductSetRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAddProductToProductSetRequest( |
| od as api.AddProductToProductSetRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AnnotateFileRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAnnotateFileRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AnnotateFileRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAnnotateFileRequest(od as api.AnnotateFileRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAnnotateFileResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AnnotateFileResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAnnotateFileResponse(od as api.AnnotateFileResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AnnotateImageRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAnnotateImageRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AnnotateImageRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAnnotateImageRequest(od as api.AnnotateImageRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AnnotateImageResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAnnotateImageResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AnnotateImageResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAnnotateImageResponse(od as api.AnnotateImageResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncAnnotateFileRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAsyncAnnotateFileRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AsyncAnnotateFileRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAsyncAnnotateFileRequest(od as api.AsyncAnnotateFileRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncAnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAsyncAnnotateFileResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AsyncAnnotateFileResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAsyncAnnotateFileResponse(od as api.AsyncAnnotateFileResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncBatchAnnotateFilesRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAsyncBatchAnnotateFilesRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AsyncBatchAnnotateFilesRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAsyncBatchAnnotateFilesRequest( |
| od as api.AsyncBatchAnnotateFilesRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncBatchAnnotateFilesResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAsyncBatchAnnotateFilesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AsyncBatchAnnotateFilesResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAsyncBatchAnnotateFilesResponse( |
| od as api.AsyncBatchAnnotateFilesResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncBatchAnnotateImagesRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAsyncBatchAnnotateImagesRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AsyncBatchAnnotateImagesRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAsyncBatchAnnotateImagesRequest( |
| od as api.AsyncBatchAnnotateImagesRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncBatchAnnotateImagesResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildAsyncBatchAnnotateImagesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.AsyncBatchAnnotateImagesResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkAsyncBatchAnnotateImagesResponse( |
| od as api.AsyncBatchAnnotateImagesResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchAnnotateFilesRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildBatchAnnotateFilesRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.BatchAnnotateFilesRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkBatchAnnotateFilesRequest(od as api.BatchAnnotateFilesRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchAnnotateFilesResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildBatchAnnotateFilesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.BatchAnnotateFilesResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkBatchAnnotateFilesResponse(od as api.BatchAnnotateFilesResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchAnnotateImagesRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildBatchAnnotateImagesRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.BatchAnnotateImagesRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkBatchAnnotateImagesRequest(od as api.BatchAnnotateImagesRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchAnnotateImagesResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildBatchAnnotateImagesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.BatchAnnotateImagesResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkBatchAnnotateImagesResponse(od as api.BatchAnnotateImagesResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchOperationMetadata', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildBatchOperationMetadata(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.BatchOperationMetadata.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkBatchOperationMetadata(od as api.BatchOperationMetadata); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Block', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildBlock(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.Block.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkBlock(od as api.Block); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BoundingPoly', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildBoundingPoly(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.BoundingPoly.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkBoundingPoly(od as api.BoundingPoly); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CancelOperationRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildCancelOperationRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.CancelOperationRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkCancelOperationRequest(od as api.CancelOperationRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Color', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildColor(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.Color.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkColor(od as api.Color); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ColorInfo', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildColorInfo(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.ColorInfo.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkColorInfo(od as api.ColorInfo); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CropHint', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildCropHint(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.CropHint.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkCropHint(od as api.CropHint); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CropHintsAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildCropHintsAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.CropHintsAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkCropHintsAnnotation(od as api.CropHintsAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CropHintsParams', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildCropHintsParams(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.CropHintsParams.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkCropHintsParams(od as api.CropHintsParams); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DetectedBreak', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildDetectedBreak(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.DetectedBreak.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkDetectedBreak(od as api.DetectedBreak); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DetectedLanguage', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildDetectedLanguage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.DetectedLanguage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkDetectedLanguage(od as api.DetectedLanguage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DominantColorsAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildDominantColorsAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.DominantColorsAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkDominantColorsAnnotation(od as api.DominantColorsAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Empty', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildEmpty(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.Empty.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkEmpty(od as api.Empty); |
| }); |
| }); |
| |
| unittest.group('obj-schema-EntityAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildEntityAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.EntityAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkEntityAnnotation(od as api.EntityAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-FaceAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildFaceAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.FaceAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkFaceAnnotation(od as api.FaceAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Feature', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildFeature(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Feature.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkFeature(od as api.Feature); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GcsDestination', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGcsDestination(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GcsDestination.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGcsDestination(od as api.GcsDestination); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GcsSource', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGcsSource(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GcsSource.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGcsSource(od as api.GcsSource); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1AnnotateFileResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1AnnotateFileResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1AnnotateFileResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1AnnotateFileResponse( |
| od as api.GoogleCloudVisionV1p1beta1AnnotateFileResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1AnnotateImageResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1AnnotateImageResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1AnnotateImageResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1AnnotateImageResponse( |
| od as api.GoogleCloudVisionV1p1beta1AnnotateImageResponse); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse( |
| od as api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse( |
| od as api.GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Block', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1Block(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1Block.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1Block( |
| od as api.GoogleCloudVisionV1p1beta1Block); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1BoundingPoly', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1BoundingPoly.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| od as api.GoogleCloudVisionV1p1beta1BoundingPoly); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1ColorInfo', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1ColorInfo(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1ColorInfo.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1ColorInfo( |
| od as api.GoogleCloudVisionV1p1beta1ColorInfo); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1CropHint', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1CropHint(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1CropHint.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1CropHint( |
| od as api.GoogleCloudVisionV1p1beta1CropHint); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1CropHintsAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1CropHintsAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1CropHintsAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1CropHintsAnnotation( |
| od as api.GoogleCloudVisionV1p1beta1CropHintsAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1DominantColorsAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1DominantColorsAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1DominantColorsAnnotation( |
| od as api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1EntityAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1EntityAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1EntityAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| od as api.GoogleCloudVisionV1p1beta1EntityAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1FaceAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1FaceAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1FaceAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotation( |
| od as api.GoogleCloudVisionV1p1beta1FaceAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1FaceAnnotationLandmark', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1FaceAnnotationLandmark(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotationLandmark( |
| od as api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1GcsDestination', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1GcsDestination(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1GcsDestination.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1GcsDestination( |
| od as api.GoogleCloudVisionV1p1beta1GcsDestination); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1GcsSource', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1GcsSource(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1GcsSource.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1GcsSource( |
| od as api.GoogleCloudVisionV1p1beta1GcsSource); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1ImageAnnotationContext', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1ImageAnnotationContext(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1ImageAnnotationContext.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1ImageAnnotationContext( |
| od as api.GoogleCloudVisionV1p1beta1ImageAnnotationContext); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1ImageProperties', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1ImageProperties(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1ImageProperties.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1ImageProperties( |
| od as api.GoogleCloudVisionV1p1beta1ImageProperties); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1InputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1InputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1InputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1InputConfig( |
| od as api.GoogleCloudVisionV1p1beta1InputConfig); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation( |
| od as api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1LocationInfo', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1LocationInfo(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1LocationInfo.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1LocationInfo( |
| od as api.GoogleCloudVisionV1p1beta1LocationInfo); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1NormalizedVertex', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1NormalizedVertex(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1NormalizedVertex.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1NormalizedVertex( |
| od as api.GoogleCloudVisionV1p1beta1NormalizedVertex); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1OperationMetadata', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1OperationMetadata(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1OperationMetadata.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1OperationMetadata( |
| od as api.GoogleCloudVisionV1p1beta1OperationMetadata); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1OutputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1OutputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1OutputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1OutputConfig( |
| od as api.GoogleCloudVisionV1p1beta1OutputConfig); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Page', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1Page(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1Page.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1Page( |
| od as api.GoogleCloudVisionV1p1beta1Page); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Paragraph', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1Paragraph(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1Paragraph.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1Paragraph( |
| od as api.GoogleCloudVisionV1p1beta1Paragraph); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Position', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1Position(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1Position.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1Position( |
| od as api.GoogleCloudVisionV1p1beta1Position); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Product', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1Product(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1Product.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1Product( |
| od as api.GoogleCloudVisionV1p1beta1Product); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1ProductKeyValue', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1ProductKeyValue(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1ProductKeyValue.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1ProductKeyValue( |
| od as api.GoogleCloudVisionV1p1beta1ProductKeyValue); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1ProductSearchResults', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1ProductSearchResults(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1ProductSearchResults.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResults( |
| od as api.GoogleCloudVisionV1p1beta1ProductSearchResults); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = |
| buildGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult(od |
| as api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = |
| buildGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation(od |
| as api |
| .GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1ProductSearchResultsResult', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult( |
| od as api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Property', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1Property(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1Property.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1Property( |
| od as api.GoogleCloudVisionV1p1beta1Property); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1SafeSearchAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1SafeSearchAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1SafeSearchAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1SafeSearchAnnotation( |
| od as api.GoogleCloudVisionV1p1beta1SafeSearchAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Symbol', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1Symbol(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1Symbol.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1Symbol( |
| od as api.GoogleCloudVisionV1p1beta1Symbol); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1TextAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1TextAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1TextAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1TextAnnotation( |
| od as api.GoogleCloudVisionV1p1beta1TextAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak( |
| od as api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage( |
| od as api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1TextAnnotationTextProperty', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty( |
| od as api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Vertex', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1Vertex(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1Vertex.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1Vertex( |
| od as api.GoogleCloudVisionV1p1beta1Vertex); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1WebDetection', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1WebDetection(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1WebDetection.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1WebDetection( |
| od as api.GoogleCloudVisionV1p1beta1WebDetection); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1WebDetectionWebEntity', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1WebDetectionWebEntity(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebEntity( |
| od as api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1WebDetectionWebImage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1WebDetectionWebImage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1WebDetectionWebImage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage( |
| od as api.GoogleCloudVisionV1p1beta1WebDetectionWebImage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1WebDetectionWebLabel', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1WebDetectionWebLabel(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebLabel( |
| od as api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1WebDetectionWebPage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1WebDetectionWebPage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1WebDetectionWebPage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebPage( |
| od as api.GoogleCloudVisionV1p1beta1WebDetectionWebPage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Word', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p1beta1Word(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p1beta1Word.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p1beta1Word( |
| od as api.GoogleCloudVisionV1p1beta1Word); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1AnnotateFileResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1AnnotateFileResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1AnnotateFileResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1AnnotateFileResponse( |
| od as api.GoogleCloudVisionV1p2beta1AnnotateFileResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1AnnotateImageResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1AnnotateImageResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1AnnotateImageResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1AnnotateImageResponse( |
| od as api.GoogleCloudVisionV1p2beta1AnnotateImageResponse); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse( |
| od as api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse( |
| od as api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Block', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1Block(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1Block.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1Block( |
| od as api.GoogleCloudVisionV1p2beta1Block); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1BoundingPoly', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1BoundingPoly.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| od as api.GoogleCloudVisionV1p2beta1BoundingPoly); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1ColorInfo', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1ColorInfo(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1ColorInfo.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1ColorInfo( |
| od as api.GoogleCloudVisionV1p2beta1ColorInfo); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1CropHint', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1CropHint(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1CropHint.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1CropHint( |
| od as api.GoogleCloudVisionV1p2beta1CropHint); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1CropHintsAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1CropHintsAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1CropHintsAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1CropHintsAnnotation( |
| od as api.GoogleCloudVisionV1p2beta1CropHintsAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1DominantColorsAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1DominantColorsAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1DominantColorsAnnotation( |
| od as api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1EntityAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1EntityAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1EntityAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| od as api.GoogleCloudVisionV1p2beta1EntityAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1FaceAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1FaceAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1FaceAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotation( |
| od as api.GoogleCloudVisionV1p2beta1FaceAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1FaceAnnotationLandmark', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark( |
| od as api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1GcsDestination', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1GcsDestination(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1GcsDestination.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1GcsDestination( |
| od as api.GoogleCloudVisionV1p2beta1GcsDestination); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1GcsSource', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1GcsSource(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1GcsSource.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1GcsSource( |
| od as api.GoogleCloudVisionV1p2beta1GcsSource); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1ImageAnnotationContext', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1ImageAnnotationContext(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1ImageAnnotationContext.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1ImageAnnotationContext( |
| od as api.GoogleCloudVisionV1p2beta1ImageAnnotationContext); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1ImageProperties', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1ImageProperties(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1ImageProperties.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1ImageProperties( |
| od as api.GoogleCloudVisionV1p2beta1ImageProperties); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1InputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1InputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1InputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1InputConfig( |
| od as api.GoogleCloudVisionV1p2beta1InputConfig); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation( |
| od as api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1LocationInfo', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1LocationInfo(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1LocationInfo.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1LocationInfo( |
| od as api.GoogleCloudVisionV1p2beta1LocationInfo); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1NormalizedVertex', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1NormalizedVertex(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1NormalizedVertex.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1NormalizedVertex( |
| od as api.GoogleCloudVisionV1p2beta1NormalizedVertex); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1OperationMetadata', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1OperationMetadata(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1OperationMetadata.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1OperationMetadata( |
| od as api.GoogleCloudVisionV1p2beta1OperationMetadata); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1OutputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1OutputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1OutputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1OutputConfig( |
| od as api.GoogleCloudVisionV1p2beta1OutputConfig); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Page', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1Page(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1Page.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1Page( |
| od as api.GoogleCloudVisionV1p2beta1Page); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Paragraph', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1Paragraph(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1Paragraph.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1Paragraph( |
| od as api.GoogleCloudVisionV1p2beta1Paragraph); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Position', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1Position(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1Position.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1Position( |
| od as api.GoogleCloudVisionV1p2beta1Position); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Product', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1Product(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1Product.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1Product( |
| od as api.GoogleCloudVisionV1p2beta1Product); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1ProductKeyValue', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1ProductKeyValue(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1ProductKeyValue.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1ProductKeyValue( |
| od as api.GoogleCloudVisionV1p2beta1ProductKeyValue); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1ProductSearchResults', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1ProductSearchResults(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1ProductSearchResults.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResults( |
| od as api.GoogleCloudVisionV1p2beta1ProductSearchResults); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = |
| buildGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult(od |
| as api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = |
| buildGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation(od |
| as api |
| .GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1ProductSearchResultsResult', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult( |
| od as api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Property', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1Property(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1Property.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1Property( |
| od as api.GoogleCloudVisionV1p2beta1Property); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1SafeSearchAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1SafeSearchAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1SafeSearchAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1SafeSearchAnnotation( |
| od as api.GoogleCloudVisionV1p2beta1SafeSearchAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Symbol', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1Symbol(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1Symbol.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1Symbol( |
| od as api.GoogleCloudVisionV1p2beta1Symbol); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1TextAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1TextAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1TextAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1TextAnnotation( |
| od as api.GoogleCloudVisionV1p2beta1TextAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak( |
| od as api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage( |
| od as api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1TextAnnotationTextProperty', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty( |
| od as api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Vertex', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1Vertex(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1Vertex.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1Vertex( |
| od as api.GoogleCloudVisionV1p2beta1Vertex); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1WebDetection', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1WebDetection(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1WebDetection.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1WebDetection( |
| od as api.GoogleCloudVisionV1p2beta1WebDetection); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebEntity', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity( |
| od as api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebImage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebImage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1WebDetectionWebImage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( |
| od as api.GoogleCloudVisionV1p2beta1WebDetectionWebImage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebLabel', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel( |
| od as api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebPage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebPage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1WebDetectionWebPage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebPage( |
| od as api.GoogleCloudVisionV1p2beta1WebDetectionWebPage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Word', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p2beta1Word(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p2beta1Word.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p2beta1Word( |
| od as api.GoogleCloudVisionV1p2beta1Word); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1AnnotateFileResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1AnnotateFileResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1AnnotateFileResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1AnnotateFileResponse( |
| od as api.GoogleCloudVisionV1p3beta1AnnotateFileResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1AnnotateImageResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1AnnotateImageResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1AnnotateImageResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1AnnotateImageResponse( |
| od as api.GoogleCloudVisionV1p3beta1AnnotateImageResponse); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse( |
| od as api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse( |
| od as api.GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1BatchOperationMetadata', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1BatchOperationMetadata(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1BatchOperationMetadata.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1BatchOperationMetadata( |
| od as api.GoogleCloudVisionV1p3beta1BatchOperationMetadata); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Block', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1Block(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1Block.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1Block( |
| od as api.GoogleCloudVisionV1p3beta1Block); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1BoundingPoly', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1BoundingPoly.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| od as api.GoogleCloudVisionV1p3beta1BoundingPoly); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ColorInfo', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1ColorInfo(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1ColorInfo.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1ColorInfo( |
| od as api.GoogleCloudVisionV1p3beta1ColorInfo); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1CropHint', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1CropHint(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1CropHint.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1CropHint( |
| od as api.GoogleCloudVisionV1p3beta1CropHint); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1CropHintsAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1CropHintsAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1CropHintsAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1CropHintsAnnotation( |
| od as api.GoogleCloudVisionV1p3beta1CropHintsAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1DominantColorsAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1DominantColorsAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1DominantColorsAnnotation( |
| od as api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1EntityAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1EntityAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1EntityAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| od as api.GoogleCloudVisionV1p3beta1EntityAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1FaceAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1FaceAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1FaceAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotation( |
| od as api.GoogleCloudVisionV1p3beta1FaceAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1FaceAnnotationLandmark', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1FaceAnnotationLandmark(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotationLandmark( |
| od as api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1GcsDestination', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1GcsDestination(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1GcsDestination.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1GcsDestination( |
| od as api.GoogleCloudVisionV1p3beta1GcsDestination); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1GcsSource', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1GcsSource(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1GcsSource.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1GcsSource( |
| od as api.GoogleCloudVisionV1p3beta1GcsSource); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ImageAnnotationContext', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1ImageAnnotationContext(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1ImageAnnotationContext.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1ImageAnnotationContext( |
| od as api.GoogleCloudVisionV1p3beta1ImageAnnotationContext); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ImageProperties', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1ImageProperties(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1ImageProperties.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1ImageProperties( |
| od as api.GoogleCloudVisionV1p3beta1ImageProperties); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1ImportProductSetsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1ImportProductSetsResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1ImportProductSetsResponse( |
| od as api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1InputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1InputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1InputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1InputConfig( |
| od as api.GoogleCloudVisionV1p3beta1InputConfig); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation( |
| od as api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1LocationInfo', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1LocationInfo(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1LocationInfo.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1LocationInfo( |
| od as api.GoogleCloudVisionV1p3beta1LocationInfo); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1NormalizedVertex', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1NormalizedVertex(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1NormalizedVertex.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1NormalizedVertex( |
| od as api.GoogleCloudVisionV1p3beta1NormalizedVertex); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1OperationMetadata', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1OperationMetadata(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1OperationMetadata.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1OperationMetadata( |
| od as api.GoogleCloudVisionV1p3beta1OperationMetadata); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1OutputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1OutputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1OutputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1OutputConfig( |
| od as api.GoogleCloudVisionV1p3beta1OutputConfig); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Page', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1Page(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1Page.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1Page( |
| od as api.GoogleCloudVisionV1p3beta1Page); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Paragraph', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1Paragraph(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1Paragraph.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1Paragraph( |
| od as api.GoogleCloudVisionV1p3beta1Paragraph); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Position', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1Position(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1Position.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1Position( |
| od as api.GoogleCloudVisionV1p3beta1Position); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Product', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1Product(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1Product.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1Product( |
| od as api.GoogleCloudVisionV1p3beta1Product); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ProductKeyValue', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1ProductKeyValue(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1ProductKeyValue.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1ProductKeyValue( |
| od as api.GoogleCloudVisionV1p3beta1ProductKeyValue); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ProductSearchResults', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1ProductSearchResults(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1ProductSearchResults.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResults( |
| od as api.GoogleCloudVisionV1p3beta1ProductSearchResults); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = |
| buildGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult(od |
| as api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = |
| buildGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation(od |
| as api |
| .GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1ProductSearchResultsResult', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult( |
| od as api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Property', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1Property(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1Property.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1Property( |
| od as api.GoogleCloudVisionV1p3beta1Property); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ReferenceImage', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1ReferenceImage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1ReferenceImage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1ReferenceImage( |
| od as api.GoogleCloudVisionV1p3beta1ReferenceImage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1SafeSearchAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1SafeSearchAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1SafeSearchAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1SafeSearchAnnotation( |
| od as api.GoogleCloudVisionV1p3beta1SafeSearchAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Symbol', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1Symbol(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1Symbol.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1Symbol( |
| od as api.GoogleCloudVisionV1p3beta1Symbol); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1TextAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1TextAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1TextAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1TextAnnotation( |
| od as api.GoogleCloudVisionV1p3beta1TextAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak( |
| od as api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage( |
| od as api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1TextAnnotationTextProperty', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty( |
| od as api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Vertex', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1Vertex(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1Vertex.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1Vertex( |
| od as api.GoogleCloudVisionV1p3beta1Vertex); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1WebDetection', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1WebDetection(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1WebDetection.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1WebDetection( |
| od as api.GoogleCloudVisionV1p3beta1WebDetection); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1WebDetectionWebEntity', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1WebDetectionWebEntity(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebEntity( |
| od as api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1WebDetectionWebImage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1WebDetectionWebImage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1WebDetectionWebImage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage( |
| od as api.GoogleCloudVisionV1p3beta1WebDetectionWebImage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1WebDetectionWebLabel', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1WebDetectionWebLabel(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebLabel( |
| od as api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1WebDetectionWebPage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1WebDetectionWebPage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1WebDetectionWebPage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebPage( |
| od as api.GoogleCloudVisionV1p3beta1WebDetectionWebPage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Word', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p3beta1Word(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p3beta1Word.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p3beta1Word( |
| od as api.GoogleCloudVisionV1p3beta1Word); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1AnnotateFileResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1AnnotateFileResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1AnnotateFileResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1AnnotateFileResponse( |
| od as api.GoogleCloudVisionV1p4beta1AnnotateFileResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1AnnotateImageResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1AnnotateImageResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1AnnotateImageResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1AnnotateImageResponse( |
| od as api.GoogleCloudVisionV1p4beta1AnnotateImageResponse); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse( |
| od as api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse( |
| od as api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse( |
| od as api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse( |
| od as api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1BatchOperationMetadata', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1BatchOperationMetadata(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1BatchOperationMetadata.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1BatchOperationMetadata( |
| od as api.GoogleCloudVisionV1p4beta1BatchOperationMetadata); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Block', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1Block(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1Block.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1Block( |
| od as api.GoogleCloudVisionV1p4beta1Block); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1BoundingPoly', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1BoundingPoly.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| od as api.GoogleCloudVisionV1p4beta1BoundingPoly); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Celebrity', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1Celebrity(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1Celebrity.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1Celebrity( |
| od as api.GoogleCloudVisionV1p4beta1Celebrity); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ColorInfo', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1ColorInfo(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1ColorInfo.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1ColorInfo( |
| od as api.GoogleCloudVisionV1p4beta1ColorInfo); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1CropHint', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1CropHint(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1CropHint.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1CropHint( |
| od as api.GoogleCloudVisionV1p4beta1CropHint); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1CropHintsAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1CropHintsAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1CropHintsAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1CropHintsAnnotation( |
| od as api.GoogleCloudVisionV1p4beta1CropHintsAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1DominantColorsAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1DominantColorsAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1DominantColorsAnnotation( |
| od as api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1EntityAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1EntityAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1EntityAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| od as api.GoogleCloudVisionV1p4beta1EntityAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1FaceAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1FaceAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1FaceAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotation( |
| od as api.GoogleCloudVisionV1p4beta1FaceAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1FaceAnnotationLandmark', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1FaceAnnotationLandmark(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotationLandmark( |
| od as api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1FaceRecognitionResult', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1FaceRecognitionResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1FaceRecognitionResult.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1FaceRecognitionResult( |
| od as api.GoogleCloudVisionV1p4beta1FaceRecognitionResult); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1GcsDestination', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1GcsDestination(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1GcsDestination.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1GcsDestination( |
| od as api.GoogleCloudVisionV1p4beta1GcsDestination); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1GcsSource', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1GcsSource(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1GcsSource.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1GcsSource( |
| od as api.GoogleCloudVisionV1p4beta1GcsSource); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ImageAnnotationContext', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1ImageAnnotationContext(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1ImageAnnotationContext.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1ImageAnnotationContext( |
| od as api.GoogleCloudVisionV1p4beta1ImageAnnotationContext); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ImageProperties', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1ImageProperties(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1ImageProperties.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1ImageProperties( |
| od as api.GoogleCloudVisionV1p4beta1ImageProperties); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1ImportProductSetsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1ImportProductSetsResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1ImportProductSetsResponse( |
| od as api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1InputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1InputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1InputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1InputConfig( |
| od as api.GoogleCloudVisionV1p4beta1InputConfig); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation( |
| od as api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1LocationInfo', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1LocationInfo(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1LocationInfo.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1LocationInfo( |
| od as api.GoogleCloudVisionV1p4beta1LocationInfo); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1NormalizedVertex', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1NormalizedVertex(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1NormalizedVertex.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1NormalizedVertex( |
| od as api.GoogleCloudVisionV1p4beta1NormalizedVertex); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1OperationMetadata', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1OperationMetadata(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1OperationMetadata.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1OperationMetadata( |
| od as api.GoogleCloudVisionV1p4beta1OperationMetadata); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1OutputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1OutputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1OutputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1OutputConfig( |
| od as api.GoogleCloudVisionV1p4beta1OutputConfig); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Page', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1Page(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1Page.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1Page( |
| od as api.GoogleCloudVisionV1p4beta1Page); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Paragraph', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1Paragraph(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1Paragraph.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1Paragraph( |
| od as api.GoogleCloudVisionV1p4beta1Paragraph); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Position', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1Position(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1Position.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1Position( |
| od as api.GoogleCloudVisionV1p4beta1Position); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Product', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1Product(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1Product.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1Product( |
| od as api.GoogleCloudVisionV1p4beta1Product); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ProductKeyValue', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1ProductKeyValue(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1ProductKeyValue.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1ProductKeyValue( |
| od as api.GoogleCloudVisionV1p4beta1ProductKeyValue); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ProductSearchResults', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1ProductSearchResults(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1ProductSearchResults.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResults( |
| od as api.GoogleCloudVisionV1p4beta1ProductSearchResults); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = |
| buildGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult(od |
| as api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = |
| buildGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation(od |
| as api |
| .GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1ProductSearchResultsResult', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult( |
| od as api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Property', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1Property(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1Property.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1Property( |
| od as api.GoogleCloudVisionV1p4beta1Property); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ReferenceImage', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1ReferenceImage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1ReferenceImage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1ReferenceImage( |
| od as api.GoogleCloudVisionV1p4beta1ReferenceImage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1SafeSearchAnnotation', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1SafeSearchAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1SafeSearchAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1SafeSearchAnnotation( |
| od as api.GoogleCloudVisionV1p4beta1SafeSearchAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Symbol', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1Symbol(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1Symbol.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1Symbol( |
| od as api.GoogleCloudVisionV1p4beta1Symbol); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1TextAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1TextAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1TextAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1TextAnnotation( |
| od as api.GoogleCloudVisionV1p4beta1TextAnnotation); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak( |
| od as api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage( |
| od as api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1TextAnnotationTextProperty', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty( |
| od as api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Vertex', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1Vertex(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1Vertex.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1Vertex( |
| od as api.GoogleCloudVisionV1p4beta1Vertex); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1WebDetection', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1WebDetection(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1WebDetection.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1WebDetection( |
| od as api.GoogleCloudVisionV1p4beta1WebDetection); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1WebDetectionWebEntity', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1WebDetectionWebEntity(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebEntity( |
| od as api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1WebDetectionWebImage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1WebDetectionWebImage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1WebDetectionWebImage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage( |
| od as api.GoogleCloudVisionV1p4beta1WebDetectionWebImage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1WebDetectionWebLabel', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1WebDetectionWebLabel(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebLabel( |
| od as api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1WebDetectionWebPage', |
| () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1WebDetectionWebPage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1WebDetectionWebPage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebPage( |
| od as api.GoogleCloudVisionV1p4beta1WebDetectionWebPage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Word', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGoogleCloudVisionV1p4beta1Word(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GoogleCloudVisionV1p4beta1Word.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleCloudVisionV1p4beta1Word( |
| od as api.GoogleCloudVisionV1p4beta1Word); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GroupedResult', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildGroupedResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.GroupedResult.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGroupedResult(od as api.GroupedResult); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Image', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildImage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.Image.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkImage(od as api.Image); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImageAnnotationContext', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildImageAnnotationContext(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ImageAnnotationContext.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkImageAnnotationContext(od as api.ImageAnnotationContext); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImageContext', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildImageContext(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ImageContext.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkImageContext(od as api.ImageContext); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImageProperties', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildImageProperties(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ImageProperties.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkImageProperties(od as api.ImageProperties); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImageSource', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildImageSource(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ImageSource.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkImageSource(od as api.ImageSource); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImportProductSetsGcsSource', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildImportProductSetsGcsSource(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ImportProductSetsGcsSource.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkImportProductSetsGcsSource(od as api.ImportProductSetsGcsSource); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImportProductSetsInputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildImportProductSetsInputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ImportProductSetsInputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkImportProductSetsInputConfig(od as api.ImportProductSetsInputConfig); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImportProductSetsRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildImportProductSetsRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ImportProductSetsRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkImportProductSetsRequest(od as api.ImportProductSetsRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImportProductSetsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildImportProductSetsResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ImportProductSetsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkImportProductSetsResponse(od as api.ImportProductSetsResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-InputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildInputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.InputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkInputConfig(od as api.InputConfig); |
| }); |
| }); |
| |
| unittest.group('obj-schema-KeyValue', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildKeyValue(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.KeyValue.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkKeyValue(od as api.KeyValue); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Landmark', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildLandmark(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Landmark.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkLandmark(od as api.Landmark); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LatLng', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildLatLng(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.LatLng.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkLatLng(od as api.LatLng); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LatLongRect', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildLatLongRect(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.LatLongRect.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkLatLongRect(od as api.LatLongRect); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ListOperationsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildListOperationsResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ListOperationsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkListOperationsResponse(od as api.ListOperationsResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ListProductSetsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildListProductSetsResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ListProductSetsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkListProductSetsResponse(od as api.ListProductSetsResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ListProductsInProductSetResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildListProductsInProductSetResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ListProductsInProductSetResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkListProductsInProductSetResponse( |
| od as api.ListProductsInProductSetResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ListProductsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildListProductsResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ListProductsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkListProductsResponse(od as api.ListProductsResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ListReferenceImagesResponse', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildListReferenceImagesResponse(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ListReferenceImagesResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkListReferenceImagesResponse(od as api.ListReferenceImagesResponse); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LocalizedObjectAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildLocalizedObjectAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.LocalizedObjectAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkLocalizedObjectAnnotation(od as api.LocalizedObjectAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LocationInfo', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildLocationInfo(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.LocationInfo.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkLocationInfo(od as api.LocationInfo); |
| }); |
| }); |
| |
| unittest.group('obj-schema-NormalizedVertex', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildNormalizedVertex(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.NormalizedVertex.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkNormalizedVertex(od as api.NormalizedVertex); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ObjectAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildObjectAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ObjectAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkObjectAnnotation(od as api.ObjectAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Operation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildOperation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Operation.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkOperation(od as api.Operation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-OperationMetadata', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildOperationMetadata(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.OperationMetadata.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkOperationMetadata(od as api.OperationMetadata); |
| }); |
| }); |
| |
| unittest.group('obj-schema-OutputConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildOutputConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.OutputConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkOutputConfig(od as api.OutputConfig); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Page', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildPage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.Page.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkPage(od as api.Page); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Paragraph', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildParagraph(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Paragraph.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkParagraph(od as api.Paragraph); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Position', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildPosition(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Position.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkPosition(od as api.Position); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Product', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildProduct(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Product.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkProduct(od as api.Product); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ProductSearchParams', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildProductSearchParams(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ProductSearchParams.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkProductSearchParams(od as api.ProductSearchParams); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ProductSearchResults', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildProductSearchResults(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ProductSearchResults.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkProductSearchResults(od as api.ProductSearchResults); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ProductSet', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildProductSet(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.ProductSet.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkProductSet(od as api.ProductSet); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ProductSetPurgeConfig', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildProductSetPurgeConfig(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ProductSetPurgeConfig.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkProductSetPurgeConfig(od as api.ProductSetPurgeConfig); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Property', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildProperty(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Property.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkProperty(od as api.Property); |
| }); |
| }); |
| |
| unittest.group('obj-schema-PurgeProductsRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildPurgeProductsRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.PurgeProductsRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkPurgeProductsRequest(od as api.PurgeProductsRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ReferenceImage', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildReferenceImage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.ReferenceImage.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkReferenceImage(od as api.ReferenceImage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-RemoveProductFromProductSetRequest', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildRemoveProductFromProductSetRequest(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.RemoveProductFromProductSetRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkRemoveProductFromProductSetRequest( |
| od as api.RemoveProductFromProductSetRequest); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Result', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildResult(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Result.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkResult(od as api.Result); |
| }); |
| }); |
| |
| unittest.group('obj-schema-SafeSearchAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildSafeSearchAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.SafeSearchAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkSafeSearchAnnotation(od as api.SafeSearchAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Status', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildStatus(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Status.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkStatus(od as api.Status); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Symbol', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildSymbol(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Symbol.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkSymbol(od as api.Symbol); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TextAnnotation', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildTextAnnotation(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.TextAnnotation.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkTextAnnotation(od as api.TextAnnotation); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TextDetectionParams', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildTextDetectionParams(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.TextDetectionParams.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkTextDetectionParams(od as api.TextDetectionParams); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TextProperty', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildTextProperty(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.TextProperty.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkTextProperty(od as api.TextProperty); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Vertex', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildVertex(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.Vertex.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkVertex(od as api.Vertex); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebDetection', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildWebDetection(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.WebDetection.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkWebDetection(od as api.WebDetection); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebDetectionParams', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildWebDetectionParams(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.WebDetectionParams.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkWebDetectionParams(od as api.WebDetectionParams); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebEntity', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildWebEntity(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.WebEntity.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkWebEntity(od as api.WebEntity); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebImage', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildWebImage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.WebImage.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkWebImage(od as api.WebImage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebLabel', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildWebLabel(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.WebLabel.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkWebLabel(od as api.WebLabel); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebPage', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildWebPage(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = |
| api.WebPage.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkWebPage(od as api.WebPage); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Word', () { |
| unittest.test('to-json--from-json', () async { |
| var o = buildWord(); |
| var oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| var od = api.Word.fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkWord(od as api.Word); |
| }); |
| }); |
| |
| unittest.group('resource-FilesResource', () { |
| unittest.test('method--annotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).files; |
| var arg_request = buildBatchAnnotateFilesRequest(); |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.BatchAnnotateFilesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkBatchAnnotateFilesRequest(obj as api.BatchAnnotateFilesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 17), |
| unittest.equals("v1/files:annotate"), |
| ); |
| pathOffset += 17; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildBatchAnnotateFilesResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.annotate(arg_request, $fields: arg_$fields); |
| checkBatchAnnotateFilesResponse( |
| response as api.BatchAnnotateFilesResponse); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).files; |
| var arg_request = buildAsyncBatchAnnotateFilesRequest(); |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.AsyncBatchAnnotateFilesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkAsyncBatchAnnotateFilesRequest( |
| obj as api.AsyncBatchAnnotateFilesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 27), |
| unittest.equals("v1/files:asyncBatchAnnotate"), |
| ); |
| pathOffset += 27; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.asyncBatchAnnotate(arg_request, $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| }); |
| |
| unittest.group('resource-ImagesResource', () { |
| unittest.test('method--annotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).images; |
| var arg_request = buildBatchAnnotateImagesRequest(); |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.BatchAnnotateImagesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkBatchAnnotateImagesRequest(obj as api.BatchAnnotateImagesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 18), |
| unittest.equals("v1/images:annotate"), |
| ); |
| pathOffset += 18; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildBatchAnnotateImagesResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.annotate(arg_request, $fields: arg_$fields); |
| checkBatchAnnotateImagesResponse( |
| response as api.BatchAnnotateImagesResponse); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).images; |
| var arg_request = buildAsyncBatchAnnotateImagesRequest(); |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.AsyncBatchAnnotateImagesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkAsyncBatchAnnotateImagesRequest( |
| obj as api.AsyncBatchAnnotateImagesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 28), |
| unittest.equals("v1/images:asyncBatchAnnotate"), |
| ); |
| pathOffset += 28; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.asyncBatchAnnotate(arg_request, $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| }); |
| |
| unittest.group('resource-LocationsOperationsResource', () { |
| unittest.test('method--get', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).locations.operations; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| }); |
| |
| unittest.group('resource-OperationsResource', () { |
| unittest.test('method--cancel', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).operations; |
| var arg_request = buildCancelOperationRequest(); |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.CancelOperationRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkCancelOperationRequest(obj as api.CancelOperationRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.cancel(arg_request, arg_name, $fields: arg_$fields); |
| checkEmpty(response as api.Empty); |
| }); |
| |
| unittest.test('method--delete', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).operations; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkEmpty(response as api.Empty); |
| }); |
| |
| unittest.test('method--get', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).operations; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| |
| unittest.test('method--list', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).operations; |
| var arg_name = 'foo'; |
| var arg_filter = 'foo'; |
| var arg_pageSize = 42; |
| var arg_pageToken = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["filter"]!.first, |
| unittest.equals(arg_filter), |
| ); |
| unittest.expect( |
| core.int.parse(queryMap["pageSize"]!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap["pageToken"]!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildListOperationsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_name, |
| filter: arg_filter, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkListOperationsResponse(response as api.ListOperationsResponse); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsFilesResource', () { |
| unittest.test('method--annotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.files; |
| var arg_request = buildBatchAnnotateFilesRequest(); |
| var arg_parent = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.BatchAnnotateFilesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkBatchAnnotateFilesRequest(obj as api.BatchAnnotateFilesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildBatchAnnotateFilesResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.annotate(arg_request, arg_parent, $fields: arg_$fields); |
| checkBatchAnnotateFilesResponse( |
| response as api.BatchAnnotateFilesResponse); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.files; |
| var arg_request = buildAsyncBatchAnnotateFilesRequest(); |
| var arg_parent = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.AsyncBatchAnnotateFilesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkAsyncBatchAnnotateFilesRequest( |
| obj as api.AsyncBatchAnnotateFilesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.asyncBatchAnnotate(arg_request, arg_parent, |
| $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsImagesResource', () { |
| unittest.test('method--annotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.images; |
| var arg_request = buildBatchAnnotateImagesRequest(); |
| var arg_parent = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.BatchAnnotateImagesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkBatchAnnotateImagesRequest(obj as api.BatchAnnotateImagesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildBatchAnnotateImagesResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.annotate(arg_request, arg_parent, $fields: arg_$fields); |
| checkBatchAnnotateImagesResponse( |
| response as api.BatchAnnotateImagesResponse); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.images; |
| var arg_request = buildAsyncBatchAnnotateImagesRequest(); |
| var arg_parent = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.AsyncBatchAnnotateImagesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkAsyncBatchAnnotateImagesRequest( |
| obj as api.AsyncBatchAnnotateImagesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.asyncBatchAnnotate(arg_request, arg_parent, |
| $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsFilesResource', () { |
| unittest.test('method--annotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.files; |
| var arg_request = buildBatchAnnotateFilesRequest(); |
| var arg_parent = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.BatchAnnotateFilesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkBatchAnnotateFilesRequest(obj as api.BatchAnnotateFilesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildBatchAnnotateFilesResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.annotate(arg_request, arg_parent, $fields: arg_$fields); |
| checkBatchAnnotateFilesResponse( |
| response as api.BatchAnnotateFilesResponse); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.files; |
| var arg_request = buildAsyncBatchAnnotateFilesRequest(); |
| var arg_parent = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.AsyncBatchAnnotateFilesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkAsyncBatchAnnotateFilesRequest( |
| obj as api.AsyncBatchAnnotateFilesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.asyncBatchAnnotate(arg_request, arg_parent, |
| $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsImagesResource', () { |
| unittest.test('method--annotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.images; |
| var arg_request = buildBatchAnnotateImagesRequest(); |
| var arg_parent = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.BatchAnnotateImagesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkBatchAnnotateImagesRequest(obj as api.BatchAnnotateImagesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildBatchAnnotateImagesResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.annotate(arg_request, arg_parent, $fields: arg_$fields); |
| checkBatchAnnotateImagesResponse( |
| response as api.BatchAnnotateImagesResponse); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.images; |
| var arg_request = buildAsyncBatchAnnotateImagesRequest(); |
| var arg_parent = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.AsyncBatchAnnotateImagesRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkAsyncBatchAnnotateImagesRequest( |
| obj as api.AsyncBatchAnnotateImagesRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.asyncBatchAnnotate(arg_request, arg_parent, |
| $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsOperationsResource', () { |
| unittest.test('method--get', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.operations; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsProductSetsResource', () { |
| unittest.test('method--addProduct', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.productSets; |
| var arg_request = buildAddProductToProductSetRequest(); |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.AddProductToProductSetRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkAddProductToProductSetRequest( |
| obj as api.AddProductToProductSetRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.addProduct(arg_request, arg_name, $fields: arg_$fields); |
| checkEmpty(response as api.Empty); |
| }); |
| |
| unittest.test('method--create', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.productSets; |
| var arg_request = buildProductSet(); |
| var arg_parent = 'foo'; |
| var arg_productSetId = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.ProductSet.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkProductSet(obj as api.ProductSet); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["productSetId"]!.first, |
| unittest.equals(arg_productSetId), |
| ); |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildProductSet()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.create(arg_request, arg_parent, |
| productSetId: arg_productSetId, $fields: arg_$fields); |
| checkProductSet(response as api.ProductSet); |
| }); |
| |
| unittest.test('method--delete', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.productSets; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkEmpty(response as api.Empty); |
| }); |
| |
| unittest.test('method--get', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.productSets; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildProductSet()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkProductSet(response as api.ProductSet); |
| }); |
| |
| unittest.test('method--import', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.productSets; |
| var arg_request = buildImportProductSetsRequest(); |
| var arg_parent = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.ImportProductSetsRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkImportProductSetsRequest(obj as api.ImportProductSetsRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.import(arg_request, arg_parent, $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| |
| unittest.test('method--list', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.productSets; |
| var arg_parent = 'foo'; |
| var arg_pageSize = 42; |
| var arg_pageToken = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap["pageSize"]!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap["pageToken"]!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildListProductSetsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkListProductSetsResponse(response as api.ListProductSetsResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.productSets; |
| var arg_request = buildProductSet(); |
| var arg_name = 'foo'; |
| var arg_updateMask = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.ProductSet.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkProductSet(obj as api.ProductSet); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["updateMask"]!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildProductSet()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkProductSet(response as api.ProductSet); |
| }); |
| |
| unittest.test('method--removeProduct', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.productSets; |
| var arg_request = buildRemoveProductFromProductSetRequest(); |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.RemoveProductFromProductSetRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkRemoveProductFromProductSetRequest( |
| obj as api.RemoveProductFromProductSetRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.removeProduct(arg_request, arg_name, $fields: arg_$fields); |
| checkEmpty(response as api.Empty); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsProductSetsProductsResource', () { |
| unittest.test('method--list', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.productSets.products; |
| var arg_name = 'foo'; |
| var arg_pageSize = 42; |
| var arg_pageToken = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap["pageSize"]!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap["pageToken"]!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildListProductsInProductSetResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_name, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkListProductsInProductSetResponse( |
| response as api.ListProductsInProductSetResponse); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsProductsResource', () { |
| unittest.test('method--create', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.products; |
| var arg_request = buildProduct(); |
| var arg_parent = 'foo'; |
| var arg_productId = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = |
| api.Product.fromJson(json as core.Map<core.String, core.dynamic>); |
| checkProduct(obj as api.Product); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["productId"]!.first, |
| unittest.equals(arg_productId), |
| ); |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildProduct()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.create(arg_request, arg_parent, |
| productId: arg_productId, $fields: arg_$fields); |
| checkProduct(response as api.Product); |
| }); |
| |
| unittest.test('method--delete', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.products; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkEmpty(response as api.Empty); |
| }); |
| |
| unittest.test('method--get', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.products; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildProduct()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkProduct(response as api.Product); |
| }); |
| |
| unittest.test('method--list', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.products; |
| var arg_parent = 'foo'; |
| var arg_pageSize = 42; |
| var arg_pageToken = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap["pageSize"]!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap["pageToken"]!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildListProductsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkListProductsResponse(response as api.ListProductsResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.products; |
| var arg_request = buildProduct(); |
| var arg_name = 'foo'; |
| var arg_updateMask = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = |
| api.Product.fromJson(json as core.Map<core.String, core.dynamic>); |
| checkProduct(obj as api.Product); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["updateMask"]!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildProduct()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkProduct(response as api.Product); |
| }); |
| |
| unittest.test('method--purge', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.products; |
| var arg_request = buildPurgeProductsRequest(); |
| var arg_parent = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.PurgeProductsRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkPurgeProductsRequest(obj as api.PurgeProductsRequest); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.purge(arg_request, arg_parent, $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsProductsReferenceImagesResource', |
| () { |
| unittest.test('method--create', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.products.referenceImages; |
| var arg_request = buildReferenceImage(); |
| var arg_parent = 'foo'; |
| var arg_referenceImageId = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.ReferenceImage.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkReferenceImage(obj as api.ReferenceImage); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["referenceImageId"]!.first, |
| unittest.equals(arg_referenceImageId), |
| ); |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildReferenceImage()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.create(arg_request, arg_parent, |
| referenceImageId: arg_referenceImageId, $fields: arg_$fields); |
| checkReferenceImage(response as api.ReferenceImage); |
| }); |
| |
| unittest.test('method--delete', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.products.referenceImages; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkEmpty(response as api.Empty); |
| }); |
| |
| unittest.test('method--get', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.products.referenceImages; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildReferenceImage()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkReferenceImage(response as api.ReferenceImage); |
| }); |
| |
| unittest.test('method--list', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.locations.products.referenceImages; |
| var arg_parent = 'foo'; |
| var arg_pageSize = 42; |
| var arg_pageToken = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap["pageSize"]!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap["pageToken"]!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildListReferenceImagesResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkListReferenceImagesResponse( |
| response as api.ListReferenceImagesResponse); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsOperationsResource', () { |
| unittest.test('method--get', () async { |
| var mock = HttpServerMock(); |
| var res = api.VisionApi(mock).projects.operations; |
| var arg_name = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals("/"), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 3), |
| unittest.equals("v1/"), |
| ); |
| pathOffset += 3; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap["fields"]!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildOperation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkOperation(response as api.Operation); |
| }); |
| }); |
| } |