| // ignore_for_file: camel_case_types |
| // ignore_for_file: comment_references |
| // ignore_for_file: constant_identifier_names |
| // ignore_for_file: directives_ordering |
| // 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: omit_local_variable_types |
| // ignore_for_file: prefer_expression_function_bodies |
| // ignore_for_file: prefer_final_locals |
| // ignore_for_file: prefer_interpolation_to_compose_strings |
| // 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: avoid_returning_null |
| // ignore_for_file: cascade_invocations |
| // ignore_for_file: prefer_single_quotes |
| // ignore_for_file: unused_local_variable |
| |
| library googleapis.vision.v1.test; |
| |
| import "dart:core" as core; |
| import "dart:async" as async; |
| import "dart:convert" as convert; |
| |
| import 'package:http/http.dart' as http; |
| import 'package:test/test.dart' as unittest; |
| |
| import 'package:googleapis/vision/v1.dart' as api; |
| |
| class HttpServerMock extends http.BaseClient { |
| core.Function _callback; |
| core.bool _expectJson; |
| |
| void register(core.Function callback, core.bool expectJson) { |
| _callback = callback; |
| _expectJson = expectJson; |
| } |
| |
| @core.override |
| async.Future<http.StreamedResponse> send(http.BaseRequest request) async { |
| if (_expectJson) { |
| final jsonString = |
| await request.finalize().transform(convert.utf8.decoder).join(''); |
| if (jsonString.isEmpty) { |
| return _callback(request, null); |
| } else { |
| return _callback(request, convert.json.decode(jsonString)); |
| } |
| } else { |
| var stream = request.finalize(); |
| if (stream == null) { |
| return _callback(request, []); |
| } else { |
| final data = await stream.toBytes(); |
| return _callback(request, data); |
| } |
| } |
| } |
| } |
| |
| http.StreamedResponse stringResponse(core.int status, |
| core.Map<core.String, core.String> headers, core.String body) { |
| var stream = async.Stream.fromIterable([convert.utf8.encode(body)]); |
| return http.StreamedResponse(stream, status, headers: headers); |
| } |
| |
| 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> buildUnnamed2970() { |
| var o = <api.Feature>[]; |
| o.add(buildFeature()); |
| o.add(buildFeature()); |
| return o; |
| } |
| |
| void checkUnnamed2970(core.List<api.Feature> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkFeature(o[0]); |
| checkFeature(o[1]); |
| } |
| |
| core.List<core.int> buildUnnamed2971() { |
| var o = <core.int>[]; |
| o.add(42); |
| o.add(42); |
| return o; |
| } |
| |
| void checkUnnamed2971(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 = buildUnnamed2970(); |
| o.imageContext = buildImageContext(); |
| o.inputConfig = buildInputConfig(); |
| o.pages = buildUnnamed2971(); |
| } |
| buildCounterAnnotateFileRequest--; |
| return o; |
| } |
| |
| void checkAnnotateFileRequest(api.AnnotateFileRequest o) { |
| buildCounterAnnotateFileRequest++; |
| if (buildCounterAnnotateFileRequest < 3) { |
| checkUnnamed2970(o.features); |
| checkImageContext(o.imageContext); |
| checkInputConfig(o.inputConfig); |
| checkUnnamed2971(o.pages); |
| } |
| buildCounterAnnotateFileRequest--; |
| } |
| |
| core.List<api.AnnotateImageResponse> buildUnnamed2972() { |
| var o = <api.AnnotateImageResponse>[]; |
| o.add(buildAnnotateImageResponse()); |
| o.add(buildAnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed2972(core.List<api.AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateImageResponse(o[0]); |
| checkAnnotateImageResponse(o[1]); |
| } |
| |
| core.int buildCounterAnnotateFileResponse = 0; |
| api.AnnotateFileResponse buildAnnotateFileResponse() { |
| var o = api.AnnotateFileResponse(); |
| buildCounterAnnotateFileResponse++; |
| if (buildCounterAnnotateFileResponse < 3) { |
| o.error = buildStatus(); |
| o.inputConfig = buildInputConfig(); |
| o.responses = buildUnnamed2972(); |
| o.totalPages = 42; |
| } |
| buildCounterAnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkAnnotateFileResponse(api.AnnotateFileResponse o) { |
| buildCounterAnnotateFileResponse++; |
| if (buildCounterAnnotateFileResponse < 3) { |
| checkStatus(o.error); |
| checkInputConfig(o.inputConfig); |
| checkUnnamed2972(o.responses); |
| unittest.expect(o.totalPages, unittest.equals(42)); |
| } |
| buildCounterAnnotateFileResponse--; |
| } |
| |
| core.List<api.Feature> buildUnnamed2973() { |
| var o = <api.Feature>[]; |
| o.add(buildFeature()); |
| o.add(buildFeature()); |
| return o; |
| } |
| |
| void checkUnnamed2973(core.List<api.Feature> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkFeature(o[0]); |
| checkFeature(o[1]); |
| } |
| |
| core.int buildCounterAnnotateImageRequest = 0; |
| api.AnnotateImageRequest buildAnnotateImageRequest() { |
| var o = api.AnnotateImageRequest(); |
| buildCounterAnnotateImageRequest++; |
| if (buildCounterAnnotateImageRequest < 3) { |
| o.features = buildUnnamed2973(); |
| o.image = buildImage(); |
| o.imageContext = buildImageContext(); |
| } |
| buildCounterAnnotateImageRequest--; |
| return o; |
| } |
| |
| void checkAnnotateImageRequest(api.AnnotateImageRequest o) { |
| buildCounterAnnotateImageRequest++; |
| if (buildCounterAnnotateImageRequest < 3) { |
| checkUnnamed2973(o.features); |
| checkImage(o.image); |
| checkImageContext(o.imageContext); |
| } |
| buildCounterAnnotateImageRequest--; |
| } |
| |
| core.List<api.FaceAnnotation> buildUnnamed2974() { |
| var o = <api.FaceAnnotation>[]; |
| o.add(buildFaceAnnotation()); |
| o.add(buildFaceAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed2974(core.List<api.FaceAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkFaceAnnotation(o[0]); |
| checkFaceAnnotation(o[1]); |
| } |
| |
| core.List<api.EntityAnnotation> buildUnnamed2975() { |
| var o = <api.EntityAnnotation>[]; |
| o.add(buildEntityAnnotation()); |
| o.add(buildEntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed2975(core.List<api.EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkEntityAnnotation(o[0]); |
| checkEntityAnnotation(o[1]); |
| } |
| |
| core.List<api.EntityAnnotation> buildUnnamed2976() { |
| var o = <api.EntityAnnotation>[]; |
| o.add(buildEntityAnnotation()); |
| o.add(buildEntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed2976(core.List<api.EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkEntityAnnotation(o[0]); |
| checkEntityAnnotation(o[1]); |
| } |
| |
| core.List<api.LocalizedObjectAnnotation> buildUnnamed2977() { |
| var o = <api.LocalizedObjectAnnotation>[]; |
| o.add(buildLocalizedObjectAnnotation()); |
| o.add(buildLocalizedObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed2977(core.List<api.LocalizedObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkLocalizedObjectAnnotation(o[0]); |
| checkLocalizedObjectAnnotation(o[1]); |
| } |
| |
| core.List<api.EntityAnnotation> buildUnnamed2978() { |
| var o = <api.EntityAnnotation>[]; |
| o.add(buildEntityAnnotation()); |
| o.add(buildEntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed2978(core.List<api.EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkEntityAnnotation(o[0]); |
| checkEntityAnnotation(o[1]); |
| } |
| |
| core.List<api.EntityAnnotation> buildUnnamed2979() { |
| var o = <api.EntityAnnotation>[]; |
| o.add(buildEntityAnnotation()); |
| o.add(buildEntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed2979(core.List<api.EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkEntityAnnotation(o[0]); |
| checkEntityAnnotation(o[1]); |
| } |
| |
| 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 = buildUnnamed2974(); |
| o.fullTextAnnotation = buildTextAnnotation(); |
| o.imagePropertiesAnnotation = buildImageProperties(); |
| o.labelAnnotations = buildUnnamed2975(); |
| o.landmarkAnnotations = buildUnnamed2976(); |
| o.localizedObjectAnnotations = buildUnnamed2977(); |
| o.logoAnnotations = buildUnnamed2978(); |
| o.productSearchResults = buildProductSearchResults(); |
| o.safeSearchAnnotation = buildSafeSearchAnnotation(); |
| o.textAnnotations = buildUnnamed2979(); |
| o.webDetection = buildWebDetection(); |
| } |
| buildCounterAnnotateImageResponse--; |
| return o; |
| } |
| |
| void checkAnnotateImageResponse(api.AnnotateImageResponse o) { |
| buildCounterAnnotateImageResponse++; |
| if (buildCounterAnnotateImageResponse < 3) { |
| checkImageAnnotationContext(o.context); |
| checkCropHintsAnnotation(o.cropHintsAnnotation); |
| checkStatus(o.error); |
| checkUnnamed2974(o.faceAnnotations); |
| checkTextAnnotation(o.fullTextAnnotation); |
| checkImageProperties(o.imagePropertiesAnnotation); |
| checkUnnamed2975(o.labelAnnotations); |
| checkUnnamed2976(o.landmarkAnnotations); |
| checkUnnamed2977(o.localizedObjectAnnotations); |
| checkUnnamed2978(o.logoAnnotations); |
| checkProductSearchResults(o.productSearchResults); |
| checkSafeSearchAnnotation(o.safeSearchAnnotation); |
| checkUnnamed2979(o.textAnnotations); |
| checkWebDetection(o.webDetection); |
| } |
| buildCounterAnnotateImageResponse--; |
| } |
| |
| core.List<api.Feature> buildUnnamed2980() { |
| var o = <api.Feature>[]; |
| o.add(buildFeature()); |
| o.add(buildFeature()); |
| return o; |
| } |
| |
| void checkUnnamed2980(core.List<api.Feature> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkFeature(o[0]); |
| checkFeature(o[1]); |
| } |
| |
| core.int buildCounterAsyncAnnotateFileRequest = 0; |
| api.AsyncAnnotateFileRequest buildAsyncAnnotateFileRequest() { |
| var o = api.AsyncAnnotateFileRequest(); |
| buildCounterAsyncAnnotateFileRequest++; |
| if (buildCounterAsyncAnnotateFileRequest < 3) { |
| o.features = buildUnnamed2980(); |
| o.imageContext = buildImageContext(); |
| o.inputConfig = buildInputConfig(); |
| o.outputConfig = buildOutputConfig(); |
| } |
| buildCounterAsyncAnnotateFileRequest--; |
| return o; |
| } |
| |
| void checkAsyncAnnotateFileRequest(api.AsyncAnnotateFileRequest o) { |
| buildCounterAsyncAnnotateFileRequest++; |
| if (buildCounterAsyncAnnotateFileRequest < 3) { |
| checkUnnamed2980(o.features); |
| checkImageContext(o.imageContext); |
| checkInputConfig(o.inputConfig); |
| checkOutputConfig(o.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); |
| } |
| buildCounterAsyncAnnotateFileResponse--; |
| } |
| |
| core.List<api.AsyncAnnotateFileRequest> buildUnnamed2981() { |
| var o = <api.AsyncAnnotateFileRequest>[]; |
| o.add(buildAsyncAnnotateFileRequest()); |
| o.add(buildAsyncAnnotateFileRequest()); |
| return o; |
| } |
| |
| void checkUnnamed2981(core.List<api.AsyncAnnotateFileRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAsyncAnnotateFileRequest(o[0]); |
| checkAsyncAnnotateFileRequest(o[1]); |
| } |
| |
| core.int buildCounterAsyncBatchAnnotateFilesRequest = 0; |
| api.AsyncBatchAnnotateFilesRequest buildAsyncBatchAnnotateFilesRequest() { |
| var o = api.AsyncBatchAnnotateFilesRequest(); |
| buildCounterAsyncBatchAnnotateFilesRequest++; |
| if (buildCounterAsyncBatchAnnotateFilesRequest < 3) { |
| o.parent = 'foo'; |
| o.requests = buildUnnamed2981(); |
| } |
| buildCounterAsyncBatchAnnotateFilesRequest--; |
| return o; |
| } |
| |
| void checkAsyncBatchAnnotateFilesRequest(api.AsyncBatchAnnotateFilesRequest o) { |
| buildCounterAsyncBatchAnnotateFilesRequest++; |
| if (buildCounterAsyncBatchAnnotateFilesRequest < 3) { |
| unittest.expect(o.parent, unittest.equals('foo')); |
| checkUnnamed2981(o.requests); |
| } |
| buildCounterAsyncBatchAnnotateFilesRequest--; |
| } |
| |
| core.List<api.AsyncAnnotateFileResponse> buildUnnamed2982() { |
| var o = <api.AsyncAnnotateFileResponse>[]; |
| o.add(buildAsyncAnnotateFileResponse()); |
| o.add(buildAsyncAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed2982(core.List<api.AsyncAnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAsyncAnnotateFileResponse(o[0]); |
| checkAsyncAnnotateFileResponse(o[1]); |
| } |
| |
| core.int buildCounterAsyncBatchAnnotateFilesResponse = 0; |
| api.AsyncBatchAnnotateFilesResponse buildAsyncBatchAnnotateFilesResponse() { |
| var o = api.AsyncBatchAnnotateFilesResponse(); |
| buildCounterAsyncBatchAnnotateFilesResponse++; |
| if (buildCounterAsyncBatchAnnotateFilesResponse < 3) { |
| o.responses = buildUnnamed2982(); |
| } |
| buildCounterAsyncBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkAsyncBatchAnnotateFilesResponse( |
| api.AsyncBatchAnnotateFilesResponse o) { |
| buildCounterAsyncBatchAnnotateFilesResponse++; |
| if (buildCounterAsyncBatchAnnotateFilesResponse < 3) { |
| checkUnnamed2982(o.responses); |
| } |
| buildCounterAsyncBatchAnnotateFilesResponse--; |
| } |
| |
| core.List<api.AnnotateImageRequest> buildUnnamed2983() { |
| var o = <api.AnnotateImageRequest>[]; |
| o.add(buildAnnotateImageRequest()); |
| o.add(buildAnnotateImageRequest()); |
| return o; |
| } |
| |
| void checkUnnamed2983(core.List<api.AnnotateImageRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateImageRequest(o[0]); |
| checkAnnotateImageRequest(o[1]); |
| } |
| |
| core.int buildCounterAsyncBatchAnnotateImagesRequest = 0; |
| api.AsyncBatchAnnotateImagesRequest buildAsyncBatchAnnotateImagesRequest() { |
| var o = api.AsyncBatchAnnotateImagesRequest(); |
| buildCounterAsyncBatchAnnotateImagesRequest++; |
| if (buildCounterAsyncBatchAnnotateImagesRequest < 3) { |
| o.outputConfig = buildOutputConfig(); |
| o.parent = 'foo'; |
| o.requests = buildUnnamed2983(); |
| } |
| buildCounterAsyncBatchAnnotateImagesRequest--; |
| return o; |
| } |
| |
| void checkAsyncBatchAnnotateImagesRequest( |
| api.AsyncBatchAnnotateImagesRequest o) { |
| buildCounterAsyncBatchAnnotateImagesRequest++; |
| if (buildCounterAsyncBatchAnnotateImagesRequest < 3) { |
| checkOutputConfig(o.outputConfig); |
| unittest.expect(o.parent, unittest.equals('foo')); |
| checkUnnamed2983(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); |
| } |
| buildCounterAsyncBatchAnnotateImagesResponse--; |
| } |
| |
| core.List<api.AnnotateFileRequest> buildUnnamed2984() { |
| var o = <api.AnnotateFileRequest>[]; |
| o.add(buildAnnotateFileRequest()); |
| o.add(buildAnnotateFileRequest()); |
| return o; |
| } |
| |
| void checkUnnamed2984(core.List<api.AnnotateFileRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateFileRequest(o[0]); |
| checkAnnotateFileRequest(o[1]); |
| } |
| |
| core.int buildCounterBatchAnnotateFilesRequest = 0; |
| api.BatchAnnotateFilesRequest buildBatchAnnotateFilesRequest() { |
| var o = api.BatchAnnotateFilesRequest(); |
| buildCounterBatchAnnotateFilesRequest++; |
| if (buildCounterBatchAnnotateFilesRequest < 3) { |
| o.parent = 'foo'; |
| o.requests = buildUnnamed2984(); |
| } |
| buildCounterBatchAnnotateFilesRequest--; |
| return o; |
| } |
| |
| void checkBatchAnnotateFilesRequest(api.BatchAnnotateFilesRequest o) { |
| buildCounterBatchAnnotateFilesRequest++; |
| if (buildCounterBatchAnnotateFilesRequest < 3) { |
| unittest.expect(o.parent, unittest.equals('foo')); |
| checkUnnamed2984(o.requests); |
| } |
| buildCounterBatchAnnotateFilesRequest--; |
| } |
| |
| core.List<api.AnnotateFileResponse> buildUnnamed2985() { |
| var o = <api.AnnotateFileResponse>[]; |
| o.add(buildAnnotateFileResponse()); |
| o.add(buildAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed2985(core.List<api.AnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateFileResponse(o[0]); |
| checkAnnotateFileResponse(o[1]); |
| } |
| |
| core.int buildCounterBatchAnnotateFilesResponse = 0; |
| api.BatchAnnotateFilesResponse buildBatchAnnotateFilesResponse() { |
| var o = api.BatchAnnotateFilesResponse(); |
| buildCounterBatchAnnotateFilesResponse++; |
| if (buildCounterBatchAnnotateFilesResponse < 3) { |
| o.responses = buildUnnamed2985(); |
| } |
| buildCounterBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkBatchAnnotateFilesResponse(api.BatchAnnotateFilesResponse o) { |
| buildCounterBatchAnnotateFilesResponse++; |
| if (buildCounterBatchAnnotateFilesResponse < 3) { |
| checkUnnamed2985(o.responses); |
| } |
| buildCounterBatchAnnotateFilesResponse--; |
| } |
| |
| core.List<api.AnnotateImageRequest> buildUnnamed2986() { |
| var o = <api.AnnotateImageRequest>[]; |
| o.add(buildAnnotateImageRequest()); |
| o.add(buildAnnotateImageRequest()); |
| return o; |
| } |
| |
| void checkUnnamed2986(core.List<api.AnnotateImageRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateImageRequest(o[0]); |
| checkAnnotateImageRequest(o[1]); |
| } |
| |
| core.int buildCounterBatchAnnotateImagesRequest = 0; |
| api.BatchAnnotateImagesRequest buildBatchAnnotateImagesRequest() { |
| var o = api.BatchAnnotateImagesRequest(); |
| buildCounterBatchAnnotateImagesRequest++; |
| if (buildCounterBatchAnnotateImagesRequest < 3) { |
| o.parent = 'foo'; |
| o.requests = buildUnnamed2986(); |
| } |
| buildCounterBatchAnnotateImagesRequest--; |
| return o; |
| } |
| |
| void checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { |
| buildCounterBatchAnnotateImagesRequest++; |
| if (buildCounterBatchAnnotateImagesRequest < 3) { |
| unittest.expect(o.parent, unittest.equals('foo')); |
| checkUnnamed2986(o.requests); |
| } |
| buildCounterBatchAnnotateImagesRequest--; |
| } |
| |
| core.List<api.AnnotateImageResponse> buildUnnamed2987() { |
| var o = <api.AnnotateImageResponse>[]; |
| o.add(buildAnnotateImageResponse()); |
| o.add(buildAnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed2987(core.List<api.AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkAnnotateImageResponse(o[0]); |
| checkAnnotateImageResponse(o[1]); |
| } |
| |
| core.int buildCounterBatchAnnotateImagesResponse = 0; |
| api.BatchAnnotateImagesResponse buildBatchAnnotateImagesResponse() { |
| var o = api.BatchAnnotateImagesResponse(); |
| buildCounterBatchAnnotateImagesResponse++; |
| if (buildCounterBatchAnnotateImagesResponse < 3) { |
| o.responses = buildUnnamed2987(); |
| } |
| buildCounterBatchAnnotateImagesResponse--; |
| return o; |
| } |
| |
| void checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { |
| buildCounterBatchAnnotateImagesResponse++; |
| if (buildCounterBatchAnnotateImagesResponse < 3) { |
| checkUnnamed2987(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> buildUnnamed2988() { |
| var o = <api.Paragraph>[]; |
| o.add(buildParagraph()); |
| o.add(buildParagraph()); |
| return o; |
| } |
| |
| void checkUnnamed2988(core.List<api.Paragraph> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkParagraph(o[0]); |
| checkParagraph(o[1]); |
| } |
| |
| 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 = buildUnnamed2988(); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkUnnamed2988(o.paragraphs); |
| checkTextProperty(o.property); |
| } |
| buildCounterBlock--; |
| } |
| |
| core.List<api.NormalizedVertex> buildUnnamed2989() { |
| var o = <api.NormalizedVertex>[]; |
| o.add(buildNormalizedVertex()); |
| o.add(buildNormalizedVertex()); |
| return o; |
| } |
| |
| void checkUnnamed2989(core.List<api.NormalizedVertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkNormalizedVertex(o[0]); |
| checkNormalizedVertex(o[1]); |
| } |
| |
| core.List<api.Vertex> buildUnnamed2990() { |
| var o = <api.Vertex>[]; |
| o.add(buildVertex()); |
| o.add(buildVertex()); |
| return o; |
| } |
| |
| void checkUnnamed2990(core.List<api.Vertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkVertex(o[0]); |
| checkVertex(o[1]); |
| } |
| |
| core.int buildCounterBoundingPoly = 0; |
| api.BoundingPoly buildBoundingPoly() { |
| var o = api.BoundingPoly(); |
| buildCounterBoundingPoly++; |
| if (buildCounterBoundingPoly < 3) { |
| o.normalizedVertices = buildUnnamed2989(); |
| o.vertices = buildUnnamed2990(); |
| } |
| buildCounterBoundingPoly--; |
| return o; |
| } |
| |
| void checkBoundingPoly(api.BoundingPoly o) { |
| buildCounterBoundingPoly++; |
| if (buildCounterBoundingPoly < 3) { |
| checkUnnamed2989(o.normalizedVertices); |
| checkUnnamed2990(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); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.importanceFraction, unittest.equals(42.0)); |
| } |
| buildCounterCropHint--; |
| } |
| |
| core.List<api.CropHint> buildUnnamed2991() { |
| var o = <api.CropHint>[]; |
| o.add(buildCropHint()); |
| o.add(buildCropHint()); |
| return o; |
| } |
| |
| void checkUnnamed2991(core.List<api.CropHint> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkCropHint(o[0]); |
| checkCropHint(o[1]); |
| } |
| |
| core.int buildCounterCropHintsAnnotation = 0; |
| api.CropHintsAnnotation buildCropHintsAnnotation() { |
| var o = api.CropHintsAnnotation(); |
| buildCounterCropHintsAnnotation++; |
| if (buildCounterCropHintsAnnotation < 3) { |
| o.cropHints = buildUnnamed2991(); |
| } |
| buildCounterCropHintsAnnotation--; |
| return o; |
| } |
| |
| void checkCropHintsAnnotation(api.CropHintsAnnotation o) { |
| buildCounterCropHintsAnnotation++; |
| if (buildCounterCropHintsAnnotation < 3) { |
| checkUnnamed2991(o.cropHints); |
| } |
| buildCounterCropHintsAnnotation--; |
| } |
| |
| core.List<core.double> buildUnnamed2992() { |
| var o = <core.double>[]; |
| o.add(42.0); |
| o.add(42.0); |
| return o; |
| } |
| |
| void checkUnnamed2992(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 = buildUnnamed2992(); |
| } |
| buildCounterCropHintsParams--; |
| return o; |
| } |
| |
| void checkCropHintsParams(api.CropHintsParams o) { |
| buildCounterCropHintsParams++; |
| if (buildCounterCropHintsParams < 3) { |
| checkUnnamed2992(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> buildUnnamed2993() { |
| var o = <api.ColorInfo>[]; |
| o.add(buildColorInfo()); |
| o.add(buildColorInfo()); |
| return o; |
| } |
| |
| void checkUnnamed2993(core.List<api.ColorInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkColorInfo(o[0]); |
| checkColorInfo(o[1]); |
| } |
| |
| core.int buildCounterDominantColorsAnnotation = 0; |
| api.DominantColorsAnnotation buildDominantColorsAnnotation() { |
| var o = api.DominantColorsAnnotation(); |
| buildCounterDominantColorsAnnotation++; |
| if (buildCounterDominantColorsAnnotation < 3) { |
| o.colors = buildUnnamed2993(); |
| } |
| buildCounterDominantColorsAnnotation--; |
| return o; |
| } |
| |
| void checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { |
| buildCounterDominantColorsAnnotation++; |
| if (buildCounterDominantColorsAnnotation < 3) { |
| checkUnnamed2993(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> buildUnnamed2994() { |
| var o = <api.LocationInfo>[]; |
| o.add(buildLocationInfo()); |
| o.add(buildLocationInfo()); |
| return o; |
| } |
| |
| void checkUnnamed2994(core.List<api.LocationInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkLocationInfo(o[0]); |
| checkLocationInfo(o[1]); |
| } |
| |
| core.List<api.Property> buildUnnamed2995() { |
| var o = <api.Property>[]; |
| o.add(buildProperty()); |
| o.add(buildProperty()); |
| return o; |
| } |
| |
| void checkUnnamed2995(core.List<api.Property> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkProperty(o[0]); |
| checkProperty(o[1]); |
| } |
| |
| 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 = buildUnnamed2994(); |
| o.mid = 'foo'; |
| o.properties = buildUnnamed2995(); |
| o.score = 42.0; |
| o.topicality = 42.0; |
| } |
| buildCounterEntityAnnotation--; |
| return o; |
| } |
| |
| void checkEntityAnnotation(api.EntityAnnotation o) { |
| buildCounterEntityAnnotation++; |
| if (buildCounterEntityAnnotation < 3) { |
| checkBoundingPoly(o.boundingPoly); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.description, unittest.equals('foo')); |
| unittest.expect(o.locale, unittest.equals('foo')); |
| checkUnnamed2994(o.locations); |
| unittest.expect(o.mid, unittest.equals('foo')); |
| checkUnnamed2995(o.properties); |
| unittest.expect(o.score, unittest.equals(42.0)); |
| unittest.expect(o.topicality, unittest.equals(42.0)); |
| } |
| buildCounterEntityAnnotation--; |
| } |
| |
| core.List<api.Landmark> buildUnnamed2996() { |
| var o = <api.Landmark>[]; |
| o.add(buildLandmark()); |
| o.add(buildLandmark()); |
| return o; |
| } |
| |
| void checkUnnamed2996(core.List<api.Landmark> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkLandmark(o[0]); |
| checkLandmark(o[1]); |
| } |
| |
| 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 = buildUnnamed2996(); |
| 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); |
| unittest.expect(o.detectionConfidence, unittest.equals(42.0)); |
| checkBoundingPoly(o.fdBoundingPoly); |
| unittest.expect(o.headwearLikelihood, unittest.equals('foo')); |
| unittest.expect(o.joyLikelihood, unittest.equals('foo')); |
| unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); |
| checkUnnamed2996(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> |
| buildUnnamed2997() { |
| var o = <api.GoogleCloudVisionV1p1beta1AnnotateImageResponse>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1AnnotateImageResponse()); |
| o.add(buildGoogleCloudVisionV1p1beta1AnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed2997( |
| core.List<api.GoogleCloudVisionV1p1beta1AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1AnnotateImageResponse(o[0]); |
| checkGoogleCloudVisionV1p1beta1AnnotateImageResponse(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p1beta1AnnotateFileResponse |
| buildGoogleCloudVisionV1p1beta1AnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p1beta1AnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse < 3) { |
| o.error = buildStatus(); |
| o.inputConfig = buildGoogleCloudVisionV1p1beta1InputConfig(); |
| o.responses = buildUnnamed2997(); |
| o.totalPages = 42; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1AnnotateFileResponse( |
| api.GoogleCloudVisionV1p1beta1AnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse < 3) { |
| checkStatus(o.error); |
| checkGoogleCloudVisionV1p1beta1InputConfig(o.inputConfig); |
| checkUnnamed2997(o.responses); |
| unittest.expect(o.totalPages, unittest.equals(42)); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotation> buildUnnamed2998() { |
| var o = <api.GoogleCloudVisionV1p1beta1FaceAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed2998( |
| core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotation(o[0]); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> buildUnnamed2999() { |
| var o = <api.GoogleCloudVisionV1p1beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed2999( |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> buildUnnamed3000() { |
| var o = <api.GoogleCloudVisionV1p1beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3000( |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation> |
| buildUnnamed3001() { |
| var o = <api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3001( |
| core.List<api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation(o[0]); |
| checkGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> buildUnnamed3002() { |
| var o = <api.GoogleCloudVisionV1p1beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3002( |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> buildUnnamed3003() { |
| var o = <api.GoogleCloudVisionV1p1beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3003( |
| core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[1]); |
| } |
| |
| 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 = buildUnnamed2998(); |
| o.fullTextAnnotation = buildGoogleCloudVisionV1p1beta1TextAnnotation(); |
| o.imagePropertiesAnnotation = |
| buildGoogleCloudVisionV1p1beta1ImageProperties(); |
| o.labelAnnotations = buildUnnamed2999(); |
| o.landmarkAnnotations = buildUnnamed3000(); |
| o.localizedObjectAnnotations = buildUnnamed3001(); |
| o.logoAnnotations = buildUnnamed3002(); |
| o.productSearchResults = |
| buildGoogleCloudVisionV1p1beta1ProductSearchResults(); |
| o.safeSearchAnnotation = |
| buildGoogleCloudVisionV1p1beta1SafeSearchAnnotation(); |
| o.textAnnotations = buildUnnamed3003(); |
| o.webDetection = buildGoogleCloudVisionV1p1beta1WebDetection(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1AnnotateImageResponse( |
| api.GoogleCloudVisionV1p1beta1AnnotateImageResponse o) { |
| buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse < 3) { |
| checkGoogleCloudVisionV1p1beta1ImageAnnotationContext(o.context); |
| checkGoogleCloudVisionV1p1beta1CropHintsAnnotation(o.cropHintsAnnotation); |
| checkStatus(o.error); |
| checkUnnamed2998(o.faceAnnotations); |
| checkGoogleCloudVisionV1p1beta1TextAnnotation(o.fullTextAnnotation); |
| checkGoogleCloudVisionV1p1beta1ImageProperties(o.imagePropertiesAnnotation); |
| checkUnnamed2999(o.labelAnnotations); |
| checkUnnamed3000(o.landmarkAnnotations); |
| checkUnnamed3001(o.localizedObjectAnnotations); |
| checkUnnamed3002(o.logoAnnotations); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResults(o.productSearchResults); |
| checkGoogleCloudVisionV1p1beta1SafeSearchAnnotation(o.safeSearchAnnotation); |
| checkUnnamed3003(o.textAnnotations); |
| checkGoogleCloudVisionV1p1beta1WebDetection(o.webDetection); |
| } |
| 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); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse> |
| buildUnnamed3004() { |
| var o = <api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse()); |
| o.add(buildGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed3004( |
| core.List<api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse(o[0]); |
| checkGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse = |
| 0; |
| api.GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse |
| buildGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse() { |
| var o = api.GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse(); |
| buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| o.responses = buildUnnamed3004(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse( |
| api.GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse o) { |
| buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| checkUnnamed3004(o.responses); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Paragraph> buildUnnamed3005() { |
| var o = <api.GoogleCloudVisionV1p1beta1Paragraph>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Paragraph()); |
| o.add(buildGoogleCloudVisionV1p1beta1Paragraph()); |
| return o; |
| } |
| |
| void checkUnnamed3005(core.List<api.GoogleCloudVisionV1p1beta1Paragraph> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Paragraph(o[0]); |
| checkGoogleCloudVisionV1p1beta1Paragraph(o[1]); |
| } |
| |
| 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 = buildUnnamed3005(); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkUnnamed3005(o.paragraphs); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Block--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1NormalizedVertex> buildUnnamed3006() { |
| var o = <api.GoogleCloudVisionV1p1beta1NormalizedVertex>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1NormalizedVertex()); |
| o.add(buildGoogleCloudVisionV1p1beta1NormalizedVertex()); |
| return o; |
| } |
| |
| void checkUnnamed3006( |
| core.List<api.GoogleCloudVisionV1p1beta1NormalizedVertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1NormalizedVertex(o[0]); |
| checkGoogleCloudVisionV1p1beta1NormalizedVertex(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Vertex> buildUnnamed3007() { |
| var o = <api.GoogleCloudVisionV1p1beta1Vertex>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Vertex()); |
| o.add(buildGoogleCloudVisionV1p1beta1Vertex()); |
| return o; |
| } |
| |
| void checkUnnamed3007(core.List<api.GoogleCloudVisionV1p1beta1Vertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Vertex(o[0]); |
| checkGoogleCloudVisionV1p1beta1Vertex(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1BoundingPoly = 0; |
| api.GoogleCloudVisionV1p1beta1BoundingPoly |
| buildGoogleCloudVisionV1p1beta1BoundingPoly() { |
| var o = api.GoogleCloudVisionV1p1beta1BoundingPoly(); |
| buildCounterGoogleCloudVisionV1p1beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p1beta1BoundingPoly < 3) { |
| o.normalizedVertices = buildUnnamed3006(); |
| o.vertices = buildUnnamed3007(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1BoundingPoly--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1BoundingPoly( |
| api.GoogleCloudVisionV1p1beta1BoundingPoly o) { |
| buildCounterGoogleCloudVisionV1p1beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p1beta1BoundingPoly < 3) { |
| checkUnnamed3006(o.normalizedVertices); |
| checkUnnamed3007(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); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.importanceFraction, unittest.equals(42.0)); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1CropHint--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1CropHint> buildUnnamed3008() { |
| var o = <api.GoogleCloudVisionV1p1beta1CropHint>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1CropHint()); |
| o.add(buildGoogleCloudVisionV1p1beta1CropHint()); |
| return o; |
| } |
| |
| void checkUnnamed3008(core.List<api.GoogleCloudVisionV1p1beta1CropHint> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1CropHint(o[0]); |
| checkGoogleCloudVisionV1p1beta1CropHint(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation = 0; |
| api.GoogleCloudVisionV1p1beta1CropHintsAnnotation |
| buildGoogleCloudVisionV1p1beta1CropHintsAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1CropHintsAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation < 3) { |
| o.cropHints = buildUnnamed3008(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1CropHintsAnnotation( |
| api.GoogleCloudVisionV1p1beta1CropHintsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation < 3) { |
| checkUnnamed3008(o.cropHints); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1ColorInfo> buildUnnamed3009() { |
| var o = <api.GoogleCloudVisionV1p1beta1ColorInfo>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ColorInfo()); |
| o.add(buildGoogleCloudVisionV1p1beta1ColorInfo()); |
| return o; |
| } |
| |
| void checkUnnamed3009(core.List<api.GoogleCloudVisionV1p1beta1ColorInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ColorInfo(o[0]); |
| checkGoogleCloudVisionV1p1beta1ColorInfo(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation = 0; |
| api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation |
| buildGoogleCloudVisionV1p1beta1DominantColorsAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation < 3) { |
| o.colors = buildUnnamed3009(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1DominantColorsAnnotation( |
| api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation < 3) { |
| checkUnnamed3009(o.colors); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1LocationInfo> buildUnnamed3010() { |
| var o = <api.GoogleCloudVisionV1p1beta1LocationInfo>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1LocationInfo()); |
| o.add(buildGoogleCloudVisionV1p1beta1LocationInfo()); |
| return o; |
| } |
| |
| void checkUnnamed3010(core.List<api.GoogleCloudVisionV1p1beta1LocationInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1LocationInfo(o[0]); |
| checkGoogleCloudVisionV1p1beta1LocationInfo(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Property> buildUnnamed3011() { |
| var o = <api.GoogleCloudVisionV1p1beta1Property>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Property()); |
| o.add(buildGoogleCloudVisionV1p1beta1Property()); |
| return o; |
| } |
| |
| void checkUnnamed3011(core.List<api.GoogleCloudVisionV1p1beta1Property> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Property(o[0]); |
| checkGoogleCloudVisionV1p1beta1Property(o[1]); |
| } |
| |
| 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 = buildUnnamed3010(); |
| o.mid = 'foo'; |
| o.properties = buildUnnamed3011(); |
| o.score = 42.0; |
| o.topicality = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1EntityAnnotation( |
| api.GoogleCloudVisionV1p1beta1EntityAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation < 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly(o.boundingPoly); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.description, unittest.equals('foo')); |
| unittest.expect(o.locale, unittest.equals('foo')); |
| checkUnnamed3010(o.locations); |
| unittest.expect(o.mid, unittest.equals('foo')); |
| checkUnnamed3011(o.properties); |
| unittest.expect(o.score, unittest.equals(42.0)); |
| unittest.expect(o.topicality, unittest.equals(42.0)); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark> |
| buildUnnamed3012() { |
| var o = <api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotationLandmark()); |
| o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotationLandmark()); |
| return o; |
| } |
| |
| void checkUnnamed3012( |
| core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotationLandmark(o[0]); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotationLandmark(o[1]); |
| } |
| |
| 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 = buildUnnamed3012(); |
| 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); |
| unittest.expect(o.detectionConfidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p1beta1BoundingPoly(o.fdBoundingPoly); |
| unittest.expect(o.headwearLikelihood, unittest.equals('foo')); |
| unittest.expect(o.joyLikelihood, unittest.equals('foo')); |
| unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); |
| checkUnnamed3012(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); |
| 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); |
| } |
| 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); |
| 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); |
| 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); |
| } |
| 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); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1OutputConfig--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Block> buildUnnamed3013() { |
| var o = <api.GoogleCloudVisionV1p1beta1Block>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Block()); |
| o.add(buildGoogleCloudVisionV1p1beta1Block()); |
| return o; |
| } |
| |
| void checkUnnamed3013(core.List<api.GoogleCloudVisionV1p1beta1Block> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Block(o[0]); |
| checkGoogleCloudVisionV1p1beta1Block(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1Page = 0; |
| api.GoogleCloudVisionV1p1beta1Page buildGoogleCloudVisionV1p1beta1Page() { |
| var o = api.GoogleCloudVisionV1p1beta1Page(); |
| buildCounterGoogleCloudVisionV1p1beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Page < 3) { |
| o.blocks = buildUnnamed3013(); |
| 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) { |
| checkUnnamed3013(o.blocks); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.height, unittest.equals(42)); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property); |
| unittest.expect(o.width, unittest.equals(42)); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Page--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Word> buildUnnamed3014() { |
| var o = <api.GoogleCloudVisionV1p1beta1Word>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Word()); |
| o.add(buildGoogleCloudVisionV1p1beta1Word()); |
| return o; |
| } |
| |
| void checkUnnamed3014(core.List<api.GoogleCloudVisionV1p1beta1Word> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Word(o[0]); |
| checkGoogleCloudVisionV1p1beta1Word(o[1]); |
| } |
| |
| 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 = buildUnnamed3014(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Paragraph--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Paragraph( |
| api.GoogleCloudVisionV1p1beta1Paragraph o) { |
| buildCounterGoogleCloudVisionV1p1beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Paragraph < 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly(o.boundingBox); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property); |
| checkUnnamed3014(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> buildUnnamed3015() { |
| var o = <api.GoogleCloudVisionV1p1beta1ProductKeyValue>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ProductKeyValue()); |
| o.add(buildGoogleCloudVisionV1p1beta1ProductKeyValue()); |
| return o; |
| } |
| |
| void checkUnnamed3015( |
| core.List<api.GoogleCloudVisionV1p1beta1ProductKeyValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ProductKeyValue(o[0]); |
| checkGoogleCloudVisionV1p1beta1ProductKeyValue(o[1]); |
| } |
| |
| 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 = buildUnnamed3015(); |
| } |
| 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')); |
| checkUnnamed3015(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> |
| buildUnnamed3016() { |
| var o = <api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult()); |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult()); |
| return o; |
| } |
| |
| void checkUnnamed3016( |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult(o[0]); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult> |
| buildUnnamed3017() { |
| var o = <api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed3017( |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult(o[0]); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults = 0; |
| api.GoogleCloudVisionV1p1beta1ProductSearchResults |
| buildGoogleCloudVisionV1p1beta1ProductSearchResults() { |
| var o = api.GoogleCloudVisionV1p1beta1ProductSearchResults(); |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults < 3) { |
| o.indexTime = 'foo'; |
| o.productGroupedResults = buildUnnamed3016(); |
| o.results = buildUnnamed3017(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1ProductSearchResults( |
| api.GoogleCloudVisionV1p1beta1ProductSearchResults o) { |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults < 3) { |
| unittest.expect(o.indexTime, unittest.equals('foo')); |
| checkUnnamed3016(o.productGroupedResults); |
| checkUnnamed3017(o.results); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation> |
| buildUnnamed3018() { |
| var o = |
| <api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3018( |
| core.List< |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation(o[0]); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult> |
| buildUnnamed3019() { |
| var o = <api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed3019( |
| core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult(o[0]); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult(o[1]); |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult = 0; |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult |
| buildGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult() { |
| var o = api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult(); |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult < |
| 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| o.objectAnnotations = buildUnnamed3018(); |
| o.results = buildUnnamed3019(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult( |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult o) { |
| buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult < |
| 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly(o.boundingPoly); |
| checkUnnamed3018(o.objectAnnotations); |
| checkUnnamed3019(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); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property); |
| unittest.expect(o.text, unittest.equals('foo')); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Symbol--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Page> buildUnnamed3020() { |
| var o = <api.GoogleCloudVisionV1p1beta1Page>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Page()); |
| o.add(buildGoogleCloudVisionV1p1beta1Page()); |
| return o; |
| } |
| |
| void checkUnnamed3020(core.List<api.GoogleCloudVisionV1p1beta1Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Page(o[0]); |
| checkGoogleCloudVisionV1p1beta1Page(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1TextAnnotation = 0; |
| api.GoogleCloudVisionV1p1beta1TextAnnotation |
| buildGoogleCloudVisionV1p1beta1TextAnnotation() { |
| var o = api.GoogleCloudVisionV1p1beta1TextAnnotation(); |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotation < 3) { |
| o.pages = buildUnnamed3020(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1TextAnnotation( |
| api.GoogleCloudVisionV1p1beta1TextAnnotation o) { |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotation < 3) { |
| checkUnnamed3020(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> |
| buildUnnamed3021() { |
| var o = <api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage()); |
| o.add(buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage()); |
| return o; |
| } |
| |
| void checkUnnamed3021( |
| core.List<api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage(o[0]); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty = 0; |
| api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty |
| buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty() { |
| var o = api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty < 3) { |
| o.detectedBreak = |
| buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak(); |
| o.detectedLanguages = buildUnnamed3021(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty( |
| api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty o) { |
| buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty < 3) { |
| checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak(o.detectedBreak); |
| checkUnnamed3021(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> |
| buildUnnamed3022() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebLabel()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebLabel()); |
| return o; |
| } |
| |
| void checkUnnamed3022( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebLabel(o[0]); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebLabel(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> |
| buildUnnamed3023() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3023( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebPage> |
| buildUnnamed3024() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebPage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebPage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebPage()); |
| return o; |
| } |
| |
| void checkUnnamed3024( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebPage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebPage(o[0]); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebPage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> |
| buildUnnamed3025() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3025( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> |
| buildUnnamed3026() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3026( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity> |
| buildUnnamed3027() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebEntity()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebEntity()); |
| return o; |
| } |
| |
| void checkUnnamed3027( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebEntity(o[0]); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebEntity(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1WebDetection = 0; |
| api.GoogleCloudVisionV1p1beta1WebDetection |
| buildGoogleCloudVisionV1p1beta1WebDetection() { |
| var o = api.GoogleCloudVisionV1p1beta1WebDetection(); |
| buildCounterGoogleCloudVisionV1p1beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetection < 3) { |
| o.bestGuessLabels = buildUnnamed3022(); |
| o.fullMatchingImages = buildUnnamed3023(); |
| o.pagesWithMatchingImages = buildUnnamed3024(); |
| o.partialMatchingImages = buildUnnamed3025(); |
| o.visuallySimilarImages = buildUnnamed3026(); |
| o.webEntities = buildUnnamed3027(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetection--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1WebDetection( |
| api.GoogleCloudVisionV1p1beta1WebDetection o) { |
| buildCounterGoogleCloudVisionV1p1beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetection < 3) { |
| checkUnnamed3022(o.bestGuessLabels); |
| checkUnnamed3023(o.fullMatchingImages); |
| checkUnnamed3024(o.pagesWithMatchingImages); |
| checkUnnamed3025(o.partialMatchingImages); |
| checkUnnamed3026(o.visuallySimilarImages); |
| checkUnnamed3027(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> |
| buildUnnamed3028() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3028( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> |
| buildUnnamed3029() { |
| var o = <api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3029( |
| core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage = 0; |
| api.GoogleCloudVisionV1p1beta1WebDetectionWebPage |
| buildGoogleCloudVisionV1p1beta1WebDetectionWebPage() { |
| var o = api.GoogleCloudVisionV1p1beta1WebDetectionWebPage(); |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage < 3) { |
| o.fullMatchingImages = buildUnnamed3028(); |
| o.pageTitle = 'foo'; |
| o.partialMatchingImages = buildUnnamed3029(); |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1WebDetectionWebPage( |
| api.GoogleCloudVisionV1p1beta1WebDetectionWebPage o) { |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage < 3) { |
| checkUnnamed3028(o.fullMatchingImages); |
| unittest.expect(o.pageTitle, unittest.equals('foo')); |
| checkUnnamed3029(o.partialMatchingImages); |
| unittest.expect(o.score, unittest.equals(42.0)); |
| unittest.expect(o.url, unittest.equals('foo')); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p1beta1Symbol> buildUnnamed3030() { |
| var o = <api.GoogleCloudVisionV1p1beta1Symbol>[]; |
| o.add(buildGoogleCloudVisionV1p1beta1Symbol()); |
| o.add(buildGoogleCloudVisionV1p1beta1Symbol()); |
| return o; |
| } |
| |
| void checkUnnamed3030(core.List<api.GoogleCloudVisionV1p1beta1Symbol> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p1beta1Symbol(o[0]); |
| checkGoogleCloudVisionV1p1beta1Symbol(o[1]); |
| } |
| |
| 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 = buildUnnamed3030(); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Word--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p1beta1Word(api.GoogleCloudVisionV1p1beta1Word o) { |
| buildCounterGoogleCloudVisionV1p1beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p1beta1Word < 3) { |
| checkGoogleCloudVisionV1p1beta1BoundingPoly(o.boundingBox); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property); |
| checkUnnamed3030(o.symbols); |
| } |
| buildCounterGoogleCloudVisionV1p1beta1Word--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1AnnotateImageResponse> |
| buildUnnamed3031() { |
| var o = <api.GoogleCloudVisionV1p2beta1AnnotateImageResponse>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1AnnotateImageResponse()); |
| o.add(buildGoogleCloudVisionV1p2beta1AnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed3031( |
| core.List<api.GoogleCloudVisionV1p2beta1AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1AnnotateImageResponse(o[0]); |
| checkGoogleCloudVisionV1p2beta1AnnotateImageResponse(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p2beta1AnnotateFileResponse |
| buildGoogleCloudVisionV1p2beta1AnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p2beta1AnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse < 3) { |
| o.error = buildStatus(); |
| o.inputConfig = buildGoogleCloudVisionV1p2beta1InputConfig(); |
| o.responses = buildUnnamed3031(); |
| o.totalPages = 42; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1AnnotateFileResponse( |
| api.GoogleCloudVisionV1p2beta1AnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse < 3) { |
| checkStatus(o.error); |
| checkGoogleCloudVisionV1p2beta1InputConfig(o.inputConfig); |
| checkUnnamed3031(o.responses); |
| unittest.expect(o.totalPages, unittest.equals(42)); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotation> buildUnnamed3032() { |
| var o = <api.GoogleCloudVisionV1p2beta1FaceAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3032( |
| core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotation(o[0]); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> buildUnnamed3033() { |
| var o = <api.GoogleCloudVisionV1p2beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3033( |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> buildUnnamed3034() { |
| var o = <api.GoogleCloudVisionV1p2beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3034( |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation> |
| buildUnnamed3035() { |
| var o = <api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3035( |
| core.List<api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation(o[0]); |
| checkGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> buildUnnamed3036() { |
| var o = <api.GoogleCloudVisionV1p2beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3036( |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> buildUnnamed3037() { |
| var o = <api.GoogleCloudVisionV1p2beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3037( |
| core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); |
| } |
| |
| 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 = buildUnnamed3032(); |
| o.fullTextAnnotation = buildGoogleCloudVisionV1p2beta1TextAnnotation(); |
| o.imagePropertiesAnnotation = |
| buildGoogleCloudVisionV1p2beta1ImageProperties(); |
| o.labelAnnotations = buildUnnamed3033(); |
| o.landmarkAnnotations = buildUnnamed3034(); |
| o.localizedObjectAnnotations = buildUnnamed3035(); |
| o.logoAnnotations = buildUnnamed3036(); |
| o.productSearchResults = |
| buildGoogleCloudVisionV1p2beta1ProductSearchResults(); |
| o.safeSearchAnnotation = |
| buildGoogleCloudVisionV1p2beta1SafeSearchAnnotation(); |
| o.textAnnotations = buildUnnamed3037(); |
| o.webDetection = buildGoogleCloudVisionV1p2beta1WebDetection(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1AnnotateImageResponse( |
| api.GoogleCloudVisionV1p2beta1AnnotateImageResponse o) { |
| buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse < 3) { |
| checkGoogleCloudVisionV1p2beta1ImageAnnotationContext(o.context); |
| checkGoogleCloudVisionV1p2beta1CropHintsAnnotation(o.cropHintsAnnotation); |
| checkStatus(o.error); |
| checkUnnamed3032(o.faceAnnotations); |
| checkGoogleCloudVisionV1p2beta1TextAnnotation(o.fullTextAnnotation); |
| checkGoogleCloudVisionV1p2beta1ImageProperties(o.imagePropertiesAnnotation); |
| checkUnnamed3033(o.labelAnnotations); |
| checkUnnamed3034(o.landmarkAnnotations); |
| checkUnnamed3035(o.localizedObjectAnnotations); |
| checkUnnamed3036(o.logoAnnotations); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResults(o.productSearchResults); |
| checkGoogleCloudVisionV1p2beta1SafeSearchAnnotation(o.safeSearchAnnotation); |
| checkUnnamed3037(o.textAnnotations); |
| checkGoogleCloudVisionV1p2beta1WebDetection(o.webDetection); |
| } |
| 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); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse> |
| buildUnnamed3038() { |
| var o = <api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse()); |
| o.add(buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed3038( |
| core.List<api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(o[0]); |
| checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse = |
| 0; |
| api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse |
| buildGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse() { |
| var o = api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse(); |
| buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| o.responses = buildUnnamed3038(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse( |
| api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse o) { |
| buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| checkUnnamed3038(o.responses); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Paragraph> buildUnnamed3039() { |
| var o = <api.GoogleCloudVisionV1p2beta1Paragraph>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Paragraph()); |
| o.add(buildGoogleCloudVisionV1p2beta1Paragraph()); |
| return o; |
| } |
| |
| void checkUnnamed3039(core.List<api.GoogleCloudVisionV1p2beta1Paragraph> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Paragraph(o[0]); |
| checkGoogleCloudVisionV1p2beta1Paragraph(o[1]); |
| } |
| |
| 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 = buildUnnamed3039(); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkUnnamed3039(o.paragraphs); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Block--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1NormalizedVertex> buildUnnamed3040() { |
| var o = <api.GoogleCloudVisionV1p2beta1NormalizedVertex>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1NormalizedVertex()); |
| o.add(buildGoogleCloudVisionV1p2beta1NormalizedVertex()); |
| return o; |
| } |
| |
| void checkUnnamed3040( |
| core.List<api.GoogleCloudVisionV1p2beta1NormalizedVertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1NormalizedVertex(o[0]); |
| checkGoogleCloudVisionV1p2beta1NormalizedVertex(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Vertex> buildUnnamed3041() { |
| var o = <api.GoogleCloudVisionV1p2beta1Vertex>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Vertex()); |
| o.add(buildGoogleCloudVisionV1p2beta1Vertex()); |
| return o; |
| } |
| |
| void checkUnnamed3041(core.List<api.GoogleCloudVisionV1p2beta1Vertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Vertex(o[0]); |
| checkGoogleCloudVisionV1p2beta1Vertex(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1BoundingPoly = 0; |
| api.GoogleCloudVisionV1p2beta1BoundingPoly |
| buildGoogleCloudVisionV1p2beta1BoundingPoly() { |
| var o = api.GoogleCloudVisionV1p2beta1BoundingPoly(); |
| buildCounterGoogleCloudVisionV1p2beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p2beta1BoundingPoly < 3) { |
| o.normalizedVertices = buildUnnamed3040(); |
| o.vertices = buildUnnamed3041(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1BoundingPoly--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1BoundingPoly( |
| api.GoogleCloudVisionV1p2beta1BoundingPoly o) { |
| buildCounterGoogleCloudVisionV1p2beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p2beta1BoundingPoly < 3) { |
| checkUnnamed3040(o.normalizedVertices); |
| checkUnnamed3041(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); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.importanceFraction, unittest.equals(42.0)); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1CropHint--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1CropHint> buildUnnamed3042() { |
| var o = <api.GoogleCloudVisionV1p2beta1CropHint>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1CropHint()); |
| o.add(buildGoogleCloudVisionV1p2beta1CropHint()); |
| return o; |
| } |
| |
| void checkUnnamed3042(core.List<api.GoogleCloudVisionV1p2beta1CropHint> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1CropHint(o[0]); |
| checkGoogleCloudVisionV1p2beta1CropHint(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation = 0; |
| api.GoogleCloudVisionV1p2beta1CropHintsAnnotation |
| buildGoogleCloudVisionV1p2beta1CropHintsAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1CropHintsAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation < 3) { |
| o.cropHints = buildUnnamed3042(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1CropHintsAnnotation( |
| api.GoogleCloudVisionV1p2beta1CropHintsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation < 3) { |
| checkUnnamed3042(o.cropHints); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1ColorInfo> buildUnnamed3043() { |
| var o = <api.GoogleCloudVisionV1p2beta1ColorInfo>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ColorInfo()); |
| o.add(buildGoogleCloudVisionV1p2beta1ColorInfo()); |
| return o; |
| } |
| |
| void checkUnnamed3043(core.List<api.GoogleCloudVisionV1p2beta1ColorInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ColorInfo(o[0]); |
| checkGoogleCloudVisionV1p2beta1ColorInfo(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation = 0; |
| api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation |
| buildGoogleCloudVisionV1p2beta1DominantColorsAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation < 3) { |
| o.colors = buildUnnamed3043(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1DominantColorsAnnotation( |
| api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation < 3) { |
| checkUnnamed3043(o.colors); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1LocationInfo> buildUnnamed3044() { |
| var o = <api.GoogleCloudVisionV1p2beta1LocationInfo>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1LocationInfo()); |
| o.add(buildGoogleCloudVisionV1p2beta1LocationInfo()); |
| return o; |
| } |
| |
| void checkUnnamed3044(core.List<api.GoogleCloudVisionV1p2beta1LocationInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1LocationInfo(o[0]); |
| checkGoogleCloudVisionV1p2beta1LocationInfo(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Property> buildUnnamed3045() { |
| var o = <api.GoogleCloudVisionV1p2beta1Property>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Property()); |
| o.add(buildGoogleCloudVisionV1p2beta1Property()); |
| return o; |
| } |
| |
| void checkUnnamed3045(core.List<api.GoogleCloudVisionV1p2beta1Property> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Property(o[0]); |
| checkGoogleCloudVisionV1p2beta1Property(o[1]); |
| } |
| |
| 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 = buildUnnamed3044(); |
| o.mid = 'foo'; |
| o.properties = buildUnnamed3045(); |
| o.score = 42.0; |
| o.topicality = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1EntityAnnotation( |
| api.GoogleCloudVisionV1p2beta1EntityAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation < 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingPoly); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.description, unittest.equals('foo')); |
| unittest.expect(o.locale, unittest.equals('foo')); |
| checkUnnamed3044(o.locations); |
| unittest.expect(o.mid, unittest.equals('foo')); |
| checkUnnamed3045(o.properties); |
| unittest.expect(o.score, unittest.equals(42.0)); |
| unittest.expect(o.topicality, unittest.equals(42.0)); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark> |
| buildUnnamed3046() { |
| var o = <api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark()); |
| o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark()); |
| return o; |
| } |
| |
| void checkUnnamed3046( |
| core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark(o[0]); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark(o[1]); |
| } |
| |
| 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 = buildUnnamed3046(); |
| 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); |
| unittest.expect(o.detectionConfidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p2beta1BoundingPoly(o.fdBoundingPoly); |
| unittest.expect(o.headwearLikelihood, unittest.equals('foo')); |
| unittest.expect(o.joyLikelihood, unittest.equals('foo')); |
| unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); |
| checkUnnamed3046(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); |
| 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); |
| } |
| 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); |
| 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); |
| 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); |
| } |
| 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); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1OutputConfig--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Block> buildUnnamed3047() { |
| var o = <api.GoogleCloudVisionV1p2beta1Block>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Block()); |
| o.add(buildGoogleCloudVisionV1p2beta1Block()); |
| return o; |
| } |
| |
| void checkUnnamed3047(core.List<api.GoogleCloudVisionV1p2beta1Block> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Block(o[0]); |
| checkGoogleCloudVisionV1p2beta1Block(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1Page = 0; |
| api.GoogleCloudVisionV1p2beta1Page buildGoogleCloudVisionV1p2beta1Page() { |
| var o = api.GoogleCloudVisionV1p2beta1Page(); |
| buildCounterGoogleCloudVisionV1p2beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Page < 3) { |
| o.blocks = buildUnnamed3047(); |
| 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) { |
| checkUnnamed3047(o.blocks); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.height, unittest.equals(42)); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); |
| unittest.expect(o.width, unittest.equals(42)); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Page--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Word> buildUnnamed3048() { |
| var o = <api.GoogleCloudVisionV1p2beta1Word>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Word()); |
| o.add(buildGoogleCloudVisionV1p2beta1Word()); |
| return o; |
| } |
| |
| void checkUnnamed3048(core.List<api.GoogleCloudVisionV1p2beta1Word> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Word(o[0]); |
| checkGoogleCloudVisionV1p2beta1Word(o[1]); |
| } |
| |
| 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 = buildUnnamed3048(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Paragraph--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Paragraph( |
| api.GoogleCloudVisionV1p2beta1Paragraph o) { |
| buildCounterGoogleCloudVisionV1p2beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Paragraph < 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingBox); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); |
| checkUnnamed3048(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> buildUnnamed3049() { |
| var o = <api.GoogleCloudVisionV1p2beta1ProductKeyValue>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ProductKeyValue()); |
| o.add(buildGoogleCloudVisionV1p2beta1ProductKeyValue()); |
| return o; |
| } |
| |
| void checkUnnamed3049( |
| core.List<api.GoogleCloudVisionV1p2beta1ProductKeyValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ProductKeyValue(o[0]); |
| checkGoogleCloudVisionV1p2beta1ProductKeyValue(o[1]); |
| } |
| |
| 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 = buildUnnamed3049(); |
| } |
| 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')); |
| checkUnnamed3049(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> |
| buildUnnamed3050() { |
| var o = <api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult()); |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult()); |
| return o; |
| } |
| |
| void checkUnnamed3050( |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult(o[0]); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult> |
| buildUnnamed3051() { |
| var o = <api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed3051( |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult(o[0]); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults = 0; |
| api.GoogleCloudVisionV1p2beta1ProductSearchResults |
| buildGoogleCloudVisionV1p2beta1ProductSearchResults() { |
| var o = api.GoogleCloudVisionV1p2beta1ProductSearchResults(); |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults < 3) { |
| o.indexTime = 'foo'; |
| o.productGroupedResults = buildUnnamed3050(); |
| o.results = buildUnnamed3051(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1ProductSearchResults( |
| api.GoogleCloudVisionV1p2beta1ProductSearchResults o) { |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults < 3) { |
| unittest.expect(o.indexTime, unittest.equals('foo')); |
| checkUnnamed3050(o.productGroupedResults); |
| checkUnnamed3051(o.results); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation> |
| buildUnnamed3052() { |
| var o = |
| <api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3052( |
| core.List< |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation(o[0]); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult> |
| buildUnnamed3053() { |
| var o = <api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed3053( |
| core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult(o[0]); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult(o[1]); |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult = 0; |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult |
| buildGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult() { |
| var o = api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult(); |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult < |
| 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| o.objectAnnotations = buildUnnamed3052(); |
| o.results = buildUnnamed3053(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult( |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult o) { |
| buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult < |
| 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingPoly); |
| checkUnnamed3052(o.objectAnnotations); |
| checkUnnamed3053(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); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); |
| unittest.expect(o.text, unittest.equals('foo')); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Symbol--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Page> buildUnnamed3054() { |
| var o = <api.GoogleCloudVisionV1p2beta1Page>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Page()); |
| o.add(buildGoogleCloudVisionV1p2beta1Page()); |
| return o; |
| } |
| |
| void checkUnnamed3054(core.List<api.GoogleCloudVisionV1p2beta1Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Page(o[0]); |
| checkGoogleCloudVisionV1p2beta1Page(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1TextAnnotation = 0; |
| api.GoogleCloudVisionV1p2beta1TextAnnotation |
| buildGoogleCloudVisionV1p2beta1TextAnnotation() { |
| var o = api.GoogleCloudVisionV1p2beta1TextAnnotation(); |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotation < 3) { |
| o.pages = buildUnnamed3054(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1TextAnnotation( |
| api.GoogleCloudVisionV1p2beta1TextAnnotation o) { |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotation < 3) { |
| checkUnnamed3054(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> |
| buildUnnamed3055() { |
| var o = <api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage()); |
| o.add(buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage()); |
| return o; |
| } |
| |
| void checkUnnamed3055( |
| core.List<api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(o[0]); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty = 0; |
| api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty |
| buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty() { |
| var o = api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty < 3) { |
| o.detectedBreak = |
| buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(); |
| o.detectedLanguages = buildUnnamed3055(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty( |
| api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty o) { |
| buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty < 3) { |
| checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(o.detectedBreak); |
| checkUnnamed3055(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> |
| buildUnnamed3056() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel()); |
| return o; |
| } |
| |
| void checkUnnamed3056( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel(o[0]); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> |
| buildUnnamed3057() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3057( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebPage> |
| buildUnnamed3058() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebPage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebPage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebPage()); |
| return o; |
| } |
| |
| void checkUnnamed3058( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebPage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebPage(o[0]); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebPage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> |
| buildUnnamed3059() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3059( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> |
| buildUnnamed3060() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3060( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity> |
| buildUnnamed3061() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity()); |
| return o; |
| } |
| |
| void checkUnnamed3061( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity(o[0]); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1WebDetection = 0; |
| api.GoogleCloudVisionV1p2beta1WebDetection |
| buildGoogleCloudVisionV1p2beta1WebDetection() { |
| var o = api.GoogleCloudVisionV1p2beta1WebDetection(); |
| buildCounterGoogleCloudVisionV1p2beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetection < 3) { |
| o.bestGuessLabels = buildUnnamed3056(); |
| o.fullMatchingImages = buildUnnamed3057(); |
| o.pagesWithMatchingImages = buildUnnamed3058(); |
| o.partialMatchingImages = buildUnnamed3059(); |
| o.visuallySimilarImages = buildUnnamed3060(); |
| o.webEntities = buildUnnamed3061(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetection--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1WebDetection( |
| api.GoogleCloudVisionV1p2beta1WebDetection o) { |
| buildCounterGoogleCloudVisionV1p2beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetection < 3) { |
| checkUnnamed3056(o.bestGuessLabels); |
| checkUnnamed3057(o.fullMatchingImages); |
| checkUnnamed3058(o.pagesWithMatchingImages); |
| checkUnnamed3059(o.partialMatchingImages); |
| checkUnnamed3060(o.visuallySimilarImages); |
| checkUnnamed3061(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> |
| buildUnnamed3062() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3062( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> |
| buildUnnamed3063() { |
| var o = <api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3063( |
| core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage = 0; |
| api.GoogleCloudVisionV1p2beta1WebDetectionWebPage |
| buildGoogleCloudVisionV1p2beta1WebDetectionWebPage() { |
| var o = api.GoogleCloudVisionV1p2beta1WebDetectionWebPage(); |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage < 3) { |
| o.fullMatchingImages = buildUnnamed3062(); |
| o.pageTitle = 'foo'; |
| o.partialMatchingImages = buildUnnamed3063(); |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1WebDetectionWebPage( |
| api.GoogleCloudVisionV1p2beta1WebDetectionWebPage o) { |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage < 3) { |
| checkUnnamed3062(o.fullMatchingImages); |
| unittest.expect(o.pageTitle, unittest.equals('foo')); |
| checkUnnamed3063(o.partialMatchingImages); |
| unittest.expect(o.score, unittest.equals(42.0)); |
| unittest.expect(o.url, unittest.equals('foo')); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p2beta1Symbol> buildUnnamed3064() { |
| var o = <api.GoogleCloudVisionV1p2beta1Symbol>[]; |
| o.add(buildGoogleCloudVisionV1p2beta1Symbol()); |
| o.add(buildGoogleCloudVisionV1p2beta1Symbol()); |
| return o; |
| } |
| |
| void checkUnnamed3064(core.List<api.GoogleCloudVisionV1p2beta1Symbol> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p2beta1Symbol(o[0]); |
| checkGoogleCloudVisionV1p2beta1Symbol(o[1]); |
| } |
| |
| 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 = buildUnnamed3064(); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Word--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p2beta1Word(api.GoogleCloudVisionV1p2beta1Word o) { |
| buildCounterGoogleCloudVisionV1p2beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p2beta1Word < 3) { |
| checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingBox); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); |
| checkUnnamed3064(o.symbols); |
| } |
| buildCounterGoogleCloudVisionV1p2beta1Word--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1AnnotateImageResponse> |
| buildUnnamed3065() { |
| var o = <api.GoogleCloudVisionV1p3beta1AnnotateImageResponse>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1AnnotateImageResponse()); |
| o.add(buildGoogleCloudVisionV1p3beta1AnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed3065( |
| core.List<api.GoogleCloudVisionV1p3beta1AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1AnnotateImageResponse(o[0]); |
| checkGoogleCloudVisionV1p3beta1AnnotateImageResponse(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p3beta1AnnotateFileResponse |
| buildGoogleCloudVisionV1p3beta1AnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p3beta1AnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse < 3) { |
| o.error = buildStatus(); |
| o.inputConfig = buildGoogleCloudVisionV1p3beta1InputConfig(); |
| o.responses = buildUnnamed3065(); |
| o.totalPages = 42; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1AnnotateFileResponse( |
| api.GoogleCloudVisionV1p3beta1AnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse < 3) { |
| checkStatus(o.error); |
| checkGoogleCloudVisionV1p3beta1InputConfig(o.inputConfig); |
| checkUnnamed3065(o.responses); |
| unittest.expect(o.totalPages, unittest.equals(42)); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotation> buildUnnamed3066() { |
| var o = <api.GoogleCloudVisionV1p3beta1FaceAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3066( |
| core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotation(o[0]); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> buildUnnamed3067() { |
| var o = <api.GoogleCloudVisionV1p3beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3067( |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> buildUnnamed3068() { |
| var o = <api.GoogleCloudVisionV1p3beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3068( |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation> |
| buildUnnamed3069() { |
| var o = <api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3069( |
| core.List<api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation(o[0]); |
| checkGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> buildUnnamed3070() { |
| var o = <api.GoogleCloudVisionV1p3beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3070( |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> buildUnnamed3071() { |
| var o = <api.GoogleCloudVisionV1p3beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3071( |
| core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[1]); |
| } |
| |
| 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 = buildUnnamed3066(); |
| o.fullTextAnnotation = buildGoogleCloudVisionV1p3beta1TextAnnotation(); |
| o.imagePropertiesAnnotation = |
| buildGoogleCloudVisionV1p3beta1ImageProperties(); |
| o.labelAnnotations = buildUnnamed3067(); |
| o.landmarkAnnotations = buildUnnamed3068(); |
| o.localizedObjectAnnotations = buildUnnamed3069(); |
| o.logoAnnotations = buildUnnamed3070(); |
| o.productSearchResults = |
| buildGoogleCloudVisionV1p3beta1ProductSearchResults(); |
| o.safeSearchAnnotation = |
| buildGoogleCloudVisionV1p3beta1SafeSearchAnnotation(); |
| o.textAnnotations = buildUnnamed3071(); |
| o.webDetection = buildGoogleCloudVisionV1p3beta1WebDetection(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1AnnotateImageResponse( |
| api.GoogleCloudVisionV1p3beta1AnnotateImageResponse o) { |
| buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse < 3) { |
| checkGoogleCloudVisionV1p3beta1ImageAnnotationContext(o.context); |
| checkGoogleCloudVisionV1p3beta1CropHintsAnnotation(o.cropHintsAnnotation); |
| checkStatus(o.error); |
| checkUnnamed3066(o.faceAnnotations); |
| checkGoogleCloudVisionV1p3beta1TextAnnotation(o.fullTextAnnotation); |
| checkGoogleCloudVisionV1p3beta1ImageProperties(o.imagePropertiesAnnotation); |
| checkUnnamed3067(o.labelAnnotations); |
| checkUnnamed3068(o.landmarkAnnotations); |
| checkUnnamed3069(o.localizedObjectAnnotations); |
| checkUnnamed3070(o.logoAnnotations); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResults(o.productSearchResults); |
| checkGoogleCloudVisionV1p3beta1SafeSearchAnnotation(o.safeSearchAnnotation); |
| checkUnnamed3071(o.textAnnotations); |
| checkGoogleCloudVisionV1p3beta1WebDetection(o.webDetection); |
| } |
| 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); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse> |
| buildUnnamed3072() { |
| var o = <api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse()); |
| o.add(buildGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed3072( |
| core.List<api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse(o[0]); |
| checkGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse = |
| 0; |
| api.GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse |
| buildGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse() { |
| var o = api.GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse(); |
| buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| o.responses = buildUnnamed3072(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse( |
| api.GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse o) { |
| buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| checkUnnamed3072(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> buildUnnamed3073() { |
| var o = <api.GoogleCloudVisionV1p3beta1Paragraph>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Paragraph()); |
| o.add(buildGoogleCloudVisionV1p3beta1Paragraph()); |
| return o; |
| } |
| |
| void checkUnnamed3073(core.List<api.GoogleCloudVisionV1p3beta1Paragraph> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Paragraph(o[0]); |
| checkGoogleCloudVisionV1p3beta1Paragraph(o[1]); |
| } |
| |
| 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 = buildUnnamed3073(); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkUnnamed3073(o.paragraphs); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Block--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1NormalizedVertex> buildUnnamed3074() { |
| var o = <api.GoogleCloudVisionV1p3beta1NormalizedVertex>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1NormalizedVertex()); |
| o.add(buildGoogleCloudVisionV1p3beta1NormalizedVertex()); |
| return o; |
| } |
| |
| void checkUnnamed3074( |
| core.List<api.GoogleCloudVisionV1p3beta1NormalizedVertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1NormalizedVertex(o[0]); |
| checkGoogleCloudVisionV1p3beta1NormalizedVertex(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Vertex> buildUnnamed3075() { |
| var o = <api.GoogleCloudVisionV1p3beta1Vertex>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Vertex()); |
| o.add(buildGoogleCloudVisionV1p3beta1Vertex()); |
| return o; |
| } |
| |
| void checkUnnamed3075(core.List<api.GoogleCloudVisionV1p3beta1Vertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Vertex(o[0]); |
| checkGoogleCloudVisionV1p3beta1Vertex(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1BoundingPoly = 0; |
| api.GoogleCloudVisionV1p3beta1BoundingPoly |
| buildGoogleCloudVisionV1p3beta1BoundingPoly() { |
| var o = api.GoogleCloudVisionV1p3beta1BoundingPoly(); |
| buildCounterGoogleCloudVisionV1p3beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p3beta1BoundingPoly < 3) { |
| o.normalizedVertices = buildUnnamed3074(); |
| o.vertices = buildUnnamed3075(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1BoundingPoly--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1BoundingPoly( |
| api.GoogleCloudVisionV1p3beta1BoundingPoly o) { |
| buildCounterGoogleCloudVisionV1p3beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p3beta1BoundingPoly < 3) { |
| checkUnnamed3074(o.normalizedVertices); |
| checkUnnamed3075(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); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.importanceFraction, unittest.equals(42.0)); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1CropHint--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1CropHint> buildUnnamed3076() { |
| var o = <api.GoogleCloudVisionV1p3beta1CropHint>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1CropHint()); |
| o.add(buildGoogleCloudVisionV1p3beta1CropHint()); |
| return o; |
| } |
| |
| void checkUnnamed3076(core.List<api.GoogleCloudVisionV1p3beta1CropHint> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1CropHint(o[0]); |
| checkGoogleCloudVisionV1p3beta1CropHint(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation = 0; |
| api.GoogleCloudVisionV1p3beta1CropHintsAnnotation |
| buildGoogleCloudVisionV1p3beta1CropHintsAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1CropHintsAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation < 3) { |
| o.cropHints = buildUnnamed3076(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1CropHintsAnnotation( |
| api.GoogleCloudVisionV1p3beta1CropHintsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation < 3) { |
| checkUnnamed3076(o.cropHints); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ColorInfo> buildUnnamed3077() { |
| var o = <api.GoogleCloudVisionV1p3beta1ColorInfo>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ColorInfo()); |
| o.add(buildGoogleCloudVisionV1p3beta1ColorInfo()); |
| return o; |
| } |
| |
| void checkUnnamed3077(core.List<api.GoogleCloudVisionV1p3beta1ColorInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ColorInfo(o[0]); |
| checkGoogleCloudVisionV1p3beta1ColorInfo(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation = 0; |
| api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation |
| buildGoogleCloudVisionV1p3beta1DominantColorsAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation < 3) { |
| o.colors = buildUnnamed3077(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1DominantColorsAnnotation( |
| api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation < 3) { |
| checkUnnamed3077(o.colors); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1LocationInfo> buildUnnamed3078() { |
| var o = <api.GoogleCloudVisionV1p3beta1LocationInfo>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1LocationInfo()); |
| o.add(buildGoogleCloudVisionV1p3beta1LocationInfo()); |
| return o; |
| } |
| |
| void checkUnnamed3078(core.List<api.GoogleCloudVisionV1p3beta1LocationInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1LocationInfo(o[0]); |
| checkGoogleCloudVisionV1p3beta1LocationInfo(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Property> buildUnnamed3079() { |
| var o = <api.GoogleCloudVisionV1p3beta1Property>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Property()); |
| o.add(buildGoogleCloudVisionV1p3beta1Property()); |
| return o; |
| } |
| |
| void checkUnnamed3079(core.List<api.GoogleCloudVisionV1p3beta1Property> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Property(o[0]); |
| checkGoogleCloudVisionV1p3beta1Property(o[1]); |
| } |
| |
| 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 = buildUnnamed3078(); |
| o.mid = 'foo'; |
| o.properties = buildUnnamed3079(); |
| o.score = 42.0; |
| o.topicality = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1EntityAnnotation( |
| api.GoogleCloudVisionV1p3beta1EntityAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation < 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly(o.boundingPoly); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.description, unittest.equals('foo')); |
| unittest.expect(o.locale, unittest.equals('foo')); |
| checkUnnamed3078(o.locations); |
| unittest.expect(o.mid, unittest.equals('foo')); |
| checkUnnamed3079(o.properties); |
| unittest.expect(o.score, unittest.equals(42.0)); |
| unittest.expect(o.topicality, unittest.equals(42.0)); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark> |
| buildUnnamed3080() { |
| var o = <api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotationLandmark()); |
| o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotationLandmark()); |
| return o; |
| } |
| |
| void checkUnnamed3080( |
| core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotationLandmark(o[0]); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotationLandmark(o[1]); |
| } |
| |
| 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 = buildUnnamed3080(); |
| 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); |
| unittest.expect(o.detectionConfidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p3beta1BoundingPoly(o.fdBoundingPoly); |
| unittest.expect(o.headwearLikelihood, unittest.equals('foo')); |
| unittest.expect(o.joyLikelihood, unittest.equals('foo')); |
| unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); |
| checkUnnamed3080(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); |
| 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); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ImageProperties--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ReferenceImage> buildUnnamed3081() { |
| var o = <api.GoogleCloudVisionV1p3beta1ReferenceImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ReferenceImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1ReferenceImage()); |
| return o; |
| } |
| |
| void checkUnnamed3081( |
| core.List<api.GoogleCloudVisionV1p3beta1ReferenceImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ReferenceImage(o[0]); |
| checkGoogleCloudVisionV1p3beta1ReferenceImage(o[1]); |
| } |
| |
| core.List<api.Status> buildUnnamed3082() { |
| var o = <api.Status>[]; |
| o.add(buildStatus()); |
| o.add(buildStatus()); |
| return o; |
| } |
| |
| void checkUnnamed3082(core.List<api.Status> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkStatus(o[0]); |
| checkStatus(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse = 0; |
| api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse |
| buildGoogleCloudVisionV1p3beta1ImportProductSetsResponse() { |
| var o = api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse(); |
| buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse < 3) { |
| o.referenceImages = buildUnnamed3081(); |
| o.statuses = buildUnnamed3082(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ImportProductSetsResponse( |
| api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse o) { |
| buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse < 3) { |
| checkUnnamed3081(o.referenceImages); |
| checkUnnamed3082(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); |
| 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); |
| 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); |
| } |
| 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); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1OutputConfig--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Block> buildUnnamed3083() { |
| var o = <api.GoogleCloudVisionV1p3beta1Block>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Block()); |
| o.add(buildGoogleCloudVisionV1p3beta1Block()); |
| return o; |
| } |
| |
| void checkUnnamed3083(core.List<api.GoogleCloudVisionV1p3beta1Block> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Block(o[0]); |
| checkGoogleCloudVisionV1p3beta1Block(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1Page = 0; |
| api.GoogleCloudVisionV1p3beta1Page buildGoogleCloudVisionV1p3beta1Page() { |
| var o = api.GoogleCloudVisionV1p3beta1Page(); |
| buildCounterGoogleCloudVisionV1p3beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Page < 3) { |
| o.blocks = buildUnnamed3083(); |
| 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) { |
| checkUnnamed3083(o.blocks); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.height, unittest.equals(42)); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property); |
| unittest.expect(o.width, unittest.equals(42)); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Page--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Word> buildUnnamed3084() { |
| var o = <api.GoogleCloudVisionV1p3beta1Word>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Word()); |
| o.add(buildGoogleCloudVisionV1p3beta1Word()); |
| return o; |
| } |
| |
| void checkUnnamed3084(core.List<api.GoogleCloudVisionV1p3beta1Word> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Word(o[0]); |
| checkGoogleCloudVisionV1p3beta1Word(o[1]); |
| } |
| |
| 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 = buildUnnamed3084(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Paragraph--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Paragraph( |
| api.GoogleCloudVisionV1p3beta1Paragraph o) { |
| buildCounterGoogleCloudVisionV1p3beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Paragraph < 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly(o.boundingBox); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property); |
| checkUnnamed3084(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> buildUnnamed3085() { |
| var o = <api.GoogleCloudVisionV1p3beta1ProductKeyValue>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ProductKeyValue()); |
| o.add(buildGoogleCloudVisionV1p3beta1ProductKeyValue()); |
| return o; |
| } |
| |
| void checkUnnamed3085( |
| core.List<api.GoogleCloudVisionV1p3beta1ProductKeyValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ProductKeyValue(o[0]); |
| checkGoogleCloudVisionV1p3beta1ProductKeyValue(o[1]); |
| } |
| |
| 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 = buildUnnamed3085(); |
| } |
| 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')); |
| checkUnnamed3085(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> |
| buildUnnamed3086() { |
| var o = <api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult()); |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult()); |
| return o; |
| } |
| |
| void checkUnnamed3086( |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult(o[0]); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult> |
| buildUnnamed3087() { |
| var o = <api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed3087( |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult(o[0]); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults = 0; |
| api.GoogleCloudVisionV1p3beta1ProductSearchResults |
| buildGoogleCloudVisionV1p3beta1ProductSearchResults() { |
| var o = api.GoogleCloudVisionV1p3beta1ProductSearchResults(); |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults < 3) { |
| o.indexTime = 'foo'; |
| o.productGroupedResults = buildUnnamed3086(); |
| o.results = buildUnnamed3087(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ProductSearchResults( |
| api.GoogleCloudVisionV1p3beta1ProductSearchResults o) { |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults < 3) { |
| unittest.expect(o.indexTime, unittest.equals('foo')); |
| checkUnnamed3086(o.productGroupedResults); |
| checkUnnamed3087(o.results); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation> |
| buildUnnamed3088() { |
| var o = |
| <api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3088( |
| core.List< |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation(o[0]); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult> |
| buildUnnamed3089() { |
| var o = <api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed3089( |
| core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult(o[0]); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult(o[1]); |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult = 0; |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult |
| buildGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult() { |
| var o = api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult(); |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult < |
| 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| o.objectAnnotations = buildUnnamed3088(); |
| o.results = buildUnnamed3089(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult( |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult o) { |
| buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult < |
| 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly(o.boundingPoly); |
| checkUnnamed3088(o.objectAnnotations); |
| checkUnnamed3089(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); |
| 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> buildUnnamed3090() { |
| var o = <api.GoogleCloudVisionV1p3beta1BoundingPoly>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1BoundingPoly()); |
| o.add(buildGoogleCloudVisionV1p3beta1BoundingPoly()); |
| return o; |
| } |
| |
| void checkUnnamed3090(core.List<api.GoogleCloudVisionV1p3beta1BoundingPoly> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1BoundingPoly(o[0]); |
| checkGoogleCloudVisionV1p3beta1BoundingPoly(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1ReferenceImage = 0; |
| api.GoogleCloudVisionV1p3beta1ReferenceImage |
| buildGoogleCloudVisionV1p3beta1ReferenceImage() { |
| var o = api.GoogleCloudVisionV1p3beta1ReferenceImage(); |
| buildCounterGoogleCloudVisionV1p3beta1ReferenceImage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ReferenceImage < 3) { |
| o.boundingPolys = buildUnnamed3090(); |
| o.name = 'foo'; |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1ReferenceImage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1ReferenceImage( |
| api.GoogleCloudVisionV1p3beta1ReferenceImage o) { |
| buildCounterGoogleCloudVisionV1p3beta1ReferenceImage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1ReferenceImage < 3) { |
| checkUnnamed3090(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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property); |
| unittest.expect(o.text, unittest.equals('foo')); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Symbol--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Page> buildUnnamed3091() { |
| var o = <api.GoogleCloudVisionV1p3beta1Page>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Page()); |
| o.add(buildGoogleCloudVisionV1p3beta1Page()); |
| return o; |
| } |
| |
| void checkUnnamed3091(core.List<api.GoogleCloudVisionV1p3beta1Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Page(o[0]); |
| checkGoogleCloudVisionV1p3beta1Page(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1TextAnnotation = 0; |
| api.GoogleCloudVisionV1p3beta1TextAnnotation |
| buildGoogleCloudVisionV1p3beta1TextAnnotation() { |
| var o = api.GoogleCloudVisionV1p3beta1TextAnnotation(); |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotation < 3) { |
| o.pages = buildUnnamed3091(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1TextAnnotation( |
| api.GoogleCloudVisionV1p3beta1TextAnnotation o) { |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotation < 3) { |
| checkUnnamed3091(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> |
| buildUnnamed3092() { |
| var o = <api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage()); |
| o.add(buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage()); |
| return o; |
| } |
| |
| void checkUnnamed3092( |
| core.List<api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage(o[0]); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty = 0; |
| api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty |
| buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty() { |
| var o = api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty < 3) { |
| o.detectedBreak = |
| buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak(); |
| o.detectedLanguages = buildUnnamed3092(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty( |
| api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty o) { |
| buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty < 3) { |
| checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak(o.detectedBreak); |
| checkUnnamed3092(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> |
| buildUnnamed3093() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebLabel()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebLabel()); |
| return o; |
| } |
| |
| void checkUnnamed3093( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebLabel(o[0]); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebLabel(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> |
| buildUnnamed3094() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3094( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebPage> |
| buildUnnamed3095() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebPage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebPage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebPage()); |
| return o; |
| } |
| |
| void checkUnnamed3095( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebPage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebPage(o[0]); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebPage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> |
| buildUnnamed3096() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3096( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> |
| buildUnnamed3097() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3097( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity> |
| buildUnnamed3098() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebEntity()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebEntity()); |
| return o; |
| } |
| |
| void checkUnnamed3098( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebEntity(o[0]); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebEntity(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1WebDetection = 0; |
| api.GoogleCloudVisionV1p3beta1WebDetection |
| buildGoogleCloudVisionV1p3beta1WebDetection() { |
| var o = api.GoogleCloudVisionV1p3beta1WebDetection(); |
| buildCounterGoogleCloudVisionV1p3beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetection < 3) { |
| o.bestGuessLabels = buildUnnamed3093(); |
| o.fullMatchingImages = buildUnnamed3094(); |
| o.pagesWithMatchingImages = buildUnnamed3095(); |
| o.partialMatchingImages = buildUnnamed3096(); |
| o.visuallySimilarImages = buildUnnamed3097(); |
| o.webEntities = buildUnnamed3098(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetection--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1WebDetection( |
| api.GoogleCloudVisionV1p3beta1WebDetection o) { |
| buildCounterGoogleCloudVisionV1p3beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetection < 3) { |
| checkUnnamed3093(o.bestGuessLabels); |
| checkUnnamed3094(o.fullMatchingImages); |
| checkUnnamed3095(o.pagesWithMatchingImages); |
| checkUnnamed3096(o.partialMatchingImages); |
| checkUnnamed3097(o.visuallySimilarImages); |
| checkUnnamed3098(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> |
| buildUnnamed3099() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3099( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> |
| buildUnnamed3100() { |
| var o = <api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3100( |
| core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage = 0; |
| api.GoogleCloudVisionV1p3beta1WebDetectionWebPage |
| buildGoogleCloudVisionV1p3beta1WebDetectionWebPage() { |
| var o = api.GoogleCloudVisionV1p3beta1WebDetectionWebPage(); |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage < 3) { |
| o.fullMatchingImages = buildUnnamed3099(); |
| o.pageTitle = 'foo'; |
| o.partialMatchingImages = buildUnnamed3100(); |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1WebDetectionWebPage( |
| api.GoogleCloudVisionV1p3beta1WebDetectionWebPage o) { |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage < 3) { |
| checkUnnamed3099(o.fullMatchingImages); |
| unittest.expect(o.pageTitle, unittest.equals('foo')); |
| checkUnnamed3100(o.partialMatchingImages); |
| unittest.expect(o.score, unittest.equals(42.0)); |
| unittest.expect(o.url, unittest.equals('foo')); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p3beta1Symbol> buildUnnamed3101() { |
| var o = <api.GoogleCloudVisionV1p3beta1Symbol>[]; |
| o.add(buildGoogleCloudVisionV1p3beta1Symbol()); |
| o.add(buildGoogleCloudVisionV1p3beta1Symbol()); |
| return o; |
| } |
| |
| void checkUnnamed3101(core.List<api.GoogleCloudVisionV1p3beta1Symbol> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p3beta1Symbol(o[0]); |
| checkGoogleCloudVisionV1p3beta1Symbol(o[1]); |
| } |
| |
| 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 = buildUnnamed3101(); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Word--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p3beta1Word(api.GoogleCloudVisionV1p3beta1Word o) { |
| buildCounterGoogleCloudVisionV1p3beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p3beta1Word < 3) { |
| checkGoogleCloudVisionV1p3beta1BoundingPoly(o.boundingBox); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property); |
| checkUnnamed3101(o.symbols); |
| } |
| buildCounterGoogleCloudVisionV1p3beta1Word--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1AnnotateImageResponse> |
| buildUnnamed3102() { |
| var o = <api.GoogleCloudVisionV1p4beta1AnnotateImageResponse>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1AnnotateImageResponse()); |
| o.add(buildGoogleCloudVisionV1p4beta1AnnotateImageResponse()); |
| return o; |
| } |
| |
| void checkUnnamed3102( |
| core.List<api.GoogleCloudVisionV1p4beta1AnnotateImageResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1AnnotateImageResponse(o[0]); |
| checkGoogleCloudVisionV1p4beta1AnnotateImageResponse(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse = 0; |
| api.GoogleCloudVisionV1p4beta1AnnotateFileResponse |
| buildGoogleCloudVisionV1p4beta1AnnotateFileResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1AnnotateFileResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse < 3) { |
| o.error = buildStatus(); |
| o.inputConfig = buildGoogleCloudVisionV1p4beta1InputConfig(); |
| o.responses = buildUnnamed3102(); |
| o.totalPages = 42; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1AnnotateFileResponse( |
| api.GoogleCloudVisionV1p4beta1AnnotateFileResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse < 3) { |
| checkStatus(o.error); |
| checkGoogleCloudVisionV1p4beta1InputConfig(o.inputConfig); |
| checkUnnamed3102(o.responses); |
| unittest.expect(o.totalPages, unittest.equals(42)); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotation> buildUnnamed3103() { |
| var o = <api.GoogleCloudVisionV1p4beta1FaceAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3103( |
| core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotation(o[0]); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> buildUnnamed3104() { |
| var o = <api.GoogleCloudVisionV1p4beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3104( |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> buildUnnamed3105() { |
| var o = <api.GoogleCloudVisionV1p4beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3105( |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation> |
| buildUnnamed3106() { |
| var o = <api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3106( |
| core.List<api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation(o[0]); |
| checkGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> buildUnnamed3107() { |
| var o = <api.GoogleCloudVisionV1p4beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3107( |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> buildUnnamed3108() { |
| var o = <api.GoogleCloudVisionV1p4beta1EntityAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3108( |
| core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[0]); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[1]); |
| } |
| |
| 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 = buildUnnamed3103(); |
| o.fullTextAnnotation = buildGoogleCloudVisionV1p4beta1TextAnnotation(); |
| o.imagePropertiesAnnotation = |
| buildGoogleCloudVisionV1p4beta1ImageProperties(); |
| o.labelAnnotations = buildUnnamed3104(); |
| o.landmarkAnnotations = buildUnnamed3105(); |
| o.localizedObjectAnnotations = buildUnnamed3106(); |
| o.logoAnnotations = buildUnnamed3107(); |
| o.productSearchResults = |
| buildGoogleCloudVisionV1p4beta1ProductSearchResults(); |
| o.safeSearchAnnotation = |
| buildGoogleCloudVisionV1p4beta1SafeSearchAnnotation(); |
| o.textAnnotations = buildUnnamed3108(); |
| o.webDetection = buildGoogleCloudVisionV1p4beta1WebDetection(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1AnnotateImageResponse( |
| api.GoogleCloudVisionV1p4beta1AnnotateImageResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse < 3) { |
| checkGoogleCloudVisionV1p4beta1ImageAnnotationContext(o.context); |
| checkGoogleCloudVisionV1p4beta1CropHintsAnnotation(o.cropHintsAnnotation); |
| checkStatus(o.error); |
| checkUnnamed3103(o.faceAnnotations); |
| checkGoogleCloudVisionV1p4beta1TextAnnotation(o.fullTextAnnotation); |
| checkGoogleCloudVisionV1p4beta1ImageProperties(o.imagePropertiesAnnotation); |
| checkUnnamed3104(o.labelAnnotations); |
| checkUnnamed3105(o.landmarkAnnotations); |
| checkUnnamed3106(o.localizedObjectAnnotations); |
| checkUnnamed3107(o.logoAnnotations); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResults(o.productSearchResults); |
| checkGoogleCloudVisionV1p4beta1SafeSearchAnnotation(o.safeSearchAnnotation); |
| checkUnnamed3108(o.textAnnotations); |
| checkGoogleCloudVisionV1p4beta1WebDetection(o.webDetection); |
| } |
| 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); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse> |
| buildUnnamed3109() { |
| var o = <api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse()); |
| o.add(buildGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed3109( |
| core.List<api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse(o[0]); |
| checkGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse = |
| 0; |
| api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse |
| buildGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| o.responses = buildUnnamed3109(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse( |
| api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse < |
| 3) { |
| checkUnnamed3109(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); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1AnnotateFileResponse> |
| buildUnnamed3110() { |
| var o = <api.GoogleCloudVisionV1p4beta1AnnotateFileResponse>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1AnnotateFileResponse()); |
| o.add(buildGoogleCloudVisionV1p4beta1AnnotateFileResponse()); |
| return o; |
| } |
| |
| void checkUnnamed3110( |
| core.List<api.GoogleCloudVisionV1p4beta1AnnotateFileResponse> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1AnnotateFileResponse(o[0]); |
| checkGoogleCloudVisionV1p4beta1AnnotateFileResponse(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse = 0; |
| api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse |
| buildGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse < 3) { |
| o.responses = buildUnnamed3110(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse( |
| api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse < 3) { |
| checkUnnamed3110(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> buildUnnamed3111() { |
| var o = <api.GoogleCloudVisionV1p4beta1Paragraph>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Paragraph()); |
| o.add(buildGoogleCloudVisionV1p4beta1Paragraph()); |
| return o; |
| } |
| |
| void checkUnnamed3111(core.List<api.GoogleCloudVisionV1p4beta1Paragraph> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Paragraph(o[0]); |
| checkGoogleCloudVisionV1p4beta1Paragraph(o[1]); |
| } |
| |
| 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 = buildUnnamed3111(); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkUnnamed3111(o.paragraphs); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Block--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1NormalizedVertex> buildUnnamed3112() { |
| var o = <api.GoogleCloudVisionV1p4beta1NormalizedVertex>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1NormalizedVertex()); |
| o.add(buildGoogleCloudVisionV1p4beta1NormalizedVertex()); |
| return o; |
| } |
| |
| void checkUnnamed3112( |
| core.List<api.GoogleCloudVisionV1p4beta1NormalizedVertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1NormalizedVertex(o[0]); |
| checkGoogleCloudVisionV1p4beta1NormalizedVertex(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Vertex> buildUnnamed3113() { |
| var o = <api.GoogleCloudVisionV1p4beta1Vertex>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Vertex()); |
| o.add(buildGoogleCloudVisionV1p4beta1Vertex()); |
| return o; |
| } |
| |
| void checkUnnamed3113(core.List<api.GoogleCloudVisionV1p4beta1Vertex> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Vertex(o[0]); |
| checkGoogleCloudVisionV1p4beta1Vertex(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1BoundingPoly = 0; |
| api.GoogleCloudVisionV1p4beta1BoundingPoly |
| buildGoogleCloudVisionV1p4beta1BoundingPoly() { |
| var o = api.GoogleCloudVisionV1p4beta1BoundingPoly(); |
| buildCounterGoogleCloudVisionV1p4beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p4beta1BoundingPoly < 3) { |
| o.normalizedVertices = buildUnnamed3112(); |
| o.vertices = buildUnnamed3113(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1BoundingPoly--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1BoundingPoly( |
| api.GoogleCloudVisionV1p4beta1BoundingPoly o) { |
| buildCounterGoogleCloudVisionV1p4beta1BoundingPoly++; |
| if (buildCounterGoogleCloudVisionV1p4beta1BoundingPoly < 3) { |
| checkUnnamed3112(o.normalizedVertices); |
| checkUnnamed3113(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); |
| 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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.importanceFraction, unittest.equals(42.0)); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1CropHint--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1CropHint> buildUnnamed3114() { |
| var o = <api.GoogleCloudVisionV1p4beta1CropHint>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1CropHint()); |
| o.add(buildGoogleCloudVisionV1p4beta1CropHint()); |
| return o; |
| } |
| |
| void checkUnnamed3114(core.List<api.GoogleCloudVisionV1p4beta1CropHint> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1CropHint(o[0]); |
| checkGoogleCloudVisionV1p4beta1CropHint(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation = 0; |
| api.GoogleCloudVisionV1p4beta1CropHintsAnnotation |
| buildGoogleCloudVisionV1p4beta1CropHintsAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1CropHintsAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation < 3) { |
| o.cropHints = buildUnnamed3114(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1CropHintsAnnotation( |
| api.GoogleCloudVisionV1p4beta1CropHintsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation < 3) { |
| checkUnnamed3114(o.cropHints); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ColorInfo> buildUnnamed3115() { |
| var o = <api.GoogleCloudVisionV1p4beta1ColorInfo>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ColorInfo()); |
| o.add(buildGoogleCloudVisionV1p4beta1ColorInfo()); |
| return o; |
| } |
| |
| void checkUnnamed3115(core.List<api.GoogleCloudVisionV1p4beta1ColorInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ColorInfo(o[0]); |
| checkGoogleCloudVisionV1p4beta1ColorInfo(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation = 0; |
| api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation |
| buildGoogleCloudVisionV1p4beta1DominantColorsAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation < 3) { |
| o.colors = buildUnnamed3115(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1DominantColorsAnnotation( |
| api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation < 3) { |
| checkUnnamed3115(o.colors); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1LocationInfo> buildUnnamed3116() { |
| var o = <api.GoogleCloudVisionV1p4beta1LocationInfo>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1LocationInfo()); |
| o.add(buildGoogleCloudVisionV1p4beta1LocationInfo()); |
| return o; |
| } |
| |
| void checkUnnamed3116(core.List<api.GoogleCloudVisionV1p4beta1LocationInfo> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1LocationInfo(o[0]); |
| checkGoogleCloudVisionV1p4beta1LocationInfo(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Property> buildUnnamed3117() { |
| var o = <api.GoogleCloudVisionV1p4beta1Property>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Property()); |
| o.add(buildGoogleCloudVisionV1p4beta1Property()); |
| return o; |
| } |
| |
| void checkUnnamed3117(core.List<api.GoogleCloudVisionV1p4beta1Property> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Property(o[0]); |
| checkGoogleCloudVisionV1p4beta1Property(o[1]); |
| } |
| |
| 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 = buildUnnamed3116(); |
| o.mid = 'foo'; |
| o.properties = buildUnnamed3117(); |
| o.score = 42.0; |
| o.topicality = 42.0; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1EntityAnnotation( |
| api.GoogleCloudVisionV1p4beta1EntityAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation < 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly(o.boundingPoly); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.description, unittest.equals('foo')); |
| unittest.expect(o.locale, unittest.equals('foo')); |
| checkUnnamed3116(o.locations); |
| unittest.expect(o.mid, unittest.equals('foo')); |
| checkUnnamed3117(o.properties); |
| unittest.expect(o.score, unittest.equals(42.0)); |
| unittest.expect(o.topicality, unittest.equals(42.0)); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark> |
| buildUnnamed3118() { |
| var o = <api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotationLandmark()); |
| o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotationLandmark()); |
| return o; |
| } |
| |
| void checkUnnamed3118( |
| core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotationLandmark(o[0]); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotationLandmark(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1FaceRecognitionResult> |
| buildUnnamed3119() { |
| var o = <api.GoogleCloudVisionV1p4beta1FaceRecognitionResult>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1FaceRecognitionResult()); |
| o.add(buildGoogleCloudVisionV1p4beta1FaceRecognitionResult()); |
| return o; |
| } |
| |
| void checkUnnamed3119( |
| core.List<api.GoogleCloudVisionV1p4beta1FaceRecognitionResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1FaceRecognitionResult(o[0]); |
| checkGoogleCloudVisionV1p4beta1FaceRecognitionResult(o[1]); |
| } |
| |
| 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 = buildUnnamed3118(); |
| o.panAngle = 42.0; |
| o.recognitionResult = buildUnnamed3119(); |
| 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); |
| unittest.expect(o.detectionConfidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p4beta1BoundingPoly(o.fdBoundingPoly); |
| unittest.expect(o.headwearLikelihood, unittest.equals('foo')); |
| unittest.expect(o.joyLikelihood, unittest.equals('foo')); |
| unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); |
| checkUnnamed3118(o.landmarks); |
| unittest.expect(o.panAngle, unittest.equals(42.0)); |
| checkUnnamed3119(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); |
| 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); |
| 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); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ImageProperties--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ReferenceImage> buildUnnamed3120() { |
| var o = <api.GoogleCloudVisionV1p4beta1ReferenceImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ReferenceImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1ReferenceImage()); |
| return o; |
| } |
| |
| void checkUnnamed3120( |
| core.List<api.GoogleCloudVisionV1p4beta1ReferenceImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ReferenceImage(o[0]); |
| checkGoogleCloudVisionV1p4beta1ReferenceImage(o[1]); |
| } |
| |
| core.List<api.Status> buildUnnamed3121() { |
| var o = <api.Status>[]; |
| o.add(buildStatus()); |
| o.add(buildStatus()); |
| return o; |
| } |
| |
| void checkUnnamed3121(core.List<api.Status> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkStatus(o[0]); |
| checkStatus(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse = 0; |
| api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse |
| buildGoogleCloudVisionV1p4beta1ImportProductSetsResponse() { |
| var o = api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse(); |
| buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse < 3) { |
| o.referenceImages = buildUnnamed3120(); |
| o.statuses = buildUnnamed3121(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ImportProductSetsResponse( |
| api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse o) { |
| buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse < 3) { |
| checkUnnamed3120(o.referenceImages); |
| checkUnnamed3121(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); |
| 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); |
| 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); |
| } |
| 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); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1OutputConfig--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Block> buildUnnamed3122() { |
| var o = <api.GoogleCloudVisionV1p4beta1Block>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Block()); |
| o.add(buildGoogleCloudVisionV1p4beta1Block()); |
| return o; |
| } |
| |
| void checkUnnamed3122(core.List<api.GoogleCloudVisionV1p4beta1Block> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Block(o[0]); |
| checkGoogleCloudVisionV1p4beta1Block(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1Page = 0; |
| api.GoogleCloudVisionV1p4beta1Page buildGoogleCloudVisionV1p4beta1Page() { |
| var o = api.GoogleCloudVisionV1p4beta1Page(); |
| buildCounterGoogleCloudVisionV1p4beta1Page++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Page < 3) { |
| o.blocks = buildUnnamed3122(); |
| 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) { |
| checkUnnamed3122(o.blocks); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.height, unittest.equals(42)); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property); |
| unittest.expect(o.width, unittest.equals(42)); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Page--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Word> buildUnnamed3123() { |
| var o = <api.GoogleCloudVisionV1p4beta1Word>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Word()); |
| o.add(buildGoogleCloudVisionV1p4beta1Word()); |
| return o; |
| } |
| |
| void checkUnnamed3123(core.List<api.GoogleCloudVisionV1p4beta1Word> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Word(o[0]); |
| checkGoogleCloudVisionV1p4beta1Word(o[1]); |
| } |
| |
| 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 = buildUnnamed3123(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Paragraph--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Paragraph( |
| api.GoogleCloudVisionV1p4beta1Paragraph o) { |
| buildCounterGoogleCloudVisionV1p4beta1Paragraph++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Paragraph < 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly(o.boundingBox); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property); |
| checkUnnamed3123(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> buildUnnamed3124() { |
| var o = <api.GoogleCloudVisionV1p4beta1ProductKeyValue>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ProductKeyValue()); |
| o.add(buildGoogleCloudVisionV1p4beta1ProductKeyValue()); |
| return o; |
| } |
| |
| void checkUnnamed3124( |
| core.List<api.GoogleCloudVisionV1p4beta1ProductKeyValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ProductKeyValue(o[0]); |
| checkGoogleCloudVisionV1p4beta1ProductKeyValue(o[1]); |
| } |
| |
| 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 = buildUnnamed3124(); |
| } |
| 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')); |
| checkUnnamed3124(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> |
| buildUnnamed3125() { |
| var o = <api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult()); |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult()); |
| return o; |
| } |
| |
| void checkUnnamed3125( |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult(o[0]); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult> |
| buildUnnamed3126() { |
| var o = <api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed3126( |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult(o[0]); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults = 0; |
| api.GoogleCloudVisionV1p4beta1ProductSearchResults |
| buildGoogleCloudVisionV1p4beta1ProductSearchResults() { |
| var o = api.GoogleCloudVisionV1p4beta1ProductSearchResults(); |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults < 3) { |
| o.indexTime = 'foo'; |
| o.productGroupedResults = buildUnnamed3125(); |
| o.results = buildUnnamed3126(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ProductSearchResults( |
| api.GoogleCloudVisionV1p4beta1ProductSearchResults o) { |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults < 3) { |
| unittest.expect(o.indexTime, unittest.equals('foo')); |
| checkUnnamed3125(o.productGroupedResults); |
| checkUnnamed3126(o.results); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation> |
| buildUnnamed3127() { |
| var o = |
| <api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation()); |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3127( |
| core.List< |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation(o[0]); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult> |
| buildUnnamed3128() { |
| var o = <api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult()); |
| o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult()); |
| return o; |
| } |
| |
| void checkUnnamed3128( |
| core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult(o[0]); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult(o[1]); |
| } |
| |
| core.int |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult = 0; |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult |
| buildGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult() { |
| var o = api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult(); |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult < |
| 3) { |
| o.boundingPoly = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| o.objectAnnotations = buildUnnamed3127(); |
| o.results = buildUnnamed3128(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult( |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult o) { |
| buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult < |
| 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly(o.boundingPoly); |
| checkUnnamed3127(o.objectAnnotations); |
| checkUnnamed3128(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); |
| 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> buildUnnamed3129() { |
| var o = <api.GoogleCloudVisionV1p4beta1BoundingPoly>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1BoundingPoly()); |
| o.add(buildGoogleCloudVisionV1p4beta1BoundingPoly()); |
| return o; |
| } |
| |
| void checkUnnamed3129(core.List<api.GoogleCloudVisionV1p4beta1BoundingPoly> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1BoundingPoly(o[0]); |
| checkGoogleCloudVisionV1p4beta1BoundingPoly(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1ReferenceImage = 0; |
| api.GoogleCloudVisionV1p4beta1ReferenceImage |
| buildGoogleCloudVisionV1p4beta1ReferenceImage() { |
| var o = api.GoogleCloudVisionV1p4beta1ReferenceImage(); |
| buildCounterGoogleCloudVisionV1p4beta1ReferenceImage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ReferenceImage < 3) { |
| o.boundingPolys = buildUnnamed3129(); |
| o.name = 'foo'; |
| o.uri = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1ReferenceImage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1ReferenceImage( |
| api.GoogleCloudVisionV1p4beta1ReferenceImage o) { |
| buildCounterGoogleCloudVisionV1p4beta1ReferenceImage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1ReferenceImage < 3) { |
| checkUnnamed3129(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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property); |
| unittest.expect(o.text, unittest.equals('foo')); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Symbol--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Page> buildUnnamed3130() { |
| var o = <api.GoogleCloudVisionV1p4beta1Page>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Page()); |
| o.add(buildGoogleCloudVisionV1p4beta1Page()); |
| return o; |
| } |
| |
| void checkUnnamed3130(core.List<api.GoogleCloudVisionV1p4beta1Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Page(o[0]); |
| checkGoogleCloudVisionV1p4beta1Page(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1TextAnnotation = 0; |
| api.GoogleCloudVisionV1p4beta1TextAnnotation |
| buildGoogleCloudVisionV1p4beta1TextAnnotation() { |
| var o = api.GoogleCloudVisionV1p4beta1TextAnnotation(); |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotation < 3) { |
| o.pages = buildUnnamed3130(); |
| o.text = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotation--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1TextAnnotation( |
| api.GoogleCloudVisionV1p4beta1TextAnnotation o) { |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotation++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotation < 3) { |
| checkUnnamed3130(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> |
| buildUnnamed3131() { |
| var o = <api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage()); |
| o.add(buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage()); |
| return o; |
| } |
| |
| void checkUnnamed3131( |
| core.List<api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage(o[0]); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty = 0; |
| api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty |
| buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty() { |
| var o = api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty < 3) { |
| o.detectedBreak = |
| buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak(); |
| o.detectedLanguages = buildUnnamed3131(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty( |
| api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty o) { |
| buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty++; |
| if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty < 3) { |
| checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak(o.detectedBreak); |
| checkUnnamed3131(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> |
| buildUnnamed3132() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebLabel()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebLabel()); |
| return o; |
| } |
| |
| void checkUnnamed3132( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebLabel(o[0]); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebLabel(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> |
| buildUnnamed3133() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3133( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebPage> |
| buildUnnamed3134() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebPage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebPage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebPage()); |
| return o; |
| } |
| |
| void checkUnnamed3134( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebPage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebPage(o[0]); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebPage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> |
| buildUnnamed3135() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3135( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> |
| buildUnnamed3136() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3136( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity> |
| buildUnnamed3137() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebEntity()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebEntity()); |
| return o; |
| } |
| |
| void checkUnnamed3137( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebEntity(o[0]); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebEntity(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1WebDetection = 0; |
| api.GoogleCloudVisionV1p4beta1WebDetection |
| buildGoogleCloudVisionV1p4beta1WebDetection() { |
| var o = api.GoogleCloudVisionV1p4beta1WebDetection(); |
| buildCounterGoogleCloudVisionV1p4beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetection < 3) { |
| o.bestGuessLabels = buildUnnamed3132(); |
| o.fullMatchingImages = buildUnnamed3133(); |
| o.pagesWithMatchingImages = buildUnnamed3134(); |
| o.partialMatchingImages = buildUnnamed3135(); |
| o.visuallySimilarImages = buildUnnamed3136(); |
| o.webEntities = buildUnnamed3137(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetection--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1WebDetection( |
| api.GoogleCloudVisionV1p4beta1WebDetection o) { |
| buildCounterGoogleCloudVisionV1p4beta1WebDetection++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetection < 3) { |
| checkUnnamed3132(o.bestGuessLabels); |
| checkUnnamed3133(o.fullMatchingImages); |
| checkUnnamed3134(o.pagesWithMatchingImages); |
| checkUnnamed3135(o.partialMatchingImages); |
| checkUnnamed3136(o.visuallySimilarImages); |
| checkUnnamed3137(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> |
| buildUnnamed3138() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3138( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> |
| buildUnnamed3139() { |
| var o = <api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3139( |
| core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[0]); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[1]); |
| } |
| |
| core.int buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage = 0; |
| api.GoogleCloudVisionV1p4beta1WebDetectionWebPage |
| buildGoogleCloudVisionV1p4beta1WebDetectionWebPage() { |
| var o = api.GoogleCloudVisionV1p4beta1WebDetectionWebPage(); |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage < 3) { |
| o.fullMatchingImages = buildUnnamed3138(); |
| o.pageTitle = 'foo'; |
| o.partialMatchingImages = buildUnnamed3139(); |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1WebDetectionWebPage( |
| api.GoogleCloudVisionV1p4beta1WebDetectionWebPage o) { |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage++; |
| if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage < 3) { |
| checkUnnamed3138(o.fullMatchingImages); |
| unittest.expect(o.pageTitle, unittest.equals('foo')); |
| checkUnnamed3139(o.partialMatchingImages); |
| unittest.expect(o.score, unittest.equals(42.0)); |
| unittest.expect(o.url, unittest.equals('foo')); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage--; |
| } |
| |
| core.List<api.GoogleCloudVisionV1p4beta1Symbol> buildUnnamed3140() { |
| var o = <api.GoogleCloudVisionV1p4beta1Symbol>[]; |
| o.add(buildGoogleCloudVisionV1p4beta1Symbol()); |
| o.add(buildGoogleCloudVisionV1p4beta1Symbol()); |
| return o; |
| } |
| |
| void checkUnnamed3140(core.List<api.GoogleCloudVisionV1p4beta1Symbol> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleCloudVisionV1p4beta1Symbol(o[0]); |
| checkGoogleCloudVisionV1p4beta1Symbol(o[1]); |
| } |
| |
| 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 = buildUnnamed3140(); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Word--; |
| return o; |
| } |
| |
| void checkGoogleCloudVisionV1p4beta1Word(api.GoogleCloudVisionV1p4beta1Word o) { |
| buildCounterGoogleCloudVisionV1p4beta1Word++; |
| if (buildCounterGoogleCloudVisionV1p4beta1Word < 3) { |
| checkGoogleCloudVisionV1p4beta1BoundingPoly(o.boundingBox); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property); |
| checkUnnamed3140(o.symbols); |
| } |
| buildCounterGoogleCloudVisionV1p4beta1Word--; |
| } |
| |
| core.List<api.ObjectAnnotation> buildUnnamed3141() { |
| var o = <api.ObjectAnnotation>[]; |
| o.add(buildObjectAnnotation()); |
| o.add(buildObjectAnnotation()); |
| return o; |
| } |
| |
| void checkUnnamed3141(core.List<api.ObjectAnnotation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkObjectAnnotation(o[0]); |
| checkObjectAnnotation(o[1]); |
| } |
| |
| core.List<api.Result> buildUnnamed3142() { |
| var o = <api.Result>[]; |
| o.add(buildResult()); |
| o.add(buildResult()); |
| return o; |
| } |
| |
| void checkUnnamed3142(core.List<api.Result> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkResult(o[0]); |
| checkResult(o[1]); |
| } |
| |
| core.int buildCounterGroupedResult = 0; |
| api.GroupedResult buildGroupedResult() { |
| var o = api.GroupedResult(); |
| buildCounterGroupedResult++; |
| if (buildCounterGroupedResult < 3) { |
| o.boundingPoly = buildBoundingPoly(); |
| o.objectAnnotations = buildUnnamed3141(); |
| o.results = buildUnnamed3142(); |
| } |
| buildCounterGroupedResult--; |
| return o; |
| } |
| |
| void checkGroupedResult(api.GroupedResult o) { |
| buildCounterGroupedResult++; |
| if (buildCounterGroupedResult < 3) { |
| checkBoundingPoly(o.boundingPoly); |
| checkUnnamed3141(o.objectAnnotations); |
| checkUnnamed3142(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); |
| } |
| 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> buildUnnamed3143() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed3143(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 = buildUnnamed3143(); |
| o.latLongRect = buildLatLongRect(); |
| o.productSearchParams = buildProductSearchParams(); |
| o.webDetectionParams = buildWebDetectionParams(); |
| } |
| buildCounterImageContext--; |
| return o; |
| } |
| |
| void checkImageContext(api.ImageContext o) { |
| buildCounterImageContext++; |
| if (buildCounterImageContext < 3) { |
| checkCropHintsParams(o.cropHintsParams); |
| checkUnnamed3143(o.languageHints); |
| checkLatLongRect(o.latLongRect); |
| checkProductSearchParams(o.productSearchParams); |
| checkWebDetectionParams(o.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); |
| } |
| 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); |
| } |
| 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); |
| } |
| buildCounterImportProductSetsRequest--; |
| } |
| |
| core.List<api.ReferenceImage> buildUnnamed3144() { |
| var o = <api.ReferenceImage>[]; |
| o.add(buildReferenceImage()); |
| o.add(buildReferenceImage()); |
| return o; |
| } |
| |
| void checkUnnamed3144(core.List<api.ReferenceImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkReferenceImage(o[0]); |
| checkReferenceImage(o[1]); |
| } |
| |
| core.List<api.Status> buildUnnamed3145() { |
| var o = <api.Status>[]; |
| o.add(buildStatus()); |
| o.add(buildStatus()); |
| return o; |
| } |
| |
| void checkUnnamed3145(core.List<api.Status> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkStatus(o[0]); |
| checkStatus(o[1]); |
| } |
| |
| core.int buildCounterImportProductSetsResponse = 0; |
| api.ImportProductSetsResponse buildImportProductSetsResponse() { |
| var o = api.ImportProductSetsResponse(); |
| buildCounterImportProductSetsResponse++; |
| if (buildCounterImportProductSetsResponse < 3) { |
| o.referenceImages = buildUnnamed3144(); |
| o.statuses = buildUnnamed3145(); |
| } |
| buildCounterImportProductSetsResponse--; |
| return o; |
| } |
| |
| void checkImportProductSetsResponse(api.ImportProductSetsResponse o) { |
| buildCounterImportProductSetsResponse++; |
| if (buildCounterImportProductSetsResponse < 3) { |
| checkUnnamed3144(o.referenceImages); |
| checkUnnamed3145(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); |
| 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); |
| 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); |
| checkLatLng(o.minLatLng); |
| } |
| buildCounterLatLongRect--; |
| } |
| |
| core.List<api.Operation> buildUnnamed3146() { |
| var o = <api.Operation>[]; |
| o.add(buildOperation()); |
| o.add(buildOperation()); |
| return o; |
| } |
| |
| void checkUnnamed3146(core.List<api.Operation> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkOperation(o[0]); |
| checkOperation(o[1]); |
| } |
| |
| core.int buildCounterListOperationsResponse = 0; |
| api.ListOperationsResponse buildListOperationsResponse() { |
| var o = api.ListOperationsResponse(); |
| buildCounterListOperationsResponse++; |
| if (buildCounterListOperationsResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.operations = buildUnnamed3146(); |
| } |
| buildCounterListOperationsResponse--; |
| return o; |
| } |
| |
| void checkListOperationsResponse(api.ListOperationsResponse o) { |
| buildCounterListOperationsResponse++; |
| if (buildCounterListOperationsResponse < 3) { |
| unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| checkUnnamed3146(o.operations); |
| } |
| buildCounterListOperationsResponse--; |
| } |
| |
| core.List<api.ProductSet> buildUnnamed3147() { |
| var o = <api.ProductSet>[]; |
| o.add(buildProductSet()); |
| o.add(buildProductSet()); |
| return o; |
| } |
| |
| void checkUnnamed3147(core.List<api.ProductSet> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkProductSet(o[0]); |
| checkProductSet(o[1]); |
| } |
| |
| core.int buildCounterListProductSetsResponse = 0; |
| api.ListProductSetsResponse buildListProductSetsResponse() { |
| var o = api.ListProductSetsResponse(); |
| buildCounterListProductSetsResponse++; |
| if (buildCounterListProductSetsResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.productSets = buildUnnamed3147(); |
| } |
| buildCounterListProductSetsResponse--; |
| return o; |
| } |
| |
| void checkListProductSetsResponse(api.ListProductSetsResponse o) { |
| buildCounterListProductSetsResponse++; |
| if (buildCounterListProductSetsResponse < 3) { |
| unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| checkUnnamed3147(o.productSets); |
| } |
| buildCounterListProductSetsResponse--; |
| } |
| |
| core.List<api.Product> buildUnnamed3148() { |
| var o = <api.Product>[]; |
| o.add(buildProduct()); |
| o.add(buildProduct()); |
| return o; |
| } |
| |
| void checkUnnamed3148(core.List<api.Product> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkProduct(o[0]); |
| checkProduct(o[1]); |
| } |
| |
| core.int buildCounterListProductsInProductSetResponse = 0; |
| api.ListProductsInProductSetResponse buildListProductsInProductSetResponse() { |
| var o = api.ListProductsInProductSetResponse(); |
| buildCounterListProductsInProductSetResponse++; |
| if (buildCounterListProductsInProductSetResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.products = buildUnnamed3148(); |
| } |
| buildCounterListProductsInProductSetResponse--; |
| return o; |
| } |
| |
| void checkListProductsInProductSetResponse( |
| api.ListProductsInProductSetResponse o) { |
| buildCounterListProductsInProductSetResponse++; |
| if (buildCounterListProductsInProductSetResponse < 3) { |
| unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| checkUnnamed3148(o.products); |
| } |
| buildCounterListProductsInProductSetResponse--; |
| } |
| |
| core.List<api.Product> buildUnnamed3149() { |
| var o = <api.Product>[]; |
| o.add(buildProduct()); |
| o.add(buildProduct()); |
| return o; |
| } |
| |
| void checkUnnamed3149(core.List<api.Product> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkProduct(o[0]); |
| checkProduct(o[1]); |
| } |
| |
| core.int buildCounterListProductsResponse = 0; |
| api.ListProductsResponse buildListProductsResponse() { |
| var o = api.ListProductsResponse(); |
| buildCounterListProductsResponse++; |
| if (buildCounterListProductsResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.products = buildUnnamed3149(); |
| } |
| buildCounterListProductsResponse--; |
| return o; |
| } |
| |
| void checkListProductsResponse(api.ListProductsResponse o) { |
| buildCounterListProductsResponse++; |
| if (buildCounterListProductsResponse < 3) { |
| unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| checkUnnamed3149(o.products); |
| } |
| buildCounterListProductsResponse--; |
| } |
| |
| core.List<api.ReferenceImage> buildUnnamed3150() { |
| var o = <api.ReferenceImage>[]; |
| o.add(buildReferenceImage()); |
| o.add(buildReferenceImage()); |
| return o; |
| } |
| |
| void checkUnnamed3150(core.List<api.ReferenceImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkReferenceImage(o[0]); |
| checkReferenceImage(o[1]); |
| } |
| |
| core.int buildCounterListReferenceImagesResponse = 0; |
| api.ListReferenceImagesResponse buildListReferenceImagesResponse() { |
| var o = api.ListReferenceImagesResponse(); |
| buildCounterListReferenceImagesResponse++; |
| if (buildCounterListReferenceImagesResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.pageSize = 42; |
| o.referenceImages = buildUnnamed3150(); |
| } |
| 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)); |
| checkUnnamed3150(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); |
| 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); |
| } |
| 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> buildUnnamed3151() { |
| 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 checkUnnamed3151(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> buildUnnamed3152() { |
| 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 checkUnnamed3152(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 = buildUnnamed3151(); |
| o.name = 'foo'; |
| o.response = buildUnnamed3152(); |
| } |
| buildCounterOperation--; |
| return o; |
| } |
| |
| void checkOperation(api.Operation o) { |
| buildCounterOperation++; |
| if (buildCounterOperation < 3) { |
| unittest.expect(o.done, unittest.isTrue); |
| checkStatus(o.error); |
| checkUnnamed3151(o.metadata); |
| unittest.expect(o.name, unittest.equals('foo')); |
| checkUnnamed3152(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); |
| } |
| buildCounterOutputConfig--; |
| } |
| |
| core.List<api.Block> buildUnnamed3153() { |
| var o = <api.Block>[]; |
| o.add(buildBlock()); |
| o.add(buildBlock()); |
| return o; |
| } |
| |
| void checkUnnamed3153(core.List<api.Block> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkBlock(o[0]); |
| checkBlock(o[1]); |
| } |
| |
| core.int buildCounterPage = 0; |
| api.Page buildPage() { |
| var o = api.Page(); |
| buildCounterPage++; |
| if (buildCounterPage < 3) { |
| o.blocks = buildUnnamed3153(); |
| 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) { |
| checkUnnamed3153(o.blocks); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| unittest.expect(o.height, unittest.equals(42)); |
| checkTextProperty(o.property); |
| unittest.expect(o.width, unittest.equals(42)); |
| } |
| buildCounterPage--; |
| } |
| |
| core.List<api.Word> buildUnnamed3154() { |
| var o = <api.Word>[]; |
| o.add(buildWord()); |
| o.add(buildWord()); |
| return o; |
| } |
| |
| void checkUnnamed3154(core.List<api.Word> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWord(o[0]); |
| checkWord(o[1]); |
| } |
| |
| 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 = buildUnnamed3154(); |
| } |
| buildCounterParagraph--; |
| return o; |
| } |
| |
| void checkParagraph(api.Paragraph o) { |
| buildCounterParagraph++; |
| if (buildCounterParagraph < 3) { |
| checkBoundingPoly(o.boundingBox); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkTextProperty(o.property); |
| checkUnnamed3154(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> buildUnnamed3155() { |
| var o = <api.KeyValue>[]; |
| o.add(buildKeyValue()); |
| o.add(buildKeyValue()); |
| return o; |
| } |
| |
| void checkUnnamed3155(core.List<api.KeyValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkKeyValue(o[0]); |
| checkKeyValue(o[1]); |
| } |
| |
| 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 = buildUnnamed3155(); |
| } |
| 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')); |
| checkUnnamed3155(o.productLabels); |
| } |
| buildCounterProduct--; |
| } |
| |
| core.List<core.String> buildUnnamed3156() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed3156(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 = buildUnnamed3156(); |
| o.productSet = 'foo'; |
| } |
| buildCounterProductSearchParams--; |
| return o; |
| } |
| |
| void checkProductSearchParams(api.ProductSearchParams o) { |
| buildCounterProductSearchParams++; |
| if (buildCounterProductSearchParams < 3) { |
| checkBoundingPoly(o.boundingPoly); |
| unittest.expect(o.filter, unittest.equals('foo')); |
| checkUnnamed3156(o.productCategories); |
| unittest.expect(o.productSet, unittest.equals('foo')); |
| } |
| buildCounterProductSearchParams--; |
| } |
| |
| core.List<api.GroupedResult> buildUnnamed3157() { |
| var o = <api.GroupedResult>[]; |
| o.add(buildGroupedResult()); |
| o.add(buildGroupedResult()); |
| return o; |
| } |
| |
| void checkUnnamed3157(core.List<api.GroupedResult> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGroupedResult(o[0]); |
| checkGroupedResult(o[1]); |
| } |
| |
| core.List<api.Result> buildUnnamed3158() { |
| var o = <api.Result>[]; |
| o.add(buildResult()); |
| o.add(buildResult()); |
| return o; |
| } |
| |
| void checkUnnamed3158(core.List<api.Result> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkResult(o[0]); |
| checkResult(o[1]); |
| } |
| |
| core.int buildCounterProductSearchResults = 0; |
| api.ProductSearchResults buildProductSearchResults() { |
| var o = api.ProductSearchResults(); |
| buildCounterProductSearchResults++; |
| if (buildCounterProductSearchResults < 3) { |
| o.indexTime = 'foo'; |
| o.productGroupedResults = buildUnnamed3157(); |
| o.results = buildUnnamed3158(); |
| } |
| buildCounterProductSearchResults--; |
| return o; |
| } |
| |
| void checkProductSearchResults(api.ProductSearchResults o) { |
| buildCounterProductSearchResults++; |
| if (buildCounterProductSearchResults < 3) { |
| unittest.expect(o.indexTime, unittest.equals('foo')); |
| checkUnnamed3157(o.productGroupedResults); |
| checkUnnamed3158(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); |
| 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); |
| } |
| buildCounterPurgeProductsRequest--; |
| } |
| |
| core.List<api.BoundingPoly> buildUnnamed3159() { |
| var o = <api.BoundingPoly>[]; |
| o.add(buildBoundingPoly()); |
| o.add(buildBoundingPoly()); |
| return o; |
| } |
| |
| void checkUnnamed3159(core.List<api.BoundingPoly> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkBoundingPoly(o[0]); |
| checkBoundingPoly(o[1]); |
| } |
| |
| core.int buildCounterReferenceImage = 0; |
| api.ReferenceImage buildReferenceImage() { |
| var o = api.ReferenceImage(); |
| buildCounterReferenceImage++; |
| if (buildCounterReferenceImage < 3) { |
| o.boundingPolys = buildUnnamed3159(); |
| o.name = 'foo'; |
| o.uri = 'foo'; |
| } |
| buildCounterReferenceImage--; |
| return o; |
| } |
| |
| void checkReferenceImage(api.ReferenceImage o) { |
| buildCounterReferenceImage++; |
| if (buildCounterReferenceImage < 3) { |
| checkUnnamed3159(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); |
| 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> buildUnnamed3160() { |
| 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 checkUnnamed3160(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>> buildUnnamed3161() { |
| var o = <core.Map<core.String, core.Object>>[]; |
| o.add(buildUnnamed3160()); |
| o.add(buildUnnamed3160()); |
| return o; |
| } |
| |
| void checkUnnamed3161(core.List<core.Map<core.String, core.Object>> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkUnnamed3160(o[0]); |
| checkUnnamed3160(o[1]); |
| } |
| |
| core.int buildCounterStatus = 0; |
| api.Status buildStatus() { |
| var o = api.Status(); |
| buildCounterStatus++; |
| if (buildCounterStatus < 3) { |
| o.code = 42; |
| o.details = buildUnnamed3161(); |
| o.message = 'foo'; |
| } |
| buildCounterStatus--; |
| return o; |
| } |
| |
| void checkStatus(api.Status o) { |
| buildCounterStatus++; |
| if (buildCounterStatus < 3) { |
| unittest.expect(o.code, unittest.equals(42)); |
| checkUnnamed3161(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); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkTextProperty(o.property); |
| unittest.expect(o.text, unittest.equals('foo')); |
| } |
| buildCounterSymbol--; |
| } |
| |
| core.List<api.Page> buildUnnamed3162() { |
| var o = <api.Page>[]; |
| o.add(buildPage()); |
| o.add(buildPage()); |
| return o; |
| } |
| |
| void checkUnnamed3162(core.List<api.Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkPage(o[0]); |
| checkPage(o[1]); |
| } |
| |
| core.int buildCounterTextAnnotation = 0; |
| api.TextAnnotation buildTextAnnotation() { |
| var o = api.TextAnnotation(); |
| buildCounterTextAnnotation++; |
| if (buildCounterTextAnnotation < 3) { |
| o.pages = buildUnnamed3162(); |
| o.text = 'foo'; |
| } |
| buildCounterTextAnnotation--; |
| return o; |
| } |
| |
| void checkTextAnnotation(api.TextAnnotation o) { |
| buildCounterTextAnnotation++; |
| if (buildCounterTextAnnotation < 3) { |
| checkUnnamed3162(o.pages); |
| unittest.expect(o.text, unittest.equals('foo')); |
| } |
| buildCounterTextAnnotation--; |
| } |
| |
| core.List<api.DetectedLanguage> buildUnnamed3163() { |
| var o = <api.DetectedLanguage>[]; |
| o.add(buildDetectedLanguage()); |
| o.add(buildDetectedLanguage()); |
| return o; |
| } |
| |
| void checkUnnamed3163(core.List<api.DetectedLanguage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkDetectedLanguage(o[0]); |
| checkDetectedLanguage(o[1]); |
| } |
| |
| core.int buildCounterTextProperty = 0; |
| api.TextProperty buildTextProperty() { |
| var o = api.TextProperty(); |
| buildCounterTextProperty++; |
| if (buildCounterTextProperty < 3) { |
| o.detectedBreak = buildDetectedBreak(); |
| o.detectedLanguages = buildUnnamed3163(); |
| } |
| buildCounterTextProperty--; |
| return o; |
| } |
| |
| void checkTextProperty(api.TextProperty o) { |
| buildCounterTextProperty++; |
| if (buildCounterTextProperty < 3) { |
| checkDetectedBreak(o.detectedBreak); |
| checkUnnamed3163(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> buildUnnamed3164() { |
| var o = <api.WebLabel>[]; |
| o.add(buildWebLabel()); |
| o.add(buildWebLabel()); |
| return o; |
| } |
| |
| void checkUnnamed3164(core.List<api.WebLabel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebLabel(o[0]); |
| checkWebLabel(o[1]); |
| } |
| |
| core.List<api.WebImage> buildUnnamed3165() { |
| var o = <api.WebImage>[]; |
| o.add(buildWebImage()); |
| o.add(buildWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3165(core.List<api.WebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebImage(o[0]); |
| checkWebImage(o[1]); |
| } |
| |
| core.List<api.WebPage> buildUnnamed3166() { |
| var o = <api.WebPage>[]; |
| o.add(buildWebPage()); |
| o.add(buildWebPage()); |
| return o; |
| } |
| |
| void checkUnnamed3166(core.List<api.WebPage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebPage(o[0]); |
| checkWebPage(o[1]); |
| } |
| |
| core.List<api.WebImage> buildUnnamed3167() { |
| var o = <api.WebImage>[]; |
| o.add(buildWebImage()); |
| o.add(buildWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3167(core.List<api.WebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebImage(o[0]); |
| checkWebImage(o[1]); |
| } |
| |
| core.List<api.WebImage> buildUnnamed3168() { |
| var o = <api.WebImage>[]; |
| o.add(buildWebImage()); |
| o.add(buildWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3168(core.List<api.WebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebImage(o[0]); |
| checkWebImage(o[1]); |
| } |
| |
| core.List<api.WebEntity> buildUnnamed3169() { |
| var o = <api.WebEntity>[]; |
| o.add(buildWebEntity()); |
| o.add(buildWebEntity()); |
| return o; |
| } |
| |
| void checkUnnamed3169(core.List<api.WebEntity> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebEntity(o[0]); |
| checkWebEntity(o[1]); |
| } |
| |
| core.int buildCounterWebDetection = 0; |
| api.WebDetection buildWebDetection() { |
| var o = api.WebDetection(); |
| buildCounterWebDetection++; |
| if (buildCounterWebDetection < 3) { |
| o.bestGuessLabels = buildUnnamed3164(); |
| o.fullMatchingImages = buildUnnamed3165(); |
| o.pagesWithMatchingImages = buildUnnamed3166(); |
| o.partialMatchingImages = buildUnnamed3167(); |
| o.visuallySimilarImages = buildUnnamed3168(); |
| o.webEntities = buildUnnamed3169(); |
| } |
| buildCounterWebDetection--; |
| return o; |
| } |
| |
| void checkWebDetection(api.WebDetection o) { |
| buildCounterWebDetection++; |
| if (buildCounterWebDetection < 3) { |
| checkUnnamed3164(o.bestGuessLabels); |
| checkUnnamed3165(o.fullMatchingImages); |
| checkUnnamed3166(o.pagesWithMatchingImages); |
| checkUnnamed3167(o.partialMatchingImages); |
| checkUnnamed3168(o.visuallySimilarImages); |
| checkUnnamed3169(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> buildUnnamed3170() { |
| var o = <api.WebImage>[]; |
| o.add(buildWebImage()); |
| o.add(buildWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3170(core.List<api.WebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebImage(o[0]); |
| checkWebImage(o[1]); |
| } |
| |
| core.List<api.WebImage> buildUnnamed3171() { |
| var o = <api.WebImage>[]; |
| o.add(buildWebImage()); |
| o.add(buildWebImage()); |
| return o; |
| } |
| |
| void checkUnnamed3171(core.List<api.WebImage> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkWebImage(o[0]); |
| checkWebImage(o[1]); |
| } |
| |
| core.int buildCounterWebPage = 0; |
| api.WebPage buildWebPage() { |
| var o = api.WebPage(); |
| buildCounterWebPage++; |
| if (buildCounterWebPage < 3) { |
| o.fullMatchingImages = buildUnnamed3170(); |
| o.pageTitle = 'foo'; |
| o.partialMatchingImages = buildUnnamed3171(); |
| o.score = 42.0; |
| o.url = 'foo'; |
| } |
| buildCounterWebPage--; |
| return o; |
| } |
| |
| void checkWebPage(api.WebPage o) { |
| buildCounterWebPage++; |
| if (buildCounterWebPage < 3) { |
| checkUnnamed3170(o.fullMatchingImages); |
| unittest.expect(o.pageTitle, unittest.equals('foo')); |
| checkUnnamed3171(o.partialMatchingImages); |
| unittest.expect(o.score, unittest.equals(42.0)); |
| unittest.expect(o.url, unittest.equals('foo')); |
| } |
| buildCounterWebPage--; |
| } |
| |
| core.List<api.Symbol> buildUnnamed3172() { |
| var o = <api.Symbol>[]; |
| o.add(buildSymbol()); |
| o.add(buildSymbol()); |
| return o; |
| } |
| |
| void checkUnnamed3172(core.List<api.Symbol> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkSymbol(o[0]); |
| checkSymbol(o[1]); |
| } |
| |
| 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 = buildUnnamed3172(); |
| } |
| buildCounterWord--; |
| return o; |
| } |
| |
| void checkWord(api.Word o) { |
| buildCounterWord++; |
| if (buildCounterWord < 3) { |
| checkBoundingPoly(o.boundingBox); |
| unittest.expect(o.confidence, unittest.equals(42.0)); |
| checkTextProperty(o.property); |
| checkUnnamed3172(o.symbols); |
| } |
| buildCounterWord--; |
| } |
| |
| void main() { |
| unittest.group('obj-schema-AddProductToProductSetRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAddProductToProductSetRequest(); |
| var od = api.AddProductToProductSetRequest.fromJson(o.toJson()); |
| checkAddProductToProductSetRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AnnotateFileRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAnnotateFileRequest(); |
| var od = api.AnnotateFileRequest.fromJson(o.toJson()); |
| checkAnnotateFileRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAnnotateFileResponse(); |
| var od = api.AnnotateFileResponse.fromJson(o.toJson()); |
| checkAnnotateFileResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AnnotateImageRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAnnotateImageRequest(); |
| var od = api.AnnotateImageRequest.fromJson(o.toJson()); |
| checkAnnotateImageRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AnnotateImageResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAnnotateImageResponse(); |
| var od = api.AnnotateImageResponse.fromJson(o.toJson()); |
| checkAnnotateImageResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncAnnotateFileRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAsyncAnnotateFileRequest(); |
| var od = api.AsyncAnnotateFileRequest.fromJson(o.toJson()); |
| checkAsyncAnnotateFileRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncAnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAsyncAnnotateFileResponse(); |
| var od = api.AsyncAnnotateFileResponse.fromJson(o.toJson()); |
| checkAsyncAnnotateFileResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncBatchAnnotateFilesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAsyncBatchAnnotateFilesRequest(); |
| var od = api.AsyncBatchAnnotateFilesRequest.fromJson(o.toJson()); |
| checkAsyncBatchAnnotateFilesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncBatchAnnotateFilesResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAsyncBatchAnnotateFilesResponse(); |
| var od = api.AsyncBatchAnnotateFilesResponse.fromJson(o.toJson()); |
| checkAsyncBatchAnnotateFilesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncBatchAnnotateImagesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAsyncBatchAnnotateImagesRequest(); |
| var od = api.AsyncBatchAnnotateImagesRequest.fromJson(o.toJson()); |
| checkAsyncBatchAnnotateImagesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AsyncBatchAnnotateImagesResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAsyncBatchAnnotateImagesResponse(); |
| var od = api.AsyncBatchAnnotateImagesResponse.fromJson(o.toJson()); |
| checkAsyncBatchAnnotateImagesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchAnnotateFilesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildBatchAnnotateFilesRequest(); |
| var od = api.BatchAnnotateFilesRequest.fromJson(o.toJson()); |
| checkBatchAnnotateFilesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchAnnotateFilesResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildBatchAnnotateFilesResponse(); |
| var od = api.BatchAnnotateFilesResponse.fromJson(o.toJson()); |
| checkBatchAnnotateFilesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchAnnotateImagesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildBatchAnnotateImagesRequest(); |
| var od = api.BatchAnnotateImagesRequest.fromJson(o.toJson()); |
| checkBatchAnnotateImagesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchAnnotateImagesResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildBatchAnnotateImagesResponse(); |
| var od = api.BatchAnnotateImagesResponse.fromJson(o.toJson()); |
| checkBatchAnnotateImagesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchOperationMetadata', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildBatchOperationMetadata(); |
| var od = api.BatchOperationMetadata.fromJson(o.toJson()); |
| checkBatchOperationMetadata(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Block', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildBlock(); |
| var od = api.Block.fromJson(o.toJson()); |
| checkBlock(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BoundingPoly', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildBoundingPoly(); |
| var od = api.BoundingPoly.fromJson(o.toJson()); |
| checkBoundingPoly(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CancelOperationRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCancelOperationRequest(); |
| var od = api.CancelOperationRequest.fromJson(o.toJson()); |
| checkCancelOperationRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Color', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildColor(); |
| var od = api.Color.fromJson(o.toJson()); |
| checkColor(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ColorInfo', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildColorInfo(); |
| var od = api.ColorInfo.fromJson(o.toJson()); |
| checkColorInfo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CropHint', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCropHint(); |
| var od = api.CropHint.fromJson(o.toJson()); |
| checkCropHint(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CropHintsAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCropHintsAnnotation(); |
| var od = api.CropHintsAnnotation.fromJson(o.toJson()); |
| checkCropHintsAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CropHintsParams', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCropHintsParams(); |
| var od = api.CropHintsParams.fromJson(o.toJson()); |
| checkCropHintsParams(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DetectedBreak', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDetectedBreak(); |
| var od = api.DetectedBreak.fromJson(o.toJson()); |
| checkDetectedBreak(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DetectedLanguage', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDetectedLanguage(); |
| var od = api.DetectedLanguage.fromJson(o.toJson()); |
| checkDetectedLanguage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DominantColorsAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDominantColorsAnnotation(); |
| var od = api.DominantColorsAnnotation.fromJson(o.toJson()); |
| checkDominantColorsAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Empty', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildEmpty(); |
| var od = api.Empty.fromJson(o.toJson()); |
| checkEmpty(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-EntityAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildEntityAnnotation(); |
| var od = api.EntityAnnotation.fromJson(o.toJson()); |
| checkEntityAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-FaceAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildFaceAnnotation(); |
| var od = api.FaceAnnotation.fromJson(o.toJson()); |
| checkFaceAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Feature', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildFeature(); |
| var od = api.Feature.fromJson(o.toJson()); |
| checkFeature(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GcsDestination', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGcsDestination(); |
| var od = api.GcsDestination.fromJson(o.toJson()); |
| checkGcsDestination(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GcsSource', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGcsSource(); |
| var od = api.GcsSource.fromJson(o.toJson()); |
| checkGcsSource(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1AnnotateFileResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1AnnotateFileResponse(); |
| var od = api.GoogleCloudVisionV1p1beta1AnnotateFileResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1AnnotateFileResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1AnnotateImageResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1AnnotateImageResponse(); |
| var od = api.GoogleCloudVisionV1p1beta1AnnotateImageResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1AnnotateImageResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse(); |
| var od = api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse(); |
| var od = api.GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Block', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1Block(); |
| var od = api.GoogleCloudVisionV1p1beta1Block.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1Block(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1BoundingPoly', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1BoundingPoly(); |
| var od = api.GoogleCloudVisionV1p1beta1BoundingPoly.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1BoundingPoly(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1ColorInfo', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1ColorInfo(); |
| var od = api.GoogleCloudVisionV1p1beta1ColorInfo.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1ColorInfo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1CropHint', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1CropHint(); |
| var od = api.GoogleCloudVisionV1p1beta1CropHint.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1CropHint(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1CropHintsAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1CropHintsAnnotation(); |
| var od = api.GoogleCloudVisionV1p1beta1CropHintsAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1CropHintsAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1DominantColorsAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1DominantColorsAnnotation(); |
| var od = api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1DominantColorsAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1EntityAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1EntityAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1EntityAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1EntityAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1FaceAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1FaceAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1FaceAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1FaceAnnotationLandmark', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1FaceAnnotationLandmark(); |
| var od = api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1FaceAnnotationLandmark(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1GcsDestination', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1GcsDestination(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1GcsDestination.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1GcsDestination(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1GcsSource', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1GcsSource(); |
| var od = api.GoogleCloudVisionV1p1beta1GcsSource.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1GcsSource(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1ImageAnnotationContext', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1ImageAnnotationContext(); |
| var od = api.GoogleCloudVisionV1p1beta1ImageAnnotationContext.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1ImageAnnotationContext(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1ImageProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1ImageProperties(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1ImageProperties.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1ImageProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1InputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1InputConfig(); |
| var od = api.GoogleCloudVisionV1p1beta1InputConfig.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1InputConfig(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation(); |
| var od = api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1LocationInfo', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1LocationInfo(); |
| var od = api.GoogleCloudVisionV1p1beta1LocationInfo.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1LocationInfo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1NormalizedVertex', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1NormalizedVertex(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1NormalizedVertex.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1NormalizedVertex(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1OperationMetadata', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1OperationMetadata(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1OperationMetadata.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1OperationMetadata(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1OutputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1OutputConfig(); |
| var od = api.GoogleCloudVisionV1p1beta1OutputConfig.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1OutputConfig(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Page', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1Page(); |
| var od = api.GoogleCloudVisionV1p1beta1Page.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1Page(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Paragraph', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1Paragraph(); |
| var od = api.GoogleCloudVisionV1p1beta1Paragraph.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1Paragraph(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Position', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1Position(); |
| var od = api.GoogleCloudVisionV1p1beta1Position.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1Position(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Product', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1Product(); |
| var od = api.GoogleCloudVisionV1p1beta1Product.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1Product(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1ProductKeyValue', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1ProductKeyValue(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1ProductKeyValue.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1ProductKeyValue(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1ProductSearchResults', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1ProductSearchResults(); |
| var od = api.GoogleCloudVisionV1p1beta1ProductSearchResults.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResults(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = |
| buildGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult(); |
| var od = api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = |
| buildGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1ProductSearchResultsResult', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Property', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1Property(); |
| var od = api.GoogleCloudVisionV1p1beta1Property.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1Property(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1SafeSearchAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1SafeSearchAnnotation(); |
| var od = api.GoogleCloudVisionV1p1beta1SafeSearchAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1SafeSearchAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Symbol', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1Symbol(); |
| var od = api.GoogleCloudVisionV1p1beta1Symbol.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1Symbol(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1TextAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1TextAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1TextAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1TextAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p1beta1TextAnnotationTextProperty', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); |
| var od = |
| api.GoogleCloudVisionV1p1beta1TextAnnotationTextProperty.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Vertex', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1Vertex(); |
| var od = api.GoogleCloudVisionV1p1beta1Vertex.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1Vertex(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1WebDetection', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1WebDetection(); |
| var od = api.GoogleCloudVisionV1p1beta1WebDetection.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1WebDetection(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1WebDetectionWebEntity', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1WebDetectionWebEntity(); |
| var od = api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebEntity(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1WebDetectionWebImage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1WebDetectionWebImage(); |
| var od = api.GoogleCloudVisionV1p1beta1WebDetectionWebImage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1WebDetectionWebLabel', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1WebDetectionWebLabel(); |
| var od = api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebLabel(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1WebDetectionWebPage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1WebDetectionWebPage(); |
| var od = api.GoogleCloudVisionV1p1beta1WebDetectionWebPage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p1beta1WebDetectionWebPage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p1beta1Word', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p1beta1Word(); |
| var od = api.GoogleCloudVisionV1p1beta1Word.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p1beta1Word(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1AnnotateFileResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1AnnotateFileResponse(); |
| var od = api.GoogleCloudVisionV1p2beta1AnnotateFileResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1AnnotateFileResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1AnnotateImageResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1AnnotateImageResponse(); |
| var od = api.GoogleCloudVisionV1p2beta1AnnotateImageResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1AnnotateImageResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(); |
| var od = api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse(); |
| var od = api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Block', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1Block(); |
| var od = api.GoogleCloudVisionV1p2beta1Block.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1Block(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1BoundingPoly', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1BoundingPoly(); |
| var od = api.GoogleCloudVisionV1p2beta1BoundingPoly.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1BoundingPoly(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1ColorInfo', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1ColorInfo(); |
| var od = api.GoogleCloudVisionV1p2beta1ColorInfo.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1ColorInfo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1CropHint', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1CropHint(); |
| var od = api.GoogleCloudVisionV1p2beta1CropHint.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1CropHint(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1CropHintsAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1CropHintsAnnotation(); |
| var od = api.GoogleCloudVisionV1p2beta1CropHintsAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1CropHintsAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1DominantColorsAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1DominantColorsAnnotation(); |
| var od = api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1DominantColorsAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1EntityAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1EntityAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1EntityAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1EntityAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1FaceAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1FaceAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1FaceAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1FaceAnnotationLandmark', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark(); |
| var od = api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1GcsDestination', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1GcsDestination(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1GcsDestination.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1GcsDestination(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1GcsSource', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1GcsSource(); |
| var od = api.GoogleCloudVisionV1p2beta1GcsSource.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1GcsSource(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1ImageAnnotationContext', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1ImageAnnotationContext(); |
| var od = api.GoogleCloudVisionV1p2beta1ImageAnnotationContext.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1ImageAnnotationContext(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1ImageProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1ImageProperties(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1ImageProperties.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1ImageProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1InputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1InputConfig(); |
| var od = api.GoogleCloudVisionV1p2beta1InputConfig.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1InputConfig(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation(); |
| var od = api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1LocationInfo', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1LocationInfo(); |
| var od = api.GoogleCloudVisionV1p2beta1LocationInfo.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1LocationInfo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1NormalizedVertex', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1NormalizedVertex(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1NormalizedVertex.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1NormalizedVertex(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1OperationMetadata', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1OperationMetadata(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1OperationMetadata.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1OperationMetadata(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1OutputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1OutputConfig(); |
| var od = api.GoogleCloudVisionV1p2beta1OutputConfig.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1OutputConfig(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Page', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1Page(); |
| var od = api.GoogleCloudVisionV1p2beta1Page.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1Page(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Paragraph', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1Paragraph(); |
| var od = api.GoogleCloudVisionV1p2beta1Paragraph.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1Paragraph(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Position', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1Position(); |
| var od = api.GoogleCloudVisionV1p2beta1Position.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1Position(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Product', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1Product(); |
| var od = api.GoogleCloudVisionV1p2beta1Product.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1Product(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1ProductKeyValue', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1ProductKeyValue(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1ProductKeyValue.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1ProductKeyValue(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1ProductSearchResults', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1ProductSearchResults(); |
| var od = api.GoogleCloudVisionV1p2beta1ProductSearchResults.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResults(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = |
| buildGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult(); |
| var od = api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = |
| buildGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1ProductSearchResultsResult', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Property', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1Property(); |
| var od = api.GoogleCloudVisionV1p2beta1Property.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1Property(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1SafeSearchAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1SafeSearchAnnotation(); |
| var od = api.GoogleCloudVisionV1p2beta1SafeSearchAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1SafeSearchAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Symbol', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1Symbol(); |
| var od = api.GoogleCloudVisionV1p2beta1Symbol.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1Symbol(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1TextAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1TextAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1TextAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1TextAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p2beta1TextAnnotationTextProperty', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); |
| var od = |
| api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Vertex', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1Vertex(); |
| var od = api.GoogleCloudVisionV1p2beta1Vertex.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1Vertex(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1WebDetection', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1WebDetection(); |
| var od = api.GoogleCloudVisionV1p2beta1WebDetection.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1WebDetection(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebEntity', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity(); |
| var od = api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebImage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebImage(); |
| var od = api.GoogleCloudVisionV1p2beta1WebDetectionWebImage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebLabel', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel(); |
| var od = api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebPage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebPage(); |
| var od = api.GoogleCloudVisionV1p2beta1WebDetectionWebPage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p2beta1WebDetectionWebPage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p2beta1Word', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p2beta1Word(); |
| var od = api.GoogleCloudVisionV1p2beta1Word.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p2beta1Word(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1AnnotateFileResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1AnnotateFileResponse(); |
| var od = api.GoogleCloudVisionV1p3beta1AnnotateFileResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1AnnotateFileResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1AnnotateImageResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1AnnotateImageResponse(); |
| var od = api.GoogleCloudVisionV1p3beta1AnnotateImageResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1AnnotateImageResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse(); |
| var od = api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse(); |
| var od = api.GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1BatchOperationMetadata', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1BatchOperationMetadata(); |
| var od = api.GoogleCloudVisionV1p3beta1BatchOperationMetadata.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1BatchOperationMetadata(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Block', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1Block(); |
| var od = api.GoogleCloudVisionV1p3beta1Block.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1Block(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1BoundingPoly', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1BoundingPoly(); |
| var od = api.GoogleCloudVisionV1p3beta1BoundingPoly.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1BoundingPoly(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ColorInfo', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1ColorInfo(); |
| var od = api.GoogleCloudVisionV1p3beta1ColorInfo.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1ColorInfo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1CropHint', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1CropHint(); |
| var od = api.GoogleCloudVisionV1p3beta1CropHint.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1CropHint(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1CropHintsAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1CropHintsAnnotation(); |
| var od = api.GoogleCloudVisionV1p3beta1CropHintsAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1CropHintsAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1DominantColorsAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1DominantColorsAnnotation(); |
| var od = api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1DominantColorsAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1EntityAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1EntityAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1EntityAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1EntityAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1FaceAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1FaceAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1FaceAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1FaceAnnotationLandmark', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1FaceAnnotationLandmark(); |
| var od = api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1FaceAnnotationLandmark(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1GcsDestination', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1GcsDestination(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1GcsDestination.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1GcsDestination(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1GcsSource', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1GcsSource(); |
| var od = api.GoogleCloudVisionV1p3beta1GcsSource.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1GcsSource(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ImageAnnotationContext', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1ImageAnnotationContext(); |
| var od = api.GoogleCloudVisionV1p3beta1ImageAnnotationContext.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1ImageAnnotationContext(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ImageProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1ImageProperties(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1ImageProperties.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1ImageProperties(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1ImportProductSetsResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1ImportProductSetsResponse(); |
| var od = api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1ImportProductSetsResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1InputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1InputConfig(); |
| var od = api.GoogleCloudVisionV1p3beta1InputConfig.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1InputConfig(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation(); |
| var od = api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1LocationInfo', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1LocationInfo(); |
| var od = api.GoogleCloudVisionV1p3beta1LocationInfo.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1LocationInfo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1NormalizedVertex', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1NormalizedVertex(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1NormalizedVertex.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1NormalizedVertex(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1OperationMetadata', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1OperationMetadata(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1OperationMetadata.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1OperationMetadata(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1OutputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1OutputConfig(); |
| var od = api.GoogleCloudVisionV1p3beta1OutputConfig.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1OutputConfig(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Page', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1Page(); |
| var od = api.GoogleCloudVisionV1p3beta1Page.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1Page(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Paragraph', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1Paragraph(); |
| var od = api.GoogleCloudVisionV1p3beta1Paragraph.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1Paragraph(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Position', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1Position(); |
| var od = api.GoogleCloudVisionV1p3beta1Position.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1Position(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Product', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1Product(); |
| var od = api.GoogleCloudVisionV1p3beta1Product.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1Product(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ProductKeyValue', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1ProductKeyValue(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1ProductKeyValue.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1ProductKeyValue(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ProductSearchResults', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1ProductSearchResults(); |
| var od = api.GoogleCloudVisionV1p3beta1ProductSearchResults.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResults(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = |
| buildGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult(); |
| var od = api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = |
| buildGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1ProductSearchResultsResult', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Property', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1Property(); |
| var od = api.GoogleCloudVisionV1p3beta1Property.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1Property(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1ReferenceImage', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1ReferenceImage(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1ReferenceImage.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1ReferenceImage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1SafeSearchAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1SafeSearchAnnotation(); |
| var od = api.GoogleCloudVisionV1p3beta1SafeSearchAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1SafeSearchAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Symbol', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1Symbol(); |
| var od = api.GoogleCloudVisionV1p3beta1Symbol.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1Symbol(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1TextAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1TextAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1TextAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1TextAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p3beta1TextAnnotationTextProperty', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); |
| var od = |
| api.GoogleCloudVisionV1p3beta1TextAnnotationTextProperty.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Vertex', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1Vertex(); |
| var od = api.GoogleCloudVisionV1p3beta1Vertex.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1Vertex(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1WebDetection', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1WebDetection(); |
| var od = api.GoogleCloudVisionV1p3beta1WebDetection.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1WebDetection(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1WebDetectionWebEntity', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1WebDetectionWebEntity(); |
| var od = api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebEntity(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1WebDetectionWebImage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1WebDetectionWebImage(); |
| var od = api.GoogleCloudVisionV1p3beta1WebDetectionWebImage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1WebDetectionWebLabel', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1WebDetectionWebLabel(); |
| var od = api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebLabel(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1WebDetectionWebPage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1WebDetectionWebPage(); |
| var od = api.GoogleCloudVisionV1p3beta1WebDetectionWebPage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p3beta1WebDetectionWebPage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p3beta1Word', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p3beta1Word(); |
| var od = api.GoogleCloudVisionV1p3beta1Word.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p3beta1Word(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1AnnotateFileResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1AnnotateFileResponse(); |
| var od = api.GoogleCloudVisionV1p4beta1AnnotateFileResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1AnnotateFileResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1AnnotateImageResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1AnnotateImageResponse(); |
| var od = api.GoogleCloudVisionV1p4beta1AnnotateImageResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1AnnotateImageResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse(); |
| var od = api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse(); |
| var od = api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse(); |
| var od = api.GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1BatchOperationMetadata', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1BatchOperationMetadata(); |
| var od = api.GoogleCloudVisionV1p4beta1BatchOperationMetadata.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1BatchOperationMetadata(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Block', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1Block(); |
| var od = api.GoogleCloudVisionV1p4beta1Block.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1Block(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1BoundingPoly', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1BoundingPoly(); |
| var od = api.GoogleCloudVisionV1p4beta1BoundingPoly.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1BoundingPoly(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Celebrity', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1Celebrity(); |
| var od = api.GoogleCloudVisionV1p4beta1Celebrity.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1Celebrity(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ColorInfo', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1ColorInfo(); |
| var od = api.GoogleCloudVisionV1p4beta1ColorInfo.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1ColorInfo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1CropHint', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1CropHint(); |
| var od = api.GoogleCloudVisionV1p4beta1CropHint.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1CropHint(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1CropHintsAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1CropHintsAnnotation(); |
| var od = api.GoogleCloudVisionV1p4beta1CropHintsAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1CropHintsAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1DominantColorsAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1DominantColorsAnnotation(); |
| var od = api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1DominantColorsAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1EntityAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1EntityAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1EntityAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1EntityAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1FaceAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1FaceAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1FaceAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1FaceAnnotationLandmark', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1FaceAnnotationLandmark(); |
| var od = api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1FaceAnnotationLandmark(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1FaceRecognitionResult', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1FaceRecognitionResult(); |
| var od = api.GoogleCloudVisionV1p4beta1FaceRecognitionResult.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1FaceRecognitionResult(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1GcsDestination', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1GcsDestination(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1GcsDestination.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1GcsDestination(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1GcsSource', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1GcsSource(); |
| var od = api.GoogleCloudVisionV1p4beta1GcsSource.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1GcsSource(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ImageAnnotationContext', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1ImageAnnotationContext(); |
| var od = api.GoogleCloudVisionV1p4beta1ImageAnnotationContext.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1ImageAnnotationContext(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ImageProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1ImageProperties(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1ImageProperties.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1ImageProperties(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1ImportProductSetsResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1ImportProductSetsResponse(); |
| var od = api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1ImportProductSetsResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1InputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1InputConfig(); |
| var od = api.GoogleCloudVisionV1p4beta1InputConfig.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1InputConfig(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation(); |
| var od = api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1LocationInfo', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1LocationInfo(); |
| var od = api.GoogleCloudVisionV1p4beta1LocationInfo.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1LocationInfo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1NormalizedVertex', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1NormalizedVertex(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1NormalizedVertex.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1NormalizedVertex(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1OperationMetadata', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1OperationMetadata(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1OperationMetadata.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1OperationMetadata(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1OutputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1OutputConfig(); |
| var od = api.GoogleCloudVisionV1p4beta1OutputConfig.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1OutputConfig(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Page', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1Page(); |
| var od = api.GoogleCloudVisionV1p4beta1Page.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1Page(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Paragraph', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1Paragraph(); |
| var od = api.GoogleCloudVisionV1p4beta1Paragraph.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1Paragraph(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Position', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1Position(); |
| var od = api.GoogleCloudVisionV1p4beta1Position.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1Position(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Product', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1Product(); |
| var od = api.GoogleCloudVisionV1p4beta1Product.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1Product(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ProductKeyValue', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1ProductKeyValue(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1ProductKeyValue.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1ProductKeyValue(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ProductSearchResults', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1ProductSearchResults(); |
| var od = api.GoogleCloudVisionV1p4beta1ProductSearchResults.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResults(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = |
| buildGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult(); |
| var od = api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = |
| buildGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation |
| .fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1ProductSearchResultsResult', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Property', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1Property(); |
| var od = api.GoogleCloudVisionV1p4beta1Property.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1Property(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1ReferenceImage', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1ReferenceImage(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1ReferenceImage.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1ReferenceImage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1SafeSearchAnnotation', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1SafeSearchAnnotation(); |
| var od = api.GoogleCloudVisionV1p4beta1SafeSearchAnnotation.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1SafeSearchAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Symbol', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1Symbol(); |
| var od = api.GoogleCloudVisionV1p4beta1Symbol.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1Symbol(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1TextAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1TextAnnotation(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1TextAnnotation.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1TextAnnotation(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleCloudVisionV1p4beta1TextAnnotationTextProperty', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); |
| var od = |
| api.GoogleCloudVisionV1p4beta1TextAnnotationTextProperty.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Vertex', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1Vertex(); |
| var od = api.GoogleCloudVisionV1p4beta1Vertex.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1Vertex(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1WebDetection', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1WebDetection(); |
| var od = api.GoogleCloudVisionV1p4beta1WebDetection.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1WebDetection(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1WebDetectionWebEntity', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1WebDetectionWebEntity(); |
| var od = api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebEntity(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1WebDetectionWebImage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1WebDetectionWebImage(); |
| var od = api.GoogleCloudVisionV1p4beta1WebDetectionWebImage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1WebDetectionWebLabel', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1WebDetectionWebLabel(); |
| var od = api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebLabel(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1WebDetectionWebPage', |
| () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1WebDetectionWebPage(); |
| var od = api.GoogleCloudVisionV1p4beta1WebDetectionWebPage.fromJson( |
| o.toJson()); |
| checkGoogleCloudVisionV1p4beta1WebDetectionWebPage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleCloudVisionV1p4beta1Word', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGoogleCloudVisionV1p4beta1Word(); |
| var od = api.GoogleCloudVisionV1p4beta1Word.fromJson(o.toJson()); |
| checkGoogleCloudVisionV1p4beta1Word(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GroupedResult', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGroupedResult(); |
| var od = api.GroupedResult.fromJson(o.toJson()); |
| checkGroupedResult(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Image', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImage(); |
| var od = api.Image.fromJson(o.toJson()); |
| checkImage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImageAnnotationContext', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImageAnnotationContext(); |
| var od = api.ImageAnnotationContext.fromJson(o.toJson()); |
| checkImageAnnotationContext(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImageContext', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImageContext(); |
| var od = api.ImageContext.fromJson(o.toJson()); |
| checkImageContext(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImageProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImageProperties(); |
| var od = api.ImageProperties.fromJson(o.toJson()); |
| checkImageProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImageSource', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImageSource(); |
| var od = api.ImageSource.fromJson(o.toJson()); |
| checkImageSource(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImportProductSetsGcsSource', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImportProductSetsGcsSource(); |
| var od = api.ImportProductSetsGcsSource.fromJson(o.toJson()); |
| checkImportProductSetsGcsSource(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImportProductSetsInputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImportProductSetsInputConfig(); |
| var od = api.ImportProductSetsInputConfig.fromJson(o.toJson()); |
| checkImportProductSetsInputConfig(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImportProductSetsRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImportProductSetsRequest(); |
| var od = api.ImportProductSetsRequest.fromJson(o.toJson()); |
| checkImportProductSetsRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImportProductSetsResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImportProductSetsResponse(); |
| var od = api.ImportProductSetsResponse.fromJson(o.toJson()); |
| checkImportProductSetsResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-InputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildInputConfig(); |
| var od = api.InputConfig.fromJson(o.toJson()); |
| checkInputConfig(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-KeyValue', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildKeyValue(); |
| var od = api.KeyValue.fromJson(o.toJson()); |
| checkKeyValue(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Landmark', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLandmark(); |
| var od = api.Landmark.fromJson(o.toJson()); |
| checkLandmark(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LatLng', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLatLng(); |
| var od = api.LatLng.fromJson(o.toJson()); |
| checkLatLng(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LatLongRect', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLatLongRect(); |
| var od = api.LatLongRect.fromJson(o.toJson()); |
| checkLatLongRect(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ListOperationsResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildListOperationsResponse(); |
| var od = api.ListOperationsResponse.fromJson(o.toJson()); |
| checkListOperationsResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ListProductSetsResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildListProductSetsResponse(); |
| var od = api.ListProductSetsResponse.fromJson(o.toJson()); |
| checkListProductSetsResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ListProductsInProductSetResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildListProductsInProductSetResponse(); |
| var od = api.ListProductsInProductSetResponse.fromJson(o.toJson()); |
| checkListProductsInProductSetResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ListProductsResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildListProductsResponse(); |
| var od = api.ListProductsResponse.fromJson(o.toJson()); |
| checkListProductsResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ListReferenceImagesResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildListReferenceImagesResponse(); |
| var od = api.ListReferenceImagesResponse.fromJson(o.toJson()); |
| checkListReferenceImagesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LocalizedObjectAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLocalizedObjectAnnotation(); |
| var od = api.LocalizedObjectAnnotation.fromJson(o.toJson()); |
| checkLocalizedObjectAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LocationInfo', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLocationInfo(); |
| var od = api.LocationInfo.fromJson(o.toJson()); |
| checkLocationInfo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-NormalizedVertex', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildNormalizedVertex(); |
| var od = api.NormalizedVertex.fromJson(o.toJson()); |
| checkNormalizedVertex(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ObjectAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildObjectAnnotation(); |
| var od = api.ObjectAnnotation.fromJson(o.toJson()); |
| checkObjectAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Operation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildOperation(); |
| var od = api.Operation.fromJson(o.toJson()); |
| checkOperation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-OperationMetadata', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildOperationMetadata(); |
| var od = api.OperationMetadata.fromJson(o.toJson()); |
| checkOperationMetadata(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-OutputConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildOutputConfig(); |
| var od = api.OutputConfig.fromJson(o.toJson()); |
| checkOutputConfig(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Page', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildPage(); |
| var od = api.Page.fromJson(o.toJson()); |
| checkPage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Paragraph', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildParagraph(); |
| var od = api.Paragraph.fromJson(o.toJson()); |
| checkParagraph(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Position', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildPosition(); |
| var od = api.Position.fromJson(o.toJson()); |
| checkPosition(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Product', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildProduct(); |
| var od = api.Product.fromJson(o.toJson()); |
| checkProduct(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ProductSearchParams', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildProductSearchParams(); |
| var od = api.ProductSearchParams.fromJson(o.toJson()); |
| checkProductSearchParams(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ProductSearchResults', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildProductSearchResults(); |
| var od = api.ProductSearchResults.fromJson(o.toJson()); |
| checkProductSearchResults(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ProductSet', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildProductSet(); |
| var od = api.ProductSet.fromJson(o.toJson()); |
| checkProductSet(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ProductSetPurgeConfig', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildProductSetPurgeConfig(); |
| var od = api.ProductSetPurgeConfig.fromJson(o.toJson()); |
| checkProductSetPurgeConfig(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Property', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildProperty(); |
| var od = api.Property.fromJson(o.toJson()); |
| checkProperty(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-PurgeProductsRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildPurgeProductsRequest(); |
| var od = api.PurgeProductsRequest.fromJson(o.toJson()); |
| checkPurgeProductsRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ReferenceImage', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildReferenceImage(); |
| var od = api.ReferenceImage.fromJson(o.toJson()); |
| checkReferenceImage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-RemoveProductFromProductSetRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildRemoveProductFromProductSetRequest(); |
| var od = api.RemoveProductFromProductSetRequest.fromJson(o.toJson()); |
| checkRemoveProductFromProductSetRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Result', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildResult(); |
| var od = api.Result.fromJson(o.toJson()); |
| checkResult(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-SafeSearchAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildSafeSearchAnnotation(); |
| var od = api.SafeSearchAnnotation.fromJson(o.toJson()); |
| checkSafeSearchAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Status', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildStatus(); |
| var od = api.Status.fromJson(o.toJson()); |
| checkStatus(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Symbol', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildSymbol(); |
| var od = api.Symbol.fromJson(o.toJson()); |
| checkSymbol(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TextAnnotation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTextAnnotation(); |
| var od = api.TextAnnotation.fromJson(o.toJson()); |
| checkTextAnnotation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TextProperty', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTextProperty(); |
| var od = api.TextProperty.fromJson(o.toJson()); |
| checkTextProperty(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Vertex', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildVertex(); |
| var od = api.Vertex.fromJson(o.toJson()); |
| checkVertex(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebDetection', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildWebDetection(); |
| var od = api.WebDetection.fromJson(o.toJson()); |
| checkWebDetection(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebDetectionParams', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildWebDetectionParams(); |
| var od = api.WebDetectionParams.fromJson(o.toJson()); |
| checkWebDetectionParams(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebEntity', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildWebEntity(); |
| var od = api.WebEntity.fromJson(o.toJson()); |
| checkWebEntity(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebImage', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildWebImage(); |
| var od = api.WebImage.fromJson(o.toJson()); |
| checkWebImage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebLabel', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildWebLabel(); |
| var od = api.WebLabel.fromJson(o.toJson()); |
| checkWebLabel(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WebPage', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildWebPage(); |
| var od = api.WebPage.fromJson(o.toJson()); |
| checkWebPage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Word', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildWord(); |
| var od = api.Word.fromJson(o.toJson()); |
| checkWord(od); |
| }); |
| }); |
| |
| unittest.group('resource-FilesResourceApi', () { |
| unittest.test('method--annotate', () { |
| var mock = HttpServerMock(); |
| api.FilesResourceApi 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); |
| checkBatchAnnotateFilesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .annotate(arg_request, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkBatchAnnotateFilesResponse(response); |
| }))); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () { |
| var mock = HttpServerMock(); |
| api.FilesResourceApi 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); |
| checkAsyncBatchAnnotateFilesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .asyncBatchAnnotate(arg_request, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ImagesResourceApi', () { |
| unittest.test('method--annotate', () { |
| var mock = HttpServerMock(); |
| api.ImagesResourceApi 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); |
| checkBatchAnnotateImagesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .annotate(arg_request, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkBatchAnnotateImagesResponse(response); |
| }))); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () { |
| var mock = HttpServerMock(); |
| api.ImagesResourceApi 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); |
| checkAsyncBatchAnnotateImagesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .asyncBatchAnnotate(arg_request, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-LocationsOperationsResourceApi', () { |
| unittest.test('method--get', () { |
| var mock = HttpServerMock(); |
| api.LocationsOperationsResourceApi 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(n, 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); |
| res |
| .get(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-OperationsResourceApi', () { |
| unittest.test('method--cancel', () { |
| var mock = HttpServerMock(); |
| api.OperationsResourceApi 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); |
| checkCancelOperationRequest(obj); |
| |
| 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(n, 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); |
| res |
| .cancel(arg_request, arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkEmpty(response); |
| }))); |
| }); |
| |
| unittest.test('method--delete', () { |
| var mock = HttpServerMock(); |
| api.OperationsResourceApi 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(n, 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); |
| res |
| .delete(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkEmpty(response); |
| }))); |
| }); |
| |
| unittest.test('method--get', () { |
| var mock = HttpServerMock(); |
| api.OperationsResourceApi 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(n, 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); |
| res |
| .get(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| |
| unittest.test('method--list', () { |
| var mock = HttpServerMock(); |
| api.OperationsResourceApi 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(n, 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); |
| res |
| .list(arg_name, |
| filter: arg_filter, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkListOperationsResponse(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsFilesResourceApi', () { |
| unittest.test('method--annotate', () { |
| var mock = HttpServerMock(); |
| api.ProjectsFilesResourceApi 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); |
| checkBatchAnnotateFilesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .annotate(arg_request, arg_parent, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkBatchAnnotateFilesResponse(response); |
| }))); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () { |
| var mock = HttpServerMock(); |
| api.ProjectsFilesResourceApi 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); |
| checkAsyncBatchAnnotateFilesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .asyncBatchAnnotate(arg_request, arg_parent, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsImagesResourceApi', () { |
| unittest.test('method--annotate', () { |
| var mock = HttpServerMock(); |
| api.ProjectsImagesResourceApi 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); |
| checkBatchAnnotateImagesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .annotate(arg_request, arg_parent, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkBatchAnnotateImagesResponse(response); |
| }))); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () { |
| var mock = HttpServerMock(); |
| api.ProjectsImagesResourceApi 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); |
| checkAsyncBatchAnnotateImagesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .asyncBatchAnnotate(arg_request, arg_parent, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsFilesResourceApi', () { |
| unittest.test('method--annotate', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsFilesResourceApi 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); |
| checkBatchAnnotateFilesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .annotate(arg_request, arg_parent, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkBatchAnnotateFilesResponse(response); |
| }))); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsFilesResourceApi 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); |
| checkAsyncBatchAnnotateFilesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .asyncBatchAnnotate(arg_request, arg_parent, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsImagesResourceApi', () { |
| unittest.test('method--annotate', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsImagesResourceApi 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); |
| checkBatchAnnotateImagesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .annotate(arg_request, arg_parent, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkBatchAnnotateImagesResponse(response); |
| }))); |
| }); |
| |
| unittest.test('method--asyncBatchAnnotate', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsImagesResourceApi 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); |
| checkAsyncBatchAnnotateImagesRequest(obj); |
| |
| 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(n, 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); |
| res |
| .asyncBatchAnnotate(arg_request, arg_parent, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsOperationsResourceApi', () { |
| unittest.test('method--get', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsOperationsResourceApi 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(n, 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); |
| res |
| .get(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsProductSetsResourceApi', () { |
| unittest.test('method--addProduct', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductSetsResourceApi 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); |
| checkAddProductToProductSetRequest(obj); |
| |
| 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(n, 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); |
| res |
| .addProduct(arg_request, arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkEmpty(response); |
| }))); |
| }); |
| |
| unittest.test('method--create', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductSetsResourceApi 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); |
| checkProductSet(obj); |
| |
| 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(n, 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); |
| res |
| .create(arg_request, arg_parent, |
| productSetId: arg_productSetId, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkProductSet(response); |
| }))); |
| }); |
| |
| unittest.test('method--delete', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductSetsResourceApi 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(n, 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); |
| res |
| .delete(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkEmpty(response); |
| }))); |
| }); |
| |
| unittest.test('method--get', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductSetsResourceApi 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(n, 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); |
| res |
| .get(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkProductSet(response); |
| }))); |
| }); |
| |
| unittest.test('method--import', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductSetsResourceApi 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); |
| checkImportProductSetsRequest(obj); |
| |
| 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(n, 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); |
| res |
| .import(arg_request, arg_parent, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| |
| unittest.test('method--list', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductSetsResourceApi 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(n, 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); |
| res |
| .list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkListProductSetsResponse(response); |
| }))); |
| }); |
| |
| unittest.test('method--patch', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductSetsResourceApi 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); |
| checkProductSet(obj); |
| |
| 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(n, 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); |
| res |
| .patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkProductSet(response); |
| }))); |
| }); |
| |
| unittest.test('method--removeProduct', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductSetsResourceApi 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); |
| checkRemoveProductFromProductSetRequest(obj); |
| |
| 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(n, 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); |
| res |
| .removeProduct(arg_request, arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkEmpty(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsProductSetsProductsResourceApi', |
| () { |
| unittest.test('method--list', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductSetsProductsResourceApi 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(n, 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); |
| res |
| .list(arg_name, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkListProductsInProductSetResponse(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsProductsResourceApi', () { |
| unittest.test('method--create', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductsResourceApi 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); |
| checkProduct(obj); |
| |
| 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(n, 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); |
| res |
| .create(arg_request, arg_parent, |
| productId: arg_productId, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkProduct(response); |
| }))); |
| }); |
| |
| unittest.test('method--delete', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductsResourceApi 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(n, 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); |
| res |
| .delete(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkEmpty(response); |
| }))); |
| }); |
| |
| unittest.test('method--get', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductsResourceApi 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(n, 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); |
| res |
| .get(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkProduct(response); |
| }))); |
| }); |
| |
| unittest.test('method--list', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductsResourceApi 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(n, 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); |
| res |
| .list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkListProductsResponse(response); |
| }))); |
| }); |
| |
| unittest.test('method--patch', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductsResourceApi 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); |
| checkProduct(obj); |
| |
| 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(n, 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); |
| res |
| .patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkProduct(response); |
| }))); |
| }); |
| |
| unittest.test('method--purge', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductsResourceApi 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); |
| checkPurgeProductsRequest(obj); |
| |
| 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(n, 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); |
| res |
| .purge(arg_request, arg_parent, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsLocationsProductsReferenceImagesResourceApi', |
| () { |
| unittest.test('method--create', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductsReferenceImagesResourceApi 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); |
| checkReferenceImage(obj); |
| |
| 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(n, 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); |
| res |
| .create(arg_request, arg_parent, |
| referenceImageId: arg_referenceImageId, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkReferenceImage(response); |
| }))); |
| }); |
| |
| unittest.test('method--delete', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductsReferenceImagesResourceApi 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(n, 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); |
| res |
| .delete(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkEmpty(response); |
| }))); |
| }); |
| |
| unittest.test('method--get', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductsReferenceImagesResourceApi 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(n, 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); |
| res |
| .get(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkReferenceImage(response); |
| }))); |
| }); |
| |
| unittest.test('method--list', () { |
| var mock = HttpServerMock(); |
| api.ProjectsLocationsProductsReferenceImagesResourceApi 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(n, 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); |
| res |
| .list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkListReferenceImagesResponse(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-ProjectsOperationsResourceApi', () { |
| unittest.test('method--get', () { |
| var mock = HttpServerMock(); |
| api.ProjectsOperationsResourceApi 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(n, 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); |
| res |
| .get(arg_name, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkOperation(response); |
| }))); |
| }); |
| }); |
| } |